remotefilelog: drop some compatibility cruft for finding the hg exeutable
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 23 Nov 2018 22:18:56 -0500
changeset 40750 72d88a975655
parent 40749 50a64c321c1e
child 40751 246b61bfdc2f
remotefilelog: drop some compatibility cruft for finding the hg exeutable
hgext/remotefilelog/repack.py
--- a/hgext/remotefilelog/repack.py	Wed Nov 21 17:17:26 2018 +0300
+++ b/hgext/remotefilelog/repack.py	Fri Nov 23 22:18:56 2018 -0500
@@ -34,15 +34,8 @@
 class RepackAlreadyRunning(error.Abort):
     pass
 
-if util.safehasattr(util, '_hgexecutable'):
-    # Before 5be286db
-    _hgexecutable = util.hgexecutable
-else:
-    from mercurial.utils import procutil
-    _hgexecutable = procutil.hgexecutable
-
 def backgroundrepack(repo, incremental=True, packsonly=False):
-    cmd = [_hgexecutable(), '-R', repo.origroot, 'repack']
+    cmd = [procutil.hgexecutable(), '-R', repo.origroot, 'repack']
     msg = _("(running background repack)\n")
     if incremental:
         cmd.append('--incremental')