[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Symbolic Name for Working Copy

From: Schwarz, Konrad <konrad.schwarz_at_siemens.com>
Date: 2006-12-22 12:37:21 CET


Subversion has symbolic revision labels "HEAD", "BASE", ..., but is
missing one for the working copy. Although 'svn diff' defaults to the
working copy when a revision is omitted, I see no way of specifying it

Specifying the working copy revision explicitly is needed for reverse

For example:

svn diff -r WORKING_COPY -r BASE --diff-cmd diff -x -e some_file >

should produce an ed(1) script in some_file.ed that contains the changes
required to convert the working copy to the base revision.

This comes in handy when the working copy is the result of merging and a
few of the changes need to be backed out; this can be done cleanly by
editing "some_file.ed" to contain only the changes that need to be
backed out and applying the result.


Konrad Schwarz

P.S.: Please include me in any replies to this message as I am not
subscribed to the mailing list.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Fri Dec 22 15:37:53 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.