contrib/git-svn: fix svn compat and fetch args
authorEric Wong <normalperson@yhbt.net>
Thu, 9 Mar 2006 11:48:47 +0000 (03:48 -0800)
committerJunio C Hamano <junkio@cox.net>
Thu, 9 Mar 2006 18:04:58 +0000 (10:04 -0800)
commit1d52aba8397723235e6007d0ee38126714af113e
tree8851872e644f60eb44cd28b8173457c24deb8ebb
parentd2c4af73738229e2b7c640f818f56f17d1d9edf8
contrib/git-svn: fix svn compat and fetch args

'svn info' doesn't work with URLs in svn <= 1.1.  Now we
only run svn info in local directories.

As a side effect, this should also work better for 'init' off
directories that are no longer in the latest revision of the
repository.

svn checkout -r<revision> arguments are fixed.
Newer versions of svn (1.2.x) seem to need URL@REV as well as
-rREV to checkout a particular revision...

Add an example in the manpage of how to track directory that has
been moved since its initial revision.

A huge thanks to Yann Dirson for the bug reporting and testing
my original patch.  Thanks also to Junio C Hamano for suggesting
a safer way to use git-rev-parse.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/git-svn/git-svn.perl
contrib/git-svn/git-svn.txt