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

Re: efficient way to determine diff between wc and a tag?

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2005-03-09 19:18:43 CET

Chris Wein wrote:
> In migrating from CVS, we have some users who use a useful command to
> determine what files are different from the current wc and a tag. It is
> done with
> alias cvsr 'cvs -n update -r \!* |& grep
> "^[UAMCR]|abort|update.*nothing|pertinent|ignored"'
> used as:
> % cvsr TAGNAME
> Now we are creating tags in /tags whereas the working copy is presumably
> based on /trunk. Can anyone think of an efficient way to get the list
> of files or an output suitable for a Perl script?

Try something like

$ svn diff --old $TAGURL --new . --diff-cmd /usr/bin/true | awk
'/^Index:/ { print $2 }'

Note that the awk command won't work with files that have spaces in
their name. Fixing that is left as an exercise for the reader ;-)


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 9 19:23:18 2005

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.