Show More
@@ -201,18 +201,6 b' release = lock.release' | |||
|
201 | 201 | cmdtable = {} |
|
202 | 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 | 204 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
|
217 | 205 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
|
218 | 206 | # be specifying the version(s) of Mercurial they are tested with, or |
@@ -392,8 +380,6 b' class histeditaction(object):' | |||
|
392 | 380 | self.repo = state.repo |
|
393 | 381 | self.node = node |
|
394 | 382 | |
|
395 | constraints = set([_constraints.noduplicates, _constraints.noother]) | |
|
396 | ||
|
397 | 383 | @classmethod |
|
398 | 384 | def fromrule(cls, state, rule): |
|
399 | 385 | """Parses the given rule, returning an instance of the histeditaction. |
@@ -786,7 +772,6 b' class fold(histeditaction):' | |||
|
786 | 772 | return repo[n], replacements |
|
787 | 773 | |
|
788 | 774 | class base(histeditaction): |
|
789 | constraints = set([_constraints.forceother]) | |
|
790 | 775 | |
|
791 | 776 | def run(self): |
|
792 | 777 | if self.repo['.'].node() != self.node: |
General Comments 0
You need to be logged in to leave comments.
Login now