Mercurial > hg
changeset 19687:54b3b4821bfb
commitablectx: move branch from workingctx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Wed, 14 Aug 2013 16:23:02 -0500 |
parents | e189c8ff33d3 |
children | 21e1068109a7 |
files | mercurial/context.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Wed Aug 14 16:22:42 2013 -0500 +++ b/mercurial/context.py Wed Aug 14 16:23:02 2013 -0500 @@ -987,6 +987,8 @@ def clean(self): assert self._clean is not None # must call status first return self._clean + def branch(self): + return encoding.tolocal(self._extra['branch']) class workingctx(commitablectx): """A workingctx object makes access to data related to @@ -1014,8 +1016,6 @@ p = p[:-1] return [changectx(self._repo, x) for x in p] - def branch(self): - return encoding.tolocal(self._extra['branch']) def closesbranch(self): return 'close' in self._extra def extra(self):