From c83f4e686445c83edbe9c1d3055c0c43921e1ab8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 12 Aug 2009 22:20:02 -0700 Subject: [PATCH] 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 --- git-svn.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-svn.perl b/git-svn.perl index a2934e865..1da9f0781 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; -- 2.26.2