Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

history: add menu command to configure paths and after pull operation

Changeset 7c79fd5610e3

Parent 27c9a14b5e82

by Yuki KODAMA

Changes to one file · Browse files at 7c79fd5610e3 Showing diff from parent 27c9a14b5e82 Diff from another changeset...

 
355
356
357
 
 
 
358
359
360
 
1295
1296
1297
1298
 
1299
1300
1301
 
1749
1750
1751
1752
 
1753
1754
1755
 
355
356
357
358
359
360
361
362
363
 
1298
1299
1300
 
1301
1302
1303
1304
 
1752
1753
1754
 
1755
1756
1757
1758
@@ -355,6 +355,9 @@
  sensitive=not bool(self.bfile),   func=self.add_bundle_clicked, icon=gtk.STOCK_ADD),   dict(text='----'), + dict(text=_('Configure Paths...'), name='path', + func=self.conf_clicked, icon=gtk.STOCK_PREFERENCES), + dict(text='----'),   dict(text=_('Use proxy server'), name='use-proxy-server',   ascheck=True, func=toggle_proxy),   dict(text=_('Force push'), ascheck=True, func=toggle_force), @@ -1295,7 +1298,7 @@
  push.connect('clicked', self.push_clicked)   apply.connect('clicked', self.apply_clicked)   reject.connect('clicked', self.reject_clicked) - conf.connect('clicked', self.conf_clicked, urlcombo) + conf.connect('clicked', self.conf_clicked)   email.connect('clicked', self.email_clicked)   stop.connect('clicked', self.stop_clicked)   @@ -1749,7 +1752,7 @@
  _('Please try again after running '   'operation is completed'), self).run()   - def conf_clicked(self, toolbutton, combo): + def conf_clicked(self, *args):   newpath = hglib.fromutf(self.pathentry.get_text()).strip()   for alias, path in self.repo.ui.configitems('paths'):   if newpath in (path, url.hidepassword(path)):