Git development
 help / color / mirror / Atom feed
* [PATCH] svn: (cleanup) use predefined constant for rev_map_fmt
@ 2009-08-13  5:34 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2009-08-13  5:34 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

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>
---
 also pushed out to git://yhbt.net/git-svn

 git-svn.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-svn.perl b/git-svn.perl
index a2934e8..1da9f07 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;
-- 
Eric Wong

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-13  5:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-13  5:34 [PATCH] svn: (cleanup) use predefined constant for rev_map_fmt Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox