# HG changeset patch # User Matt Mackall # Date 1245513227 18000 # Node ID 5096a47d8aec0af0e0d49aaf655b4f3b4197ddc2 # Parent f8d00346a62d4bb4e5e3bb5d5adc555471b0c756 tags: silence warning about unknown tags This is mostly a nuisance and can happen legitimately with pull -r, etc. diff -r f8d00346a62d -r 5096a47d8aec mercurial/localrepo.py --- a/mercurial/localrepo.py Sat Jun 20 09:00:02 2009 -0500 +++ b/mercurial/localrepo.py Sat Jun 20 10:53:47 2009 -0500 @@ -262,7 +262,7 @@ warn(_("node '%s' is not well formed") % node) continue if bin_n not in self.changelog.nodemap: - warn(_("tag '%s' refers to unknown node") % key) + # silently ignore as pull -r might cause this continue h = [] diff -r f8d00346a62d -r 5096a47d8aec tests/test-tags.out --- a/tests/test-tags.out Sat Jun 20 09:00:02 2009 -0500 +++ b/tests/test-tags.out Sat Jun 20 10:53:47 2009 -0500 @@ -26,14 +26,12 @@ .hgtags@c071f74ab5eb, line 2: cannot parse entry .hgtags@c071f74ab5eb, line 4: node 'foo' is not well formed .hgtags@4ca6f1b1a68c, line 2: node 'x' is not well formed -localtags, line 1: tag 'invalid' refers to unknown node tip 8:4ca6f1b1a68c first 0:0acdaf898367 changeset: 8:4ca6f1b1a68c .hgtags@c071f74ab5eb, line 2: cannot parse entry .hgtags@c071f74ab5eb, line 4: node 'foo' is not well formed .hgtags@4ca6f1b1a68c, line 2: node 'x' is not well formed -localtags, line 1: tag 'invalid' refers to unknown node tag: tip parent: 3:b2ef3841386b user: test