##// END OF EJS Templates
keyword: simplify repo.local and bundle check (as in 2f4a399a8787)
Christian Ebert -
r7534:5aca1272 default
parent child Browse files
Show More
@@ -425,14 +425,10 b' def reposetup(ui, repo):'
425 keyword substitutions.
425 keyword substitutions.
426 Monkeypatches patch and webcommands.'''
426 Monkeypatches patch and webcommands.'''
427
427
428 try:
428 if (not hasattr(repo, 'dirstate') or not kwtools['inc']
429 if (not repo.local() or not kwtools['inc']
429 or kwtools['hgcmd'] in nokwcommands.split()
430 or kwtools['hgcmd'] in nokwcommands.split()
430 or '.hg' in util.splitpath(repo.root)):
431 or '.hg' in util.splitpath(repo.root)
431 return
432 or repo._url.startswith('bundle:')):
433 return
434 except AttributeError:
435 pass
436
432
437 kwtools['templater'] = kwt = kwtemplater(ui, repo)
433 kwtools['templater'] = kwt = kwtemplater(ui, repo)
438
434
General Comments 0
You need to be logged in to leave comments. Login now