# HG changeset patch # User Gregory Szorc # Date 1429198366 14400 # Node ID 61a6d83280d35972ec4e2acf669b9b5032a42378 # Parent 410f3856196f3b2da3cbe784d89a69fda3a36860 tags: return empty list of heads for no .hgtags case The caller only uses the heads to resolve tags from content of .hgtags. Returning a non-empty array is pointless if there is no .hgtags file. diff -r 410f3856196f -r 61a6d83280d3 mercurial/tags.py --- a/mercurial/tags.py Thu Apr 16 12:01:00 2015 -0400 +++ b/mercurial/tags.py Thu Apr 16 11:32:46 2015 -0400 @@ -326,7 +326,7 @@ if not len(repo.file('.hgtags')): # No tags have ever been committed, so we can avoid a # potentially expensive search. - return (repoheads, {}, valid, None, True) + return ([], {}, valid, None, True) starttime = time.time()