I should have known that the first thing to surface would be "why" and not "the answer". But your question, Daniel, was polite at least :)
If you pay attention to the command line in editor-cmd setting you can notice that content is appended. Therefore it is positioned below the -- This line and everything below... There are times when changes to certain files are accumulating over the days and when I hit "svn ci" I would like to get a glimpse of those changes. Of course you can do it in another terminal, and for larger changesets I definitely do so. But for smaller changesets it is just very convenient to see right away what was changed. Now, the 'update-first' seemed reasonable but it does not solve the issue. Will look deeper into it tomorrow. Thanks for your assistance, b. On 20 May 2010 02:17, Daniel Becroft <djcbecr...@gmail.com> wrote: > On Thu, May 20, 2010 at 10:08 AM, Bostjan Skufca <bost...@a2o.si> wrote: > > Hi all! > > > > I would like to change default contents of commit message from 'svn > status' > > output to add 'svn diff' output. How can this be achieved? > > > > I have already tried setting editor-cmd in ~/.subversion/config to "svn > diff > >>> svn-commit.tmp && mcedit" and it partially works, but creates diff > > against previous revision, not HEAD. > > > > Any suggestions? > > 1) Try running an update first. > > 2) If you're committing a file, and the diff between the working copy > and previous is not identical to the diff between working and HEAD, > that would indicate an out of date working copy, and I would expect > you should get an error. > > 3) Can I ask why you are trying to include the diff in the log message? > > Cheers, > Daniel B. >