hgext/hgk.py
changeset 43787 be8552f25cab
parent 43639 52a73fb498a4
child 44676 1756f75873bf
equal deleted inserted replaced
43786:421ea5772039 43787:be8552f25cab
   371     [(b'l', b'limit', b'', _(b'limit number of changes displayed'), _(b'NUM'))],
   371     [(b'l', b'limit', b'', _(b'limit number of changes displayed'), _(b'NUM'))],
   372     _(b'[-l LIMIT] [REVRANGE]'),
   372     _(b'[-l LIMIT] [REVRANGE]'),
   373     helpcategory=command.CATEGORY_CHANGE_NAVIGATION,
   373     helpcategory=command.CATEGORY_CHANGE_NAVIGATION,
   374 )
   374 )
   375 def view(ui, repo, *etc, **opts):
   375 def view(ui, repo, *etc, **opts):
   376     b"start interactive history viewer"
   376     """start interactive history viewer"""
   377     opts = pycompat.byteskwargs(opts)
   377     opts = pycompat.byteskwargs(opts)
   378     os.chdir(repo.root)
   378     os.chdir(repo.root)
   379     optstr = b' '.join(
   379     optstr = b' '.join(
   380         [b'--%s %s' % (k, v) for k, v in pycompat.iteritems(opts) if v]
   380         [b'--%s %s' % (k, v) for k, v in pycompat.iteritems(opts) if v]
   381     )
   381     )