mercurial/cmdutil.py
branchstable
changeset 16551 ebf6d38c9063
parent 16542 e596a631210e
child 16553 9224cc2e99cc
equal deleted inserted replaced
16550:0d494a38c586 16551:ebf6d38c9063
  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: