# HG changeset patch # User Sean Farley # Date 1376515396 18000 # Node ID 21e1068109a72692f233132f7cf0d61dc6e14fc1 # Parent 54b3b4821bfb613441b598a5af4ec5ee379c8ac4 commitablectx: move closesbranch from workingctx diff -r 54b3b4821bfb -r 21e1068109a7 mercurial/context.py --- a/mercurial/context.py Wed Aug 14 16:23:02 2013 -0500 +++ b/mercurial/context.py Wed Aug 14 16:23:16 2013 -0500 @@ -989,6 +989,8 @@ return self._clean def branch(self): return encoding.tolocal(self._extra['branch']) + def closesbranch(self): + return 'close' in self._extra class workingctx(commitablectx): """A workingctx object makes access to data related to @@ -1016,8 +1018,6 @@ p = p[:-1] return [changectx(self._repo, x) for x in p] - def closesbranch(self): - return 'close' in self._extra def extra(self): return self._extra