Mercurial > hg
comparison hgext/rebase.py @ 48118:5105a9975407
errors: raise InputError from revsingle() iff revset provided by the user
Same reasoning as for `revrange()` in an earlier patch.
Differential Revision: https://phab.mercurial-scm.org/D11562
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 28 Sep 2021 15:11:22 -0700 |
parents | 5ced12cfa41b |
children | 402a6b6173e9 |
comparison
equal
deleted
inserted
replaced
48117:b74e128676d4 | 48118:5105a9975407 |
---|---|
1321 _(b'empty "base" revision set - ' b"can't compute rebase set\n") | 1321 _(b'empty "base" revision set - ' b"can't compute rebase set\n") |
1322 ) | 1322 ) |
1323 return None | 1323 return None |
1324 if destf: | 1324 if destf: |
1325 # --base does not support multiple destinations | 1325 # --base does not support multiple destinations |
1326 dest = scmutil.revsingle(repo, destf) | 1326 dest = logcmdutil.revsingle(repo, destf) |
1327 else: | 1327 else: |
1328 dest = repo[_destrebase(repo, base, destspace=destspace)] | 1328 dest = repo[_destrebase(repo, base, destspace=destspace)] |
1329 destf = bytes(dest) | 1329 destf = bytes(dest) |
1330 | 1330 |
1331 roots = [] # selected children of branching points | 1331 roots = [] # selected children of branching points |