changeset 3757:faed44bab17b

transplant: clobber old series when transplant fails
author Brendan Cully <brendan@kublai.com>
date Fri, 01 Dec 2006 14:30:17 -0800
parents 2f2b59fcb394
children 889f7e74a0d9
files hgext/transplant.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/transplant.py	Fri Dec 01 23:28:14 2006 +0100
+++ b/hgext/transplant.py	Fri Dec 01 14:30:17 2006 -0800
@@ -209,6 +209,9 @@
             except Exception, inst:
                 if filter:
                     os.unlink(patchfile)
+                seriespath = os.path.join(self.path, 'series')
+                if os.path.exists(seriespath):
+                    os.unlink(seriespath)
                 p1 = repo.dirstate.parents()[0]
                 p2 = node
                 self.log(user, date, message, p1, p2, merge=merge)