summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f5748e)
raw | patch | inline | side by side (parent: 6f5748e)
author | Eric Wong <normalperson@yhbt.net> | |
Thu, 13 Aug 2009 05:20:02 +0000 (22:20 -0700) | ||
committer | Eric Wong <normalperson@yhbt.net> | |
Thu, 13 Aug 2009 05:22:45 +0000 (22:22 -0700) |
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>
internal format of the rev_maps.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index a2934e8651390e6b1c67369015b062d1f96ffbd9..1da9f0781c24b4f4f6f63c137a0caccec85024d6 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
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;