Extract some utilities from git-svn to allow extracting Git::SVN.
authorMichael G. Schwern <schwern@pobox.com>
Thu, 26 Jul 2012 23:22:22 +0000 (16:22 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 27 Jul 2012 22:14:50 +0000 (22:14 +0000)
commitc2768fa15234fd7eef7abb52eca2a3abe08e525c
treedcc12f007709add0f25a843c8cb18a0f5eb6cb43
parentee9be06770223238c6a22430eb874754dd22dfb0
Extract some utilities from git-svn to allow extracting Git::SVN.

Put them in a new module called Git::SVN::Utils.  Yeah, not terribly
original and it will be a dumping ground.  But its better than having
them in the main git-svn program.  At least they can be documented
and tested.

* fatal() is used by many classes.
* Change the $can_compress lexical into a function.

This should be enough to extract Git::SVN.

Signed-off-by: Michael G. Schwern <schwern@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl
perl/Git/SVN/Utils.pm [new file with mode: 0644]
perl/Makefile
t/Git-SVN/00compile.t [new file with mode: 0644]
t/Git-SVN/Utils/can_compress.t [new file with mode: 0644]
t/Git-SVN/Utils/fatal.t [new file with mode: 0644]