Show More
@@ -5601,7 +5601,7 b' def tag(ui, repo, name1, *names, **opts)' | |||
|
5601 | 5601 | # don't allow tagging the null rev |
|
5602 | 5602 | if (not opts.get('remove') and |
|
5603 | 5603 | scmutil.revsingle(repo, rev_).rev() == nullrev): |
|
5604 |
raise util.Abort(_("null revision |
|
|
5604 | raise util.Abort(_("cannot tag null revision")) | |
|
5605 | 5605 | |
|
5606 | 5606 | repo.tag(names, r, message, opts.get('local'), opts.get('user'), date) |
|
5607 | 5607 | finally: |
@@ -264,11 +264,11 b' tagging on null rev' | |||
|
264 | 264 | |
|
265 | 265 | $ hg init empty |
|
266 | 266 | $ hg tag -R empty nullrev |
|
267 |
abort: null revision |
|
|
267 | abort: cannot tag null revision | |
|
268 | 268 | [255] |
|
269 | 269 | |
|
270 | 270 | $ hg tag -R empty -r 00000000000 -f nulltag |
|
271 |
abort: null revision |
|
|
271 | abort: cannot tag null revision | |
|
272 | 272 | [255] |
|
273 | 273 | |
|
274 | 274 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now