diff mercurial/context.py @ 18423:5d6ee2494f63

clfilter: stronger detection of filtered changeset in changectx.__init__ We previously let some IndexError spill out of this function. A new tests is added to check the command that spotted the error.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 16 Jan 2013 05:21:11 +0100
parents f3b21beb9802
children a2e9fe93d9ea
line wrap: on
line diff
--- a/mercurial/context.py	Tue Dec 11 20:13:21 2012 +0100
+++ b/mercurial/context.py	Wed Jan 16 05:21:11 2013 +0100
@@ -67,7 +67,7 @@
             self._rev = r
             self._node = repo.changelog.node(r)
             return
-        except (ValueError, OverflowError):
+        except (ValueError, OverflowError, IndexError):
             pass
 
         if len(changeid) == 40: