Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/localrepo.py @ 5211:bddb4ff134c0
Do not lose previous tags when adding a tag in raw mode
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 23 Aug 2007 12:23:07 -0700 |
parents | ea7b982b6c08 |
children | b772c0b9f0bd 8ede77c2d008 |
line wrap: on
line diff
--- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -151,6 +151,8 @@ class localrepository(repo.repository): except revlog.LookupError: pass fp = self.wfile('.hgtags', 'wb') + if prevtags: + fp.write(prevtags) # committed tags are stored in UTF-8 writetag(fp, name, util.fromlocal, prevtags)