evolve: store the target category in evolvestate
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 22 Jan 2018 18:13:52 +0530
changeset 3480 1799fc777f30
parent 3479 4b9fc8c85ee4
child 3481 93bb36b4a666
evolve: store the target category in evolvestate
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Mon Jan 22 17:54:27 2018 +0530
+++ b/hgext3rd/evolve/evolvecmd.py	Mon Jan 22 18:13:52 2018 +0530
@@ -1155,6 +1155,9 @@
     # Order the revisions
     if targetcat == 'orphan':
         revs = _orderrevs(repo, revs)
+
+    stateopts = {'category': targetcat}
+    evolvestate.addopts(stateopts)
     for rev in revs:
         curctx = repo[rev]
         progresscb()