git svn: Support multiple branch and tag paths in the svn repository.
commit6224406914c3d3fecec73e32ed271dbdc0c8736a
authorMarc Branchaud <marcnarc@xiplink.com>
Tue, 23 Jun 2009 17:02:08 +0000 (23 13:02 -0400)
committerEric Wong <normalperson@yhbt.net>
Thu, 25 Jun 2009 08:58:09 +0000 (25 01:58 -0700)
tree379b41c877baec15dcfa4eca5c60bf71c7d1917c
parent195643f2fc80b4d06a75b954b9a8ef2300976755
git svn: Support multiple branch and tag paths in the svn repository.

This enables git-svn.perl to read multiple 'branches' and 'tags' entries in
svn-remote config sections.  The init and clone subcommands also support
multiple --branches and --tags arguments.

The branch (and tag) subcommand gets a new argument: --destination (or -d).
This argument is required if there are multiple branches (or tags) entries
configured for the remote Subversion repository.  The argument's value
specifies which branch (or tag) path to use to create the branch (or tag).
The specified value must match the left side (without wildcards) of one of
the branches (or tags) refspecs in the svn-remote's config.

[ew: avoided explicit loop when combining globs with "push"]

Signed-off-by: Marc Branchaud <marcnarc@xiplink.com>
Acked-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl
t/t9138-git-svn-multiple-branches.sh [new file with mode: 0755]