Show More
@@ -128,15 +128,14 b' class command(_funcregistrarbase):' | |||||
128 |
|
128 | |||
129 | def _doregister(self, func, name, options=(), synopsis=None, |
|
129 | def _doregister(self, func, name, options=(), synopsis=None, | |
130 | norepo=False, optionalrepo=False, inferrepo=False): |
|
130 | norepo=False, optionalrepo=False, inferrepo=False): | |
131 | if True: |
|
131 | func.norepo = norepo | |
132 |
|
|
132 | func.optionalrepo = optionalrepo | |
133 |
|
|
133 | func.inferrepo = inferrepo | |
134 | func.inferrepo = inferrepo |
|
134 | if synopsis: | |
135 | if synopsis: |
|
135 | self._table[name] = func, list(options), synopsis | |
136 | self._table[name] = func, list(options), synopsis |
|
136 | else: | |
137 | else: |
|
137 | self._table[name] = func, list(options) | |
138 | self._table[name] = func, list(options) |
|
138 | return func | |
139 | return func |
|
|||
140 |
|
139 | |||
141 | class revsetpredicate(_funcregistrarbase): |
|
140 | class revsetpredicate(_funcregistrarbase): | |
142 | """Decorator to register revset predicate |
|
141 | """Decorator to register revset predicate |
General Comments 0
You need to be logged in to leave comments.
Login now