##// END OF EJS Templates
fix incorrect date when committing a tag...
Benoit Boissinot -
r6243:437eef39 default
parent child Browse files
Show More
@@ -2618,7 +2618,11 b' def tag(ui, repo, name, rev_=None, **opt'
2618 2618 if not message:
2619 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 2627 def tags(ui, repo):
2624 2628 """list repository tags
@@ -202,13 +202,11 b' class localrepository(repo.repository):'
202 202
203 203 date: date tuple to use if committing'''
204 204
205 date = util.parsedate(date)
206 205 for x in self.status()[:5]:
207 206 if '.hgtags' in x:
208 207 raise util.Abort(_('working copy of .hgtags is changed '
209 208 '(please commit .hgtags manually)'))
210 209
211
212 210 self._tag(name, node, message, local, user, date)
213 211
214 212 def tags(self):
General Comments 0
You need to be logged in to leave comments. Login now