revlog: add files method
authorAdrian Buehlmann <adrian@cadifra.com>
Wed, 13 Aug 2008 20:18:41 -0500
changeset 6891 22cb82433842
parent 6890 fddef0602859
child 6892 dab95717058d
revlog: add files method
mercurial/revlog.py
--- 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