summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-08-12 22:20:02 -0700
committerEric Wong <normalperson@yhbt.net>2009-08-12 22:22:45 -0700
commitc83f4e686445c83edbe9c1d3055c0c43921e1ab8 (patch)
treeeac044cd8d9a6e339a9d9fe449ab4fbf8eb65993 /git-svn.perl
parent6f5748e14cc5bb0a836b649fb8e2d6a5eb166f1d (diff)
downloadgit-c83f4e686445c83edbe9c1d3055c0c43921e1ab8.tar.gz
svn: (cleanup) use predefined constant for rev_map_fmt
This makes life easier in case we ever need to change the internal format of the rev_maps. Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl
index a2934e8651..1da9f0781c 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -3277,7 +3277,7 @@ sub _rev_map_get {
my $i = int(($l/24 + $u/24) / 2) * 24;
sysseek($fh, $i, SEEK_SET) or croak "seek: $!";
sysread($fh, my $buf, 24) == 24 or croak "read: $!";
- my ($r, $c) = unpack('NH40', $buf);
+ my ($r, $c) = unpack(rev_map_fmt, $buf);
if ($r < $rev) {
$l = $i + 24;