##// END OF EJS Templates
histedit: remove now unused 'constraints' related code...
Pierre-Yves David -
r29881:12f8bef5 default
parent child Browse files
Show More
@@ -201,18 +201,6 b' release = lock.release'
201 cmdtable = {}
201 cmdtable = {}
202 command = cmdutil.command(cmdtable)
202 command = cmdutil.command(cmdtable)
203
203
204 class _constraints(object):
205 # aborts if there are multiple rules for one node
206 noduplicates = 'noduplicates'
207 # abort if the node does belong to edited stack
208 forceother = 'forceother'
209 # abort if the node doesn't belong to edited stack
210 noother = 'noother'
211
212 @classmethod
213 def known(cls):
214 return set([v for k, v in cls.__dict__.items() if k[0] != '_'])
215
216 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
204 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
217 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
205 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
218 # be specifying the version(s) of Mercurial they are tested with, or
206 # be specifying the version(s) of Mercurial they are tested with, or
@@ -392,8 +380,6 b' class histeditaction(object):'
392 self.repo = state.repo
380 self.repo = state.repo
393 self.node = node
381 self.node = node
394
382
395 constraints = set([_constraints.noduplicates, _constraints.noother])
396
397 @classmethod
383 @classmethod
398 def fromrule(cls, state, rule):
384 def fromrule(cls, state, rule):
399 """Parses the given rule, returning an instance of the histeditaction.
385 """Parses the given rule, returning an instance of the histeditaction.
@@ -786,7 +772,6 b' class fold(histeditaction):'
786 return repo[n], replacements
772 return repo[n], replacements
787
773
788 class base(histeditaction):
774 class base(histeditaction):
789 constraints = set([_constraints.forceother])
790
775
791 def run(self):
776 def run(self):
792 if self.repo['.'].node() != self.node:
777 if self.repo['.'].node() != self.node:
General Comments 0
You need to be logged in to leave comments. Login now