changeset 15:e19d2ce18eeb

Fix reset_handler
author Paul Aurich <paul@darkrain42.org>
date Fri, 24 Apr 2009 08:35:40 -0700
parents f6f0fd01b34a
children 234128693c29
files fastimport/hgimport.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/fastimport/hgimport.py	Thu Apr 02 17:16:02 2009 -0400
+++ b/fastimport/hgimport.py	Fri Apr 24 08:35:40 2009 -0700
@@ -147,10 +147,9 @@
         return "%d %d" % res
         
     def reset_handler(self, cmd):
-        #self.ui.write("Cmd: %s\n" % repr(cmd))
         if cmd.from_ is not None:
-            self.branch_map[cmd.from_] = self.committish_rev(cmd.ref)
-        
+            self.branch_map[cmd.ref] = self.committish_rev(cmd.from_)
+
     def tag_handler(self, cmd):
         # self.tag_map[cmd.id] = self.tag_back_map[cmd.from_]
         pass