diff mercurial/context.py @ 2566:d8560b458f76

Convert hg annotate to context api
author Matt Mackall <mpm@selenic.com>
date Wed, 28 Jun 2006 17:42:17 -0500
parents 482c524dd9ab
children b779319a532b
line wrap: on
line diff
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -119,3 +119,6 @@ class filectx(object):
         # hard for renames
         c = self._filelog.children(self._filenode)
         return [ filectx(self._repo, self._path, fileid=x) for x in c ]
+
+    def annotate(self):
+        return self._filelog.annotate(self._filenode)