Patchwork [24,of,41] basefilectx: move description from filectx

login
register
mail settings
Submitter Sean Farley
Date Aug. 12, 2013, 4:27 p.m.
Message ID <304baff0b13871647543.1376324840@laptop.local>
Download mbox | patch
Permalink /patch/2152/
State Accepted
Commit bb6fd06975a66172a1caeaf6d49747298e6d1ded
Headers show

Comments

Sean Farley - Aug. 12, 2013, 4:27 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1376279662 18000
#      Sun Aug 11 22:54:22 2013 -0500
# Node ID 304baff0b138716475430b47cf8fb2d417658a14
# Parent  b6e7a94998c796c94140ebd189f35f5d7a92182f
basefilectx: move description from filectx

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -497,10 +497,12 @@ 
         return self._changectx.user()
     def date(self):
         return self._changectx.date()
     def files(self):
         return self._changectx.files()
+    def description(self):
+        return self._changectx.description()
 
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
        filerevision convenient."""
     def __init__(self, repo, path, changeid=None, fileid=None,
@@ -553,12 +555,10 @@ 
         '''opens an arbitrary revision of the file without
         opening a new filelog'''
         return filectx(self._repo, self._path, fileid=fileid,
                        filelog=self._filelog)
 
-    def description(self):
-        return self._changectx.description()
     def branch(self):
         return self._changectx.branch()
     def extra(self):
         return self._changectx.extra()
     def phase(self):