git-svn: factor out _collapse_dotdot function
commit280ad88aa0e851b2f2945222edb8e7b681a7574b
authorMichael G. Schwern <schwern@pobox.com>
Sat, 28 Jul 2012 09:38:28 +0000 (28 02:38 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 2 Aug 2012 21:43:58 +0000 (2 21:43 +0000)
tree4c56e2de4aef88b6887589e3a9add119777ab677
parent82009f304826fcaf3188fb422769a7974ae78afa
git-svn: factor out _collapse_dotdot function

The SVN API functions will not accept ../foo but their canonicalization
functions will not collapse it.  So we'll have to do it ourselves.

_collapse_dotdot() works better than the existing regex did.

This will be used shortly when canonicalize_path() starts using the
SVN API.

[ew: commit title]

Signed-off-by: Eric Wong <normalperson@yhbt.net>
perl/Git/SVN/Utils.pm
t/Git-SVN/Utils/collapse_dotdot.t [new file with mode: 0644]