##// END OF EJS Templates
histedit: remove a mutable default argument...
Pierre-Yves David -
r26335:6c93834d default
parent child Browse files
Show More
@@ -642,10 +642,12 b' class message(histeditaction):'
642 def commiteditor(self):
642 def commiteditor(self):
643 return cmdutil.getcommiteditor(edit=True, editform='histedit.mess')
643 return cmdutil.getcommiteditor(edit=True, editform='histedit.mess')
644
644
645 def findoutgoing(ui, repo, remote=None, force=False, opts={}):
645 def findoutgoing(ui, repo, remote=None, force=False, opts=None):
646 """utility function to find the first outgoing changeset
646 """utility function to find the first outgoing changeset
647
647
648 Used by initialization code"""
648 Used by initialization code"""
649 if opts is None:
650 opts = {}
649 dest = ui.expandpath(remote or 'default-push', remote or 'default')
651 dest = ui.expandpath(remote or 'default-push', remote or 'default')
650 dest, revs = hg.parseurl(dest, None)[:2]
652 dest, revs = hg.parseurl(dest, None)[:2]
651 ui.status(_('comparing with %s\n') % util.hidepassword(dest))
653 ui.status(_('comparing with %s\n') % util.hidepassword(dest))
General Comments 0
You need to be logged in to leave comments. Login now