Mercurial > hg
changeset 29881:12f8bef59bfa
histedit: remove now unused 'constraints' related code
Now that the one action that need different logic handle that using inheritance
and overriding, we can remove that code.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 26 Aug 2016 21:06:31 +0200 |
parents | a485ec066867 |
children | 307b20e5e505 |
files | hgext/histedit.py |
diffstat | 1 files changed, 0 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/histedit.py Fri Aug 26 21:00:33 2016 +0200 +++ b/hgext/histedit.py Fri Aug 26 21:06:31 2016 +0200 @@ -201,18 +201,6 @@ cmdtable = {} command = cmdutil.command(cmdtable) -class _constraints(object): - # aborts if there are multiple rules for one node - noduplicates = 'noduplicates' - # abort if the node does belong to edited stack - forceother = 'forceother' - # abort if the node doesn't belong to edited stack - noother = 'noother' - - @classmethod - def known(cls): - return set([v for k, v in cls.__dict__.items() if k[0] != '_']) - # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should # be specifying the version(s) of Mercurial they are tested with, or @@ -392,8 +380,6 @@ self.repo = state.repo self.node = node - constraints = set([_constraints.noduplicates, _constraints.noother]) - @classmethod def fromrule(cls, state, rule): """Parses the given rule, returning an instance of the histeditaction. @@ -786,7 +772,6 @@ return repo[n], replacements class base(histeditaction): - constraints = set([_constraints.forceother]) def run(self): if self.repo['.'].node() != self.node: