Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

tag: use blank dict as default value of 'opts'

Changeset 62d1f14bdba1

Parent 23a6341f361f

by Yuki KODAMA

Changes to one file · Browse files at 62d1f14bdba1 Showing diff from parent 23a6341f361f Diff from another changeset...

 
26
27
28
29
 
30
31
32
 
153
154
155
156
157
158
 
 
 
159
160
 
161
162
163
 
26
27
28
 
29
30
31
32
 
153
154
155
 
 
 
156
157
158
159
 
160
161
162
163
@@ -26,7 +26,7 @@
    repoInvalidated = pyqtSignal()   - def __init__(self, repo=None, tag='', rev='tip', parent=None, opts=None): + def __init__(self, repo=None, tag='', rev='tip', parent=None, opts={}):   super(TagDialog, self).__init__(parent)   self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)   @@ -153,11 +153,11 @@
  self.show_options(False)   self.tag_combo.setFocus()   - self.replace_chk.setChecked(bool(opts['force'])) - self.local_chk.setChecked(bool(opts['local'])) - if not opts['local'] and opts['message']: + self.replace_chk.setChecked(bool(opts.get('force'))) + self.local_chk.setChecked(bool(opts.get('local'))) + if not opts.get('local') and opts.get('message'):   self.custom_chk.setChecked(True) - self.custom_text.setText(opts['message']) + self.custom_text.setText(opts.get('message', ''))     ### Private Methods ###