diff -r 734712f37de3 -r b4f0fad0ea64 mercurial/commands.py --- a/mercurial/commands.py Fri Jul 15 12:17:03 2005 +0100 +++ b/mercurial/commands.py Fri Jul 15 13:42:19 2005 +0100 @@ -1023,9 +1023,8 @@ ui.status("(please commit .hgtags manually)\n") return -1 - add = not os.path.exists(repo.wjoin(".hgtags")) repo.wfile(".hgtags", "ab").write("%s %s\n" % (r, name)) - if add: + if repo.dirstate.state(".hgtags") == '?': repo.add([".hgtags"]) if not opts['text']: