equal
deleted
inserted
replaced
184 def getset(repo, subset, x): |
184 def getset(repo, subset, x): |
185 if not x: |
185 if not x: |
186 raise error.ParseError(_("missing argument")) |
186 raise error.ParseError(_("missing argument")) |
187 return methods[x[0]](repo, subset, *x[1:]) |
187 return methods[x[0]](repo, subset, *x[1:]) |
188 |
188 |
|
189 def _getrevsource(repo, r): |
|
190 extra = repo[r].extra() |
|
191 for label in ('source', 'transplant_source', 'rebase_source'): |
|
192 if label in extra: |
|
193 try: |
|
194 return repo[extra[label]].rev() |
|
195 except error.RepoLookupError: |
|
196 pass |
|
197 return None |
|
198 |
189 # operator methods |
199 # operator methods |
190 |
200 |
191 def stringset(repo, subset, x): |
201 def stringset(repo, subset, x): |
192 x = repo[x].rev() |
202 x = repo[x].rev() |
193 if x == -1 and len(subset) == len(repo): |
203 if x == -1 and len(subset) == len(repo): |