Comments
Patch
@@ -2617,19 +2617,19 @@ def amend(ui, repo, commitfunc, old, ext
for bm in bms:
ui.debug('moving bookmarks %r from %s to %s\n' %
(marks, old.hex(), hex(newid)))
marks[bm] = newid
marks.recordchange(tr)
- #commit the whole amend process
- if createmarkers and newid != old.node():
- # mark the new changeset as successor of the rewritten one
- new = repo[newid]
- obs = [(old, (new,))]
- if node:
- obs.append((ctx, ()))
-
- obsolete.createmarkers(repo, obs)
+ #commit the whole amend process
+ if createmarkers:
+ # mark the new changeset as successor of the rewritten one
+ new = repo[newid]
+ obs = [(old, (new,))]
+ if node:
+ obs.append((ctx, ()))
+
+ obsolete.createmarkers(repo, obs)
tr.close()
finally:
tr.release()
dsguard.close()
if not createmarkers and newid != old.node():