rebase: pass in a regular set to _setrebasesetvisibility()
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 10 Mar 2017 23:06:31 -0800
changeset 31305 98658f73588a
parent 31304 7f869d81ab54
child 31306 f5c71e98f0f7
rebase: pass in a regular set to _setrebasesetvisibility() Trivial refactoring to simplify the next patch.
hgext/rebase.py
--- a/hgext/rebase.py	Wed Feb 01 09:18:44 2017 -0800
+++ b/hgext/rebase.py	Fri Mar 10 23:06:31 2017 -0800
@@ -250,7 +250,7 @@
         repo.ui.debug('computed skipped revs: %s\n' %
                         (' '.join(str(r) for r in sorted(skipped)) or None))
         repo.ui.debug('rebase status resumed\n')
-        _setrebasesetvisibility(repo, state.keys())
+        _setrebasesetvisibility(repo, set(state.keys()))
 
         self.originalwd = originalwd
         self.target = target
@@ -1203,7 +1203,7 @@
     dest: context
     rebaseset: set of rev
     '''
-    _setrebasesetvisibility(repo, rebaseset)
+    _setrebasesetvisibility(repo, set(rebaseset))
 
     # This check isn't strictly necessary, since mq detects commits over an
     # applied patch. But it prevents messing up the working directory when
@@ -1389,7 +1389,6 @@
     This is used by another function to prevent rebased revision to because
     hidden (see issue4504)"""
     repo = repo.unfiltered()
-    revs = set(revs)
     repo._rebaseset = revs
     # invalidate cache if visibility changes
     hiddens = repo.filteredrevcache.get('visible', set())