mercurial/cmdutil.py
changeset 32366 3546a771e376
parent 32331 bd872f64a8ba
child 32376 46ba2cdda476
equal deleted inserted replaced
32365:763d72925691 32366:3546a771e376
  2739                     new = repo[newid]
  2739                     new = repo[newid]
  2740                     obs = [(old, (new,))]
  2740                     obs = [(old, (new,))]
  2741                     if node:
  2741                     if node:
  2742                         obs.append((ctx, ()))
  2742                         obs.append((ctx, ()))
  2743 
  2743 
  2744                     obsolete.createmarkers(repo, obs)
  2744                     obsolete.createmarkers(repo, obs, operation='amend')
  2745         if not createmarkers and newid != old.node():
  2745         if not createmarkers and newid != old.node():
  2746             # Strip the intermediate commit (if there was one) and the amended
  2746             # Strip the intermediate commit (if there was one) and the amended
  2747             # commit
  2747             # commit
  2748             if node:
  2748             if node:
  2749                 ui.note(_('stripping intermediate changeset %s\n') % ctx)
  2749                 ui.note(_('stripping intermediate changeset %s\n') % ctx)