Mercurial > python-hglib
changeset 138:a05cdc1579df 1.5
context: handle tip+1 breakage in pre-3.2 default branch
Asking for rev(tip+1) could give a null changeset, which broke tests.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 01 Nov 2014 14:28:56 -0500 |
parents | 7ba67c1f1f92 |
children | c62635b24826 |
files | hglib/context.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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