Mercurial > hg
changeset 40711:72d88a975655
remotefilelog: drop some compatibility cruft for finding the hg exeutable
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 23 Nov 2018 22:18:56 -0500 |
parents | 50a64c321c1e |
children | 246b61bfdc2f |
files | hgext/remotefilelog/repack.py |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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')