Patchwork D6538: shallowrepo: remove backwards compat code that predates in-tree remotefilelog

login
register
mail settings
Submitter phabricator
Date June 18, 2019, 3:40 p.m.
Message ID <d0466b26c5d3b5f9de91bbcb0aeb314f@localhost.localdomain>
Download mbox | patch
Permalink /patch/40583/
State Not Applicable
Headers show

Comments

phabricator - June 18, 2019, 3:40 p.m.
Closed by commit rHG373aeede7352: shallowrepo: remove backwards compat code that predates in-tree remotefilelog (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6538?vs=15573&id=15576

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6538/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6538

AFFECTED FILES
  hgext/remotefilelog/shallowrepo.py

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/hgext/remotefilelog/shallowrepo.py b/hgext/remotefilelog/shallowrepo.py
--- a/hgext/remotefilelog/shallowrepo.py
+++ b/hgext/remotefilelog/shallowrepo.py
@@ -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: