[PATCH 2 of 6] revlog: add files method

Adrian Buehlmann adrian at cadifra.com
Thu Jul 31 04:47:03 CDT 2008


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1217491758 -7200
# Node ID fcdcfd07ab43fd6e92a364e9f07b4c4f13c9b1a0
# Parent  d0580959fd05adf37fb9b720da84db2cc5ce341c
revlog: add files method

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -1332,3 +1332,9 @@
             di = 0
 
         return (dd, di)
+
+    def files(self):
+        res = [ self.indexfile ]
+        if not self._inline:
+            res.append(self.datafile)
+        return res


More information about the Mercurial-devel mailing list