##// END OF EJS Templates
rebase: improve error message for empty --source set...
Mads Kiilerich -
r20248:3bff26f6 default
parent child Browse files
Show More
@@ -226,7 +226,11 b' def rebase(ui, repo, **opts):'
226 'nothing to rebase'))
226 'nothing to rebase'))
227 elif srcf:
227 elif srcf:
228 src = scmutil.revrange(repo, [srcf])
228 src = scmutil.revrange(repo, [srcf])
229 if not src:
230 raise util.Abort(_('empty "source" revision set - '
231 'nothing to rebase'))
229 rebaseset = repo.revs('(%ld)::', src)
232 rebaseset = repo.revs('(%ld)::', src)
233 assert rebaseset
230 else:
234 else:
231 base = scmutil.revrange(repo, [basef or '.'])
235 base = scmutil.revrange(repo, [basef or '.'])
232 rebaseset = repo.revs(
236 rebaseset = repo.revs(
@@ -83,6 +83,10 b' These fail:'
83 abort: empty "rev" revision set - nothing to rebase
83 abort: empty "rev" revision set - nothing to rebase
84 [255]
84 [255]
85
85
86 $ hg rebase --source '1 & !1'
87 abort: empty "source" revision set - nothing to rebase
88 [255]
89
86 $ hg rebase
90 $ hg rebase
87 nothing to rebase
91 nothing to rebase
88 [1]
92 [1]
General Comments 0
You need to be logged in to leave comments. Login now