Steve Borho  committed d0d9f32

thgrepo: wrap the unfiltered repo instance

Longer term, we need to modify localrepo class itself or add thgrepo object to
localrepo object. We shouldn't be changing repo.__class__ this way

  • Participants
  • Parent commits 8b77859
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

             _ui = uimod.ui()
             repo = hg.repository(_ui, path, create)
+            # get unfiltered repo in version safe manner
+            repo = getattr(repo, 'unfiltered', lambda: repo)()
             repo.__class__ = _extendrepo(repo)
             repo._pyqtobj = ThgRepoWrapper(repo)
             _repocache[path] = repo