about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@hut.pm>2017-12-20 00:34:31 +0100
committerhut <hut@hut.pm>2017-12-20 00:34:31 +0100
commita7ae37db0cb6a945de799c8abeeb9bf5370d159c (patch)
tree5a1af34e2e2267499dcbbdb14ea67eee549fd4aa
parente330d3458143fb17f3cf22cc11a7fa588e842ac2 (diff)
parente4ad5a953ec0127d65f16619e8b84e476bb6b362 (diff)
downloadranger-a7ae37db0cb6a945de799c8abeeb9bf5370d159c.tar.gz
Merge branch 'ormung-patch-1' of https://github.com/ormung/ranger
-rw-r--r--ranger/ext/vcs/vcs.py6
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