Show More
@@ -5152,6 +5152,9 b' def push(ui, repo, dest=None, **opts):' | |||
|
5152 | 5152 | |
|
5153 | 5153 | if revs: |
|
5154 | 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 | 5159 | repo._subtoppath = dest |
|
5157 | 5160 | try: |
@@ -19,6 +19,14 b'' | |||
|
19 | 19 | $ hg add t3 |
|
20 | 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 | 30 | $ hg push ../a |
|
23 | 31 | pushing to ../a |
|
24 | 32 | searching for changes |
General Comments 0
You need to be logged in to leave comments.
Login now