svndiff
A request from dev: In CVS, there was a command ‘cvs -q up’ that showed you which files were going to be updated without actually updating. How do we do this in subversion?
From the Redbean Book, you can see that we use ’svn status -u’; items with an asterisk shows that a newer revision of it exists on the server.
Just to go a little further, there’s a nice script here that shows how to get a diff of all items that have changed. I wrote a Perl version of it so we can actually do this on Windows (install Perl of course):
#!/usr/bin/perl
$arg=$ARGV[0]||'.';
$out=`svn status -u $arg`;
system("svn diff -r$1:HEAD $2")
while($out=~/^\s+\*\s+(\d+)\s+(.+)$/mg);
No Comments Yet