##// END OF EJS Templates
remotefilelog: drop some compatibility cruft for finding the hg exeutable
Matt Harbison -
r40747:72d88a97 default
parent child Browse files
Show More
@@ -34,15 +34,8 b" osutil = policy.importmod(r'osutil')"
34 class RepackAlreadyRunning(error.Abort):
34 class RepackAlreadyRunning(error.Abort):
35 pass
35 pass
36
36
37 if util.safehasattr(util, '_hgexecutable'):
38 # Before 5be286db
39 _hgexecutable = util.hgexecutable
40 else:
41 from mercurial.utils import procutil
42 _hgexecutable = procutil.hgexecutable
43
44 def backgroundrepack(repo, incremental=True, packsonly=False):
37 def backgroundrepack(repo, incremental=True, packsonly=False):
45 cmd = [_hgexecutable(), '-R', repo.origroot, 'repack']
38 cmd = [procutil.hgexecutable(), '-R', repo.origroot, 'repack']
46 msg = _("(running background repack)\n")
39 msg = _("(running background repack)\n")
47 if incremental:
40 if incremental:
48 cmd.append('--incremental')
41 cmd.append('--incremental')
General Comments 0
You need to be logged in to leave comments. Login now