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