diff options
author | hut <hut@hut.pm> | 2017-12-20 00:34:31 +0100 |
---|---|---|
committer | hut <hut@hut.pm> | 2017-12-20 00:34:31 +0100 |
commit | a7ae37db0cb6a945de799c8abeeb9bf5370d159c (patch) | |
tree | 5a1af34e2e2267499dcbbdb14ea67eee549fd4aa | |
parent | e330d3458143fb17f3cf22cc11a7fa588e842ac2 (diff) | |
parent | e4ad5a953ec0127d65f16619e8b84e476bb6b362 (diff) | |
download | ranger-a7ae37db0cb6a945de799c8abeeb9bf5370d159c.tar.gz |
Merge branch 'ormung-patch-1' of https://github.com/ormung/ranger
-rw-r--r-- | ranger/ext/vcs/vcs.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/ext/vcs/vcs.py b/ranger/ext/vcs/vcs.py index 1d0edff4..e2838f8d 100644 --- a/ranger/ext/vcs/vcs.py +++ b/ranger/ext/vcs/vcs.py @@ -112,7 +112,11 @@ class Vcs(object): # pylint: disable=too-many-instance-attributes def _run(self, args, path=None, # pylint: disable=too-many-arguments catchout=True, retbytes=False, rstrip_newline=True): """Run a command""" - cmd = [self.repotype] + args + if self.repotype == 'hg': + # use "chg", a faster built-in client + cmd = ['chg'] + args + else: + cmd = [self.repotype] + args if path is None: path = self.path |