Submitter | Durham Goode |
---|---|
Date | May 7, 2015, 9:01 p.m. |
Message ID | <ed5036b584c85b9cb63b.1431032461@dev2000.prn2.facebook.com> |
Download | mbox | patch |
Permalink | /patch/8953/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -252,7 +252,10 @@ class histeditstate(object): for replacement in self.replacements: fp.write('%s%s\n' % (node.hex(replacement[0]), ''.join(node.hex(r) for r in replacement[1]))) - fp.write('%s\n' % self.backupfile) + backupfile = self.backupfile + if not backupfile: + backupfile = '' + fp.write('%s\n' % backupfile) fp.close() def _load(self):