Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 32327:3546a771e376
obsolete: add operation metadata to rebase/amend/histedit obsmarkers
By recording what operation created the obsmarker, we can show very intuitive
messages to the user in various UIs. For instance, log output could have
messages like "Amended as XXX" to show why a commit is old and has an 'x' on it.
@ ac28e3 durham
/ First commit
|
| o d4afe7 durham
| | Second commit
| |
| x 8e9a5d (Amended as ac28e3) durham
|/ First commit
|
author | Durham Goode <durham@fb.com> |
---|---|
date | Tue, 09 May 2017 16:29:31 -0700 |
parents | bd872f64a8ba |
children | 46ba2cdda476 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed May 17 22:33:15 2017 -0700 +++ b/mercurial/cmdutil.py Tue May 09 16:29:31 2017 -0700 @@ -2741,7 +2741,7 @@ if node: obs.append((ctx, ())) - obsolete.createmarkers(repo, obs) + obsolete.createmarkers(repo, obs, operation='amend') if not createmarkers and newid != old.node(): # Strip the intermediate commit (if there was one) and the amended # commit