equal
deleted
inserted
replaced
1382 date=date, |
1382 date=date, |
1383 extra=extra) |
1383 extra=extra) |
1384 newid = repo.commitctx(new) |
1384 newid = repo.commitctx(new) |
1385 if newid != old.node(): |
1385 if newid != old.node(): |
1386 # Reroute the working copy parent to the new changeset |
1386 # Reroute the working copy parent to the new changeset |
1387 repo.dirstate.setparents(newid, nullid) |
1387 repo.setparents(newid, nullid) |
1388 |
1388 |
1389 # Move bookmarks from old parent to amend commit |
1389 # Move bookmarks from old parent to amend commit |
1390 bms = repo.nodebookmarks(old.node()) |
1390 bms = repo.nodebookmarks(old.node()) |
1391 if bms: |
1391 if bms: |
1392 for bm in bms: |
1392 for bm in bms: |