Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph

sync: store most recently used push/pull command line options

Changeset 7ee0afbda823

Parent cc9fafc69176

by David Golub

Changes to one file · Browse files at 7ee0afbda823 Showing diff from parent cc9fafc69176 Diff from another changeset...

 
92
93
94
 
 
 
 
 
 
 
 
 
95
96
97
 
390
391
392
 
 
 
 
393
394
395
 
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
 
399
400
401
402
403
404
405
406
407
408
@@ -92,6 +92,15 @@
  self.embedded = bool(parent)   self.targetargs = []   + s = QSettings() + for opt in ('subrepos', 'force', 'new-branch', 'noproxy', 'debug'): + val = s.value('sync/' + opt, None).toBool() + if val: + self.opts[opt] = val + val = str(s.value('sync/remotecmd', None).toString()) + if val: + self.opts['remotecmd'] = val +   self.repo.configChanged.connect(self.configChanged)     if self.embedded: @@ -390,6 +399,10 @@
  self.opts.update(dlg.outopts)   self.refreshUrl()   + s = QSettings() + for opt, val in self.opts.iteritems(): + s.setValue('sync/' + opt, val) +   def reload(self):   # Refresh configured paths   self.paths = {}