Show More
@@ -2618,7 +2618,11 b' def tag(ui, repo, name, rev_=None, **opt' | |||||
2618 | if not message: |
|
2618 | if not message: | |
2619 | message = _('Added tag %s for changeset %s') % (name, short(r)) |
|
2619 | message = _('Added tag %s for changeset %s') % (name, short(r)) | |
2620 |
|
2620 | |||
2621 | repo.tag(name, r, message, opts['local'], opts['user'], opts['date']) |
|
2621 | date = opts.get('date') | |
|
2622 | if date: | |||
|
2623 | date = util.parsedate(date) | |||
|
2624 | ||||
|
2625 | repo.tag(name, r, message, opts['local'], opts['user'], date) | |||
2622 |
|
2626 | |||
2623 | def tags(ui, repo): |
|
2627 | def tags(ui, repo): | |
2624 | """list repository tags |
|
2628 | """list repository tags |
@@ -202,13 +202,11 b' class localrepository(repo.repository):' | |||||
202 |
|
202 | |||
203 | date: date tuple to use if committing''' |
|
203 | date: date tuple to use if committing''' | |
204 |
|
204 | |||
205 | date = util.parsedate(date) |
|
|||
206 | for x in self.status()[:5]: |
|
205 | for x in self.status()[:5]: | |
207 | if '.hgtags' in x: |
|
206 | if '.hgtags' in x: | |
208 | raise util.Abort(_('working copy of .hgtags is changed ' |
|
207 | raise util.Abort(_('working copy of .hgtags is changed ' | |
209 | '(please commit .hgtags manually)')) |
|
208 | '(please commit .hgtags manually)')) | |
210 |
|
209 | |||
211 |
|
||||
212 | self._tag(name, node, message, local, user, date) |
|
210 | self._tag(name, node, message, local, user, date) | |
213 |
|
211 | |||
214 | def tags(self): |
|
212 | def tags(self): |
General Comments 0
You need to be logged in to leave comments.
Login now