# HG changeset patch # User Stanislau Hlebik # Date 1483967112 28800 # Node ID 6faa33912cd5c044a7e79773783652734c73bba0 # Parent 06d523eb596ac504bb020dad3e82f09d9826b51d hotfix: add unfiltered() method to fix tests f05ede08dcf7d13794ccc9abb53877a50bf2b58b in mercurial main repo changed changeset_printer so that it outputs all the troubles for the changeset. To do it ctx.troubled() is accessed and in turn it asks for obsstore and unfiltered() repo. It causes tests failures in hg-git because overlay repo has neither obsstore field nor unfiltered method. This patch adds unfiltered method that always returns unfiltered repo from the handler. diff --git a/hggit/overlay.py b/hggit/overlay.py --- a/hggit/overlay.py +++ b/hggit/overlay.py @@ -445,6 +445,9 @@ def filectx(self, path, fileid=None): return overlayfilectx(self, path, fileid=fileid) + def unfiltered(self): + return self.handler.repo.unfiltered() + def _makemaps(self, commits, refs): baserev = self.handler.repo['tip'].rev() self.revmap = {}