obshistory: drop unused keyword argument to _getobsfateandsuccs()
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 03 Jan 2020 23:32:48 +0700
changeset 5057 da5cc4e493ff
parent 5056 456129fdcf93
child 5058 c95e68e8a219
obshistory: drop unused keyword argument to _getobsfateandsuccs()
hgext3rd/evolve/obshistory.py
--- a/hgext3rd/evolve/obshistory.py	Thu Jan 02 01:16:18 2020 +0700
+++ b/hgext3rd/evolve/obshistory.py	Fri Jan 03 23:32:48 2020 +0700
@@ -792,15 +792,13 @@
         return None
     return _prepare_hunk(lines)
 
-def _getobsfateandsuccs(repo, revnode, successorssets=None):
+def _getobsfateandsuccs(repo, revnode):
     """ Return a tuple containing:
     - the reason a revision is obsolete (diverged, pruned or superseded)
     - the list of successors short node if the revision is neither pruned
     or has diverged
     """
-    if successorssets is None:
-        successorssets = obsutil.successorssets(repo, revnode)
-
+    successorssets = obsutil.successorssets(repo, revnode)
     fate = obsutil._getobsfate(successorssets)
 
     # Apply node.short if we have no divergence