[PATCH 1 of 3] unionrepo: remove useless method _chunk

Wojciech Lopata lopek at fb.com
Thu Sep 26 20:07:19 CDT 2013


# HG changeset patch
# User Wojciech Lopata <lopek at fb.com>
# Date 1380211484 25200
#      Thu Sep 26 09:04:44 2013 -0700
# Node ID 336071e24234a66a052f9260cc93552c6379c8d9
# Parent  c80feeb715d1ebe9232c00881d43c1bbb594b3fa
unionrepo: remove useless method _chunk

This method is not used in the unionrepo.py file at all. It is used in the
revlog class in revdiff and revision methods, but these are never called in a
way that would need the _chunk method override.

diff --git a/mercurial/unionrepo.py b/mercurial/unionrepo.py
--- a/mercurial/unionrepo.py
+++ b/mercurial/unionrepo.py
@@ -58,11 +58,6 @@
             self.bundlerevs.add(n)
             n += 1
 
-    def _chunk(self, rev):
-        if rev <= self.repotiprev:
-            return revlog.revlog._chunk(self, rev)
-        return self.revlog2._chunk(self.node(rev))
-
     def revdiff(self, rev1, rev2):
         """return or calculate a delta between two revisions"""
         if rev1 > self.repotiprev and rev2 > self.repotiprev:


More information about the Mercurial-devel mailing list