basefilectx: move branch from filectx
authorSean Farley <sean.michael.farley@gmail.com>
Sun, 11 Aug 2013 22:54:31 -0500
changeset 19596 9bc3d0dea371
parent 19595 bb6fd06975a6
child 19597 837bc86370f0
basefilectx: move branch from filectx
mercurial/context.py
--- a/mercurial/context.py	Sun Aug 11 22:54:22 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:54:31 2013 -0500
@@ -501,6 +501,8 @@
         return self._changectx.files()
     def description(self):
         return self._changectx.description()
+    def branch(self):
+        return self._changectx.branch()
 
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
@@ -557,8 +559,6 @@
         return filectx(self._repo, self._path, fileid=fileid,
                        filelog=self._filelog)
 
-    def branch(self):
-        return self._changectx.branch()
     def extra(self):
         return self._changectx.extra()
     def phase(self):