changeset 5057:da5cc4e493ff

obshistory: drop unused keyword argument to _getobsfateandsuccs()
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 03 Jan 2020 23:32:48 +0700
parents 456129fdcf93
children c95e68e8a219
files hgext3rd/evolve/obshistory.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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