obslog: use unfiltered repo for --no-graph implementation too
authorAnton Shestakov <av6@dwimlabs.net>
Sun, 03 May 2020 20:11:37 +0800
changeset 5321 aca826b5bd4d
parent 5320 1227553f82c6
child 5322 498dc888ff40
obslog: use unfiltered repo for --no-graph implementation too repo.unfiltered() is used for graph version of obslog, because if we want to filter non-local changesets, we only have to provide --filternonlocal flag on the command line and _nodesandmarkers() will handle filtering. But that means for obslog without -f to work correctly we need to provide unfiltered repo to that function. With this patch both implementations of obslog (--graph and --no-graph) see the same repo.
hgext3rd/evolve/obshistory.py
--- a/hgext3rd/evolve/obshistory.py	Thu Apr 09 20:02:32 2020 +0200
+++ b/hgext3rd/evolve/obshistory.py	Sun May 03 20:11:37 2020 +0800
@@ -485,7 +485,7 @@
 
         markerfm = fm.nested(b"markers")
 
-        data = _nodesandmarkers(repo, ctx, filternonlocal)
+        data = _nodesandmarkers(unfi, ctx, filternonlocal)
         for nodes_, markers in data:
             displaymarkers(ui, markerfm, nodes_, markers, ctx.node(), unfi,
                            includediff)