diff 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
line wrap: on
line diff
--- a/hgext/histedit.py	Tue Oct 14 13:20:31 2014 -0700
+++ b/hgext/histedit.py	Tue Oct 14 13:23:52 2014 -0700
@@ -640,7 +640,7 @@
         if mapping:
             movebookmarks(ui, repo, mapping, topmost, ntm)
             # TODO update mq state
-        if obsolete._enabled:
+        if obsolete.isenabled(repo, obsolete.createmarkersopt):
             markers = []
             # sort by revision number because it sound "right"
             for prec in sorted(mapping, key=repo.changelog.rev):