changeset 6891:22cb82433842

revlog: add files method
author Adrian Buehlmann <adrian@cadifra.com>
date Wed, 13 Aug 2008 20:18:41 -0500
parents fddef0602859
children dab95717058d
files mercurial/revlog.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Wed Aug 13 20:18:41 2008 -0500
+++ b/mercurial/revlog.py	Wed Aug 13 20:18:41 2008 -0500
@@ -1353,3 +1353,9 @@
             di = 0
 
         return (dd, di)
+
+    def files(self):
+        res = [ self.indexfile ]
+        if not self._inline:
+            res.append(self.datafile)
+        return res