Mercurial > hg
comparison hgext/histedit.py @ 22951:6c86c673dde6
obsolete: add createmarkers option
The basic obsolete option is allowing the creation of obsolete markers. This
does not enable other features, such as allowing unstable commits or exchanging
obsolete markers.
author | Durham Goode <durham@fb.com> |
---|---|
date | Tue, 14 Oct 2014 13:23:52 -0700 |
parents | 9e893247a41c |
children | 8792ac090e3b |
comparison
equal
deleted
inserted
replaced
22950:bb8278b289ee | 22951:6c86c673dde6 |
---|---|
638 | 638 |
639 if not keep: | 639 if not keep: |
640 if mapping: | 640 if mapping: |
641 movebookmarks(ui, repo, mapping, topmost, ntm) | 641 movebookmarks(ui, repo, mapping, topmost, ntm) |
642 # TODO update mq state | 642 # TODO update mq state |
643 if obsolete._enabled: | 643 if obsolete.isenabled(repo, obsolete.createmarkersopt): |
644 markers = [] | 644 markers = [] |
645 # sort by revision number because it sound "right" | 645 # sort by revision number because it sound "right" |
646 for prec in sorted(mapping, key=repo.changelog.rev): | 646 for prec in sorted(mapping, key=repo.changelog.rev): |
647 succs = mapping[prec] | 647 succs = mapping[prec] |
648 markers.append((repo[prec], | 648 markers.append((repo[prec], |