On Wed, 2011-06-22 at 12:01 +0200, Stefan Sperling wrote: > On Wed, Jun 22, 2011 at 11:09:55AM +0200, Till Maas wrote: > > Hiyas, > > > > as requested in the buddy peer review for feature requests I asked on > > IRC for opinions to implement "svn diff -c PREV". There it was proposed > > to ask here. > > > > I am missing to use "svn diff -c PREV", which should show the previous > > commit without the changes to the current working copy.
Till, do you want to see the most recent commit, a behaviour which could be expressed as "-r PREV:COMMITTED"? If so, the syntax we would choose if we do implement this would probably be "-c COMMITTED". "-c PREV" which would mean "show what was changed in the commit before the most recent one", and I don't think that's what you want. - Julian > > Regards > > Till > > I see one problem with this approach. > The PREV revision might not be related to the path your working > copy came from. Especially if you have multiple projects sharing > a repository, -c PREV will often result in an empty diff for the > given working copy. > -c COMMITTED would always generate a diff, but PREV is just COMMITTED-1 > so it might not always be what you are looking for. You're really > looking for something that shows the most recent *operative* revision > for the working copy older than COMMITTED. But this isn't currently > available as a keyword. > > Regardless, note that with a 1.7 svn client you can use this workaround > to run the equivalent of diff -c PREV: svn log -r PREV --diff --limit 1 > (see http://subversion.apache.org/docs/release-notes/1.7.html)