OK, so I can run a command like this to get a list of revision numbers made on a certain date or date range:
svn log -q -r{2012-01-25}:HEAD | grep '^r[0-9]' | cut -d\| -f1 | cut -b2-
This works fine and gives me a list like this
12345
12346
12347
Now, I would like to pass these revision numbers to the diff command, so running a simple svn diff on a revision number manually works as expected i.e.
svn diff -c12345
But, if I attempt to pipe the revision list to the diff command like this
svn log -q -r{2012-01-25}:HEAD | grep '^r[0-9]' | cut -d\| -f1 | cut -b2- | xargs svn diff -c
it returns an error that the node was not found – looks to me like I am passing the arguments wrong.
It looks like, in the last part of the pipe,
xargsis trying to execute:when it should try:
because the
-coption only accepts one argument.To fix that, try to replace
xargswithxargs -n1.