##// END OF EJS Templates
commands.push: abort when revisions evaluate to empty set (BC)...
Gregory Szorc -
r24429:69bd0ec2 default
parent child Browse files
Show More
@@ -5152,6 +5152,9 b' def push(ui, repo, dest=None, **opts):'
5152
5152
5153 if revs:
5153 if revs:
5154 revs = [repo.lookup(r) for r in scmutil.revrange(repo, revs)]
5154 revs = [repo.lookup(r) for r in scmutil.revrange(repo, revs)]
5155 if not revs:
5156 raise util.Abort(_("specified revisions evaluate to an empty set"),
5157 hint=_("use different revision arguments"))
5155
5158
5156 repo._subtoppath = dest
5159 repo._subtoppath = dest
5157 try:
5160 try:
@@ -19,6 +19,14 b''
19 $ hg add t3
19 $ hg add t3
20 $ hg commit -m "3"
20 $ hg commit -m "3"
21
21
22 Specifying a revset that evaluates to null will abort
23
24 $ hg push -r '0 & 1' ../a
25 pushing to ../a
26 abort: specified revisions evaluate to an empty set
27 (use different revision arguments)
28 [255]
29
22 $ hg push ../a
30 $ hg push ../a
23 pushing to ../a
31 pushing to ../a
24 searching for changes
32 searching for changes
General Comments 0
You need to be logged in to leave comments. Login now