I only want a list of files that have been added (not ones that have been modified) since a certain date. Is there an easy way to do this?
Answer: Here's what ended up working for me, thanks guys!
svn log -v -r{2008-10-1}:HEAD svn://path.to.repo/ | grep "^ A" | grep ".java" | sort -u
From stackoverflow
Epaga
-
svn log -v -r{2008-10-1}:HEAD | grep "^ A"
Epaga : thanks, good idea...just got to modify that search pattern a bit (the way you wrote it would return checkin comment lines with the word "A" in them.MattW. : Yes, but a capital A with spaces around it is rather rare. You could use "^ A"Epaga : wouldn't have been that rare. A good example would be this sentence. ;-) But yeah, the circumflex did the trick.From MattW. -
Something like
svn log -v -r {"2008-01-01"}:HEAD . | grep ' A ' | sort -u
should get you going...
From mmaibaum -
If you use 'svn log -v -q' you get the filename and no log messages. This is a little bit faster over http:// and svn:// as the log messages are not transferred to you.
svn log --xml -v -q gives you the same information but in easy to parse xml. (This handles all corner cases on strange file names for you).
From Bert Huijben
0 comments:
Post a Comment