changeset 42510:373aeede7352

shallowrepo: remove backwards compat code that predates in-tree remotefilelog Differential Revision: https://phab.mercurial-scm.org/D6538
author Augie Fackler <augie@google.com>
date Tue, 18 Jun 2019 09:58:01 -0400
parents abd4783db5a7
children ca1014ad3de4
files hgext/remotefilelog/shallowrepo.py
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/remotefilelog/shallowrepo.py	Tue Apr 16 02:53:28 2019 +0530
+++ b/hgext/remotefilelog/shallowrepo.py	Tue Jun 18 09:58:01 2019 -0400
@@ -33,13 +33,6 @@
     shallowutil,
 )
 
-if util.safehasattr(util, '_hgexecutable'):
-    # Before 5be286db
-    _hgexecutable = util.hgexecutable
-else:
-    from mercurial.utils import procutil
-    _hgexecutable = procutil.hgexecutable
-
 # These make*stores functions are global so that other extensions can replace
 # them.
 def makelocalstores(repo):
@@ -192,7 +185,7 @@
                                opts=None):
             """Runs prefetch in background with optional repack
             """
-            cmd = [_hgexecutable(), '-R', repo.origroot, 'prefetch']
+            cmd = [procutil.hgexecutable(), '-R', repo.origroot, 'prefetch']
             if repack:
                 cmd.append('--repack')
             if revs: