equal
deleted
inserted
replaced
5693 |
5693 |
5694 date = opts.get('date') |
5694 date = opts.get('date') |
5695 if date: |
5695 if date: |
5696 date = util.parsedate(date) |
5696 date = util.parsedate(date) |
5697 |
5697 |
5698 if opts.get('edit'): |
5698 editor = cmdutil.getcommiteditor(**opts) |
5699 def editor(repo, ctx, subs): |
|
5700 return ui.edit(ctx.description() + "\n", ctx.user()) |
|
5701 else: |
|
5702 editor = False |
|
5703 |
5699 |
5704 # don't allow tagging the null rev |
5700 # don't allow tagging the null rev |
5705 if (not opts.get('remove') and |
5701 if (not opts.get('remove') and |
5706 scmutil.revsingle(repo, rev_).rev() == nullrev): |
5702 scmutil.revsingle(repo, rev_).rev() == nullrev): |
5707 raise util.Abort(_("cannot tag null revision")) |
5703 raise util.Abort(_("cannot tag null revision")) |