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

Re: proposal: changelist feature

From: Jared Hardy <jhardy_at_highimpactgames.com>
Date: 2006-04-21 14:24:51 CEST

Marc Sherman wrote:
> Another idea might be to add a --create-targets switch to svn st; this
> would change the output to a simple file list, suitable for redirecting
> to a targets file for later use with the --targets switch. That seems
> to cover all of Ben's use cases for changelists, I think.

This sounds useful. I would add that some options to filter on status
would make it *extremely* useful. For example:

svn st /path/ --create-targets "~!" > filename

Would output a list of all the versioned-obstructed and missing files
under /path/, dumped into to filename. Another example:

svn st /path/ -u --create-targets "M*" > filename

Would output a list of all the modified files for which a newer version
exists on the server.
        These characters are taken from the "svn help status" list, making for
nice UI consistency.
        In my experience, "svn log /path/ -v -r HEAD:BASE" and similar commands
are also much faster than "svn status ..." commands, because they don't
require the same dirtree-walk slowness, esp on NTFS with a LAN
connection to the server. A "svn log /path/ -v -r HEAD:BASE
--create-targets 'DAM'" command could potentially be more useful for
generating "svn update --targets" files. Just imagine this batch (pardon
the weak DOS batch -- how I long for a proper shell):

svn log %1 -v -r HEAD:BASE --create-targets 'AM' > newlist.txt
svn status --create-targets '?~' --targets newlist.txt > unversioned.txt
FOR /F %%i IN (unversioned.txt) DO (
        move /y %%i %%i.~bak~
)
svn update --targets newlist.txt
FOR /F %%i IN (unversioned.txt) DO (
        move /y %%i.~bak~ %%i
)

        That would be a nice work-around to the "unversioned file exists" error
we get when Updating build target directories. Even just having "svn log
%1 -v -r HEAD:BASE --create-targets 'DAM' | svn update" would speed up
Updates for all our local users significantly.

        Thanks!
        Jared

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 21 14:25:26 2006

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

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