Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 11185:6d7cf82453be
tag: add -e/--edit option for modifying the commit message
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Sat, 15 May 2010 23:33:22 -0400 |
parents | 6e65b451b62e |
children | 687c7d395f20 |
comparison
equal
deleted
inserted
replaced
11184:7d99edddbaea | 11185:6d7cf82453be |
---|---|
3391 (', '.join(names), short(r))) | 3391 (', '.join(names), short(r))) |
3392 | 3392 |
3393 date = opts.get('date') | 3393 date = opts.get('date') |
3394 if date: | 3394 if date: |
3395 date = util.parsedate(date) | 3395 date = util.parsedate(date) |
3396 | |
3397 if opts.get('edit'): | |
3398 message = ui.edit(message, ui.username()) | |
3396 | 3399 |
3397 repo.tag(names, r, message, opts.get('local'), opts.get('user'), date) | 3400 repo.tag(names, r, message, opts.get('local'), opts.get('user'), date) |
3398 | 3401 |
3399 def tags(ui, repo): | 3402 def tags(ui, repo): |
3400 """list repository tags | 3403 """list repository tags |
4036 [('f', 'force', None, _('replace existing tag')), | 4039 [('f', 'force', None, _('replace existing tag')), |
4037 ('l', 'local', None, _('make the tag local')), | 4040 ('l', 'local', None, _('make the tag local')), |
4038 ('r', 'rev', '', _('revision to tag')), | 4041 ('r', 'rev', '', _('revision to tag')), |
4039 ('', 'remove', None, _('remove a tag')), | 4042 ('', 'remove', None, _('remove a tag')), |
4040 # -l/--local is already there, commitopts cannot be used | 4043 # -l/--local is already there, commitopts cannot be used |
4044 ('e', 'edit', None, _('edit commit message')), | |
4041 ('m', 'message', '', _('use <text> as commit message')), | 4045 ('m', 'message', '', _('use <text> as commit message')), |
4042 ] + commitopts2, | 4046 ] + commitopts2, |
4043 _('[-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...')), | 4047 _('[-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...')), |
4044 "tags": (tags, [], ''), | 4048 "tags": (tags, [], ''), |
4045 "tip": | 4049 "tip": |