by
Changes to 5 files · Browse files at f7e45cdf3f0c Showing diff from parent 2b4cdcba8019 c477cecc73a6 Diff from another changeset...
@@ -156,6 +156,7 @@
stack = []
get = util.cachefunc(lambda r: repo.changectx(r).changeset())
+ pats = ['path:'+p for p in pats]
changeiter, matchfn = cmdutil.walkchangerevs(repo.ui, repo, pats, get, opts)
for st, rev, fns in changeiter:
if st == 'iter':
|
@@ -87,10 +87,12 @@ self.filechunks = {}
def auto_check(self):
- if self.pats or self.opts.get('check'):
+ # Only auto-check files once, and only if a pattern was given.
+ if self.pats and self.opts.get('check'):
for entry in self.filemodel:
entry[FM_CHECKED] = True
self.update_check_count()
+ self.opts['check'] = False
def get_menu_info(self):
"""Returns menu info in this order:
|
@@ -278,11 +278,19 @@ self.sethandlers()
self.lastproto = None
- self.protcombo.connect('changed', self.changed)
self.update_sensitive()
self.show_all()
def sethandlers(self, enable=True):
+ # protocol combobox
+ if enable:
+ self.pcombo_hid = self.protcombo.connect('changed', self.changed)
+ else:
+ h = self.pcombo_hid
+ if h and self.protcombo.handler_is_connected(h):
+ self.protcombo.disconnect(h)
+
+ # other entries
for n, (e, l, h) in self.entries.iteritems():
if enable:
handler = self.changedurl if n == 'URL' else self.changed
@@ -318,7 +326,10 @@ user, host, port, folder, pw, scheme = self.urlparse(path)
self.entries['Alias'][0].set_text(alias)
- self.entries['URL'][0].set_text(url.hidepassword(path))
+ if scheme == 'local':
+ self.entries['URL'][0].set_text(path)
+ else:
+ self.entries['URL'][0].set_text(url.hidepassword(path))
self.entries['User'][0].set_text(user or '')
self.entries['Host'][0].set_text(host or '')
self.entries['Port'][0].set_text(port or '')
|
|
|
Loading...