mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
histedit: remove a mutable default argument
Mutable default arguments are know to the state of California to cause bugs.
This commit is contained in:
parent
6988077eb7
commit
374e65cff5
@ -642,10 +642,12 @@ class message(histeditaction):
|
||||
def commiteditor(self):
|
||||
return cmdutil.getcommiteditor(edit=True, editform='histedit.mess')
|
||||
|
||||
def findoutgoing(ui, repo, remote=None, force=False, opts={}):
|
||||
def findoutgoing(ui, repo, remote=None, force=False, opts=None):
|
||||
"""utility function to find the first outgoing changeset
|
||||
|
||||
Used by initialization code"""
|
||||
if opts is None:
|
||||
opts = {}
|
||||
dest = ui.expandpath(remote or 'default-push', remote or 'default')
|
||||
dest, revs = hg.parseurl(dest, None)[:2]
|
||||
ui.status(_('comparing with %s\n') % util.hidepassword(dest))
|
||||
|
Loading…
Reference in New Issue
Block a user