Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 6243:437eef39458d
fix incorrect date when committing a tag
regression introduced by 989467e8e3a9
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 13 Mar 2008 15:40:41 +0100 |
parents | a47462264906 |
children | a7e3d0456d92 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Mar 12 15:44:08 2008 -0700 +++ b/mercurial/commands.py Thu Mar 13 15:40:41 2008 +0100 @@ -2618,7 +2618,11 @@ if not message: message = _('Added tag %s for changeset %s') % (name, short(r)) - repo.tag(name, r, message, opts['local'], opts['user'], opts['date']) + date = opts.get('date') + if date: + date = util.parsedate(date) + + repo.tag(name, r, message, opts['local'], opts['user'], date) def tags(ui, repo): """list repository tags