changeset 18926:8deaa703a622

transplant: pass source through to recover
author Bryan O'Sullivan <bryano@fb.com>
date Fri, 12 Apr 2013 18:44:22 -0700
parents acb34d7159bd
children deffb5e990db
files hgext/transplant.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/transplant.py	Fri Apr 12 18:35:26 2013 -0700
+++ b/hgext/transplant.py	Fri Apr 12 18:44:22 2013 -0700
@@ -297,7 +297,7 @@
     def resume(self, repo, source, opts):
         '''recover last transaction and apply remaining changesets'''
         if os.path.exists(os.path.join(self.path, 'journal')):
-            n, node = self.recover(repo, opts)
+            n, node = self.recover(repo, source, opts)
             self.ui.status(_('%s transplanted as %s\n') % (short(node),
                                                            short(n)))
         seriespath = os.path.join(self.path, 'series')
@@ -312,7 +312,7 @@
 
         self.apply(repo, source, revmap, merges, opts)
 
-    def recover(self, repo, opts):
+    def recover(self, repo, source, opts):
         '''commit working directory using journal metadata'''
         node, user, date, message, parents = self.readlog()
         merge = False