diff -r 3d54cf97598d -r 58dcf10eea2b mercurial/localrepo.py --- a/mercurial/localrepo.py Mon Sep 08 14:04:10 2008 +0200 +++ b/mercurial/localrepo.py Wed Sep 10 08:48:23 2008 +0200 @@ -221,13 +221,7 @@ raise util.Abort(_('working copy of .hgtags is changed ' '(please commit .hgtags manually)')) - parents = self[None].parents() - parent = None - # use tip instead of the parent rev if there's no working copy - # (avoid creating a new head) - if len(parents) == 1 and parents[0].node() == nullid: - parent = self['tip'].node() - self._tag(names, node, message, local, user, date, parent=parent) + self._tag(names, node, message, local, user, date) def tags(self): '''return a mapping of tag to node'''