From 2b319f9de4bec43cd49f942bfb992e8a398a2a49 Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Wed, 7 Mar 2007 11:06:34 +0000 Subject: [PATCH] Don't restore checkpoint count from cache It doesn't make sense as each run of git-fast-import starts a new pack anyways. Signed-off-by: Rocco Rutte --- hg2git.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hg2git.py b/hg2git.py index 4d67d9b..8f2ee22 100644 --- a/hg2git.py +++ b/hg2git.py @@ -254,7 +254,7 @@ if __name__=='__main__': if _max<0: max=tip - c=int(state_cache.get('count',0)) + c=0 last={} for rev in range(min,max): c=export_commit(ui,repo,rev,marks_cache,heads_cache,last,tip,c) @@ -262,6 +262,5 @@ if __name__=='__main__': c=export_tags(ui,repo,marks_cache,c) state_cache['tip']=max - state_cache['count']=c state_cache['repo']=repourl save_cache(tipfile,state_cache) -- 2.11.4.GIT