changeset 31395:361bccce566a

rebase: don't use mutable default argument value
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 12 Mar 2017 21:56:39 -0700
parents fd3d8eb7f545
children ab3e9eab754f
files hgext/rebase.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/rebase.py	Sun Mar 12 21:55:46 2017 -0700
+++ b/hgext/rebase.py	Sun Mar 12 21:56:39 2017 -0700
@@ -721,10 +721,12 @@
     finally:
         release(lock, wlock)
 
-def _definesets(ui, repo, destf=None, srcf=None, basef=None, revf=[],
+def _definesets(ui, repo, destf=None, srcf=None, basef=None, revf=None,
                 destspace=None):
     """use revisions argument to define destination and rebase set
     """
+    revf = revf or []
+
     # destspace is here to work around issues with `hg pull --rebase` see
     # issue5214 for details
     if srcf and basef: