diff -r e7bf09acd410 -r e825a89de5d7 mercurial/context.py --- a/mercurial/context.py Sun May 13 14:04:04 2012 +0200 +++ b/mercurial/context.py Sun May 13 14:04:06 2012 +0200 @@ -186,6 +186,8 @@ return self._changeset[4] def branch(self): return encoding.tolocal(self._changeset[5].get("branch")) + def closesbranch(self): + return 'close' in self._changeset[5] def extra(self): return self._changeset[5] def tags(self): @@ -895,6 +897,8 @@ return self._clean def branch(self): return encoding.tolocal(self._extra['branch']) + def closesbranch(self): + return 'close' in self._extra def extra(self): return self._extra