# HG changeset patch # User Matt Mackall # Date 1414870136 18000 # Node ID a05cdc1579df62120e716c6e9113458f568f0ff3 # Parent 7ba67c1f1f92e8cb5c159afb80e584b5e197ea16 context: handle tip+1 breakage in pre-3.2 default branch Asking for rev(tip+1) could give a null changeset, which broke tests. diff -r 7ba67c1f1f92 -r a05cdc1579df hglib/context.py --- a/hglib/context.py Sat Nov 01 14:26:18 2014 -0500 +++ b/hglib/context.py Sat Nov 01 14:28:56 2014 -0500 @@ -23,6 +23,10 @@ notfound = False try: cset = self._repo.log(changeid) + # hg bbf4f3dfd700 gave a null result for tip+1 + if (cset and cset[0][1] == _nullcset[1] + and cset[0][0] != _nullcset[0]): + notfound = True except CommandError: notfound = True