comparison hgext/hgk.py @ 24512:e5c5ddc3b172

hgk: pass --hidden switch to hg subprocesses when needed
author Andrew Shadura <andrew@shadura.me>
date Sat, 28 Mar 2015 19:36:21 +0100
parents 0ecc1e42ff3f
children b5a0b2374eb6
comparison
equal deleted inserted replaced
24511:0ecc1e42ff3f 24512:e5c5ddc3b172
347 _('[-l LIMIT] [REVRANGE]')) 347 _('[-l LIMIT] [REVRANGE]'))
348 def view(ui, repo, *etc, **opts): 348 def view(ui, repo, *etc, **opts):
349 "start interactive history viewer" 349 "start interactive history viewer"
350 os.chdir(repo.root) 350 os.chdir(repo.root)
351 optstr = ' '.join(['--%s %s' % (k, v) for k, v in opts.iteritems() if v]) 351 optstr = ' '.join(['--%s %s' % (k, v) for k, v in opts.iteritems() if v])
352 if repo.filtername is None:
353 optstr += '--hidden'
354
352 cmd = ui.config("hgk", "path", "hgk") + " %s %s" % (optstr, " ".join(etc)) 355 cmd = ui.config("hgk", "path", "hgk") + " %s %s" % (optstr, " ".join(etc))
353 ui.debug("running %s\n" % cmd) 356 ui.debug("running %s\n" % cmd)
354 ui.system(cmd) 357 ui.system(cmd)