[PATCH] tags: remove another check for valid nodes
Idan Kamara
idankk86 at gmail.com
Thu Apr 7 09:18:23 CDT 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1302185777 -10800
# Node ID 8be010d216d16ce2fb8a25121d55a3d90d62ce16
# Parent 508d5419529cebd13897f7efc23ad365fb74125f
tags: remove another check for valid nodes
see 1aea86673dee
diff -r 508d5419529c -r 8be010d216d1 mercurial/localrepo.py
--- a/mercurial/localrepo.py Thu Apr 07 16:20:40 2011 +0300
+++ b/mercurial/localrepo.py Thu Apr 07 17:16:17 2011 +0300
@@ -390,10 +390,7 @@
'''return a list of tags ordered by revision'''
l = []
for t, n in self.tags().iteritems():
- try:
- r = self.changelog.rev(n)
- except error.LookupError:
- r = -2 # sort to the beginning of the list if unknown
+ r = self.changelog.rev(n)
l.append((r, t, n))
return [(t, n) for r, t, n in sorted(l)]
More information about the Mercurial-devel
mailing list