Mercurial > public > mercurial-scm > hg
diff mercurial/localrepo.py @ 31995:fe9c4d614600
track-tags: compute the actual differences between tags pre/post transaction
We now compute the proper actuall differences between tags before and after the
transaction. This catch a couple of false positives in the tests.
The compute the full difference since we are about to make this data available
to hooks in the next changeset.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 28 Mar 2017 10:14:55 +0200 |
parents | b36318e6d2ef |
children | e6e1884df298 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Mar 28 06:38:09 2017 +0200 +++ b/mercurial/localrepo.py Tue Mar 28 10:14:55 2017 +0200 @@ -1028,7 +1028,8 @@ newfnodes = tagsmod.fnoderevs(repo.ui, repo, newheads) # notes: we compare lists here. # As we do it only once buiding set would not be cheaper - if oldfnodes != newfnodes: + changes = tagsmod.difftags(repo.ui, repo, oldfnodes, newfnodes) + if changes: tr2.hookargs['tag_moved'] = '1' def validate(tr2): """will run pre-closing hooks"""