Mercurial > hg-git
changeset 1004:6faa33912cd5
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.
author | Stanislau Hlebik <stash@fb.com> |
---|---|
date | Mon, 09 Jan 2017 05:05:12 -0800 |
parents | 06d523eb596a |
children | 31f52d62ae13 |
files | hggit/overlay.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/overlay.py Sun Nov 13 11:49:23 2016 +0100 +++ b/hggit/overlay.py Mon Jan 09 05:05:12 2017 -0800 @@ -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 = {}