Skip to content

Instantly share code, notes, and snippets.

@kyanny
Created February 13, 2009 10:27
Show Gist options
  • Save kyanny/63836 to your computer and use it in GitHub Desktop.
Save kyanny/63836 to your computer and use it in GitHub Desktop.
#!/bin/sh
# $Id$
svn log --stop-on-copy -q | perl -anle 'next if /^\-+$/; unshift @rows, $F[0]; END { $rev = sprintf(q/%s:%s/, $rows[0], $rows[-1]); $rev =~ s/r//g; print $rev }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment