# HG changeset patch # User Brendan Cully # Date 2006-12-01 22:30:17 # Node ID faed44bab17b5dcbcf2990d36fc484ee8ab559d7 # Parent 2f2b59fcb39469323ae493049fe84f00b5b73af8 transplant: clobber old series when transplant fails diff --git a/hgext/transplant.py b/hgext/transplant.py --- a/hgext/transplant.py +++ b/hgext/transplant.py @@ -209,6 +209,9 @@ class transplanter: 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)