On 15 Apr 2010 12:42:59 -0700, David Bartmess wrote: > > I need to modify a script that was used with CVS that basically got a > list of the files that changed with a specific tag, and acted upon > them. Now we're moving to Subversion, and I need a way to get a list > of files that changed with a tag or revision. > > Should I just force the developers into using the revision instead of > the tag? The tag contains every file in that module, so it doesn't > help in this matter. > > And is there a way to get a list of files that changed with a > changeset (revision) without having to heavily parse the log output? > I need to list the files that changed in a file to be consumed by > another process, and the file contents need to be just the filename > one on each line. Is there an easy way to do this? > > Thanks!
In my post-commit script, I use PROJECT=`svnlook dirs-changed $REPOS -r $REV 2>&1 | sort -u | head -1 | sed -e 's/\/$//'` So it looks like you could use 'svnlook' to do this. svnlook changed /path/to/repos -r #### But it doesn't appear to support URLs, so you'd have to do this on the same host (and possibly user) as the subversion repository. A post-commit script is the ideal place to do that. See the example in REPOS/hooks/post-commit.tmpl Ted -- Frango ut patefaciam -- I break so that I may reveal
