Mercurial > evolve
comparison hgext/directaccess.py @ 1368:c02cdb97ebfa
directaccess: disable directaccess for push and serve
Before this patch, push and serve were subject to directaccess. This patch
makes them throw error when trying to access hidden hashes.
author | Laurent Charignon <lcharignon@fb.com> |
---|---|
date | Tue, 16 Jun 2015 10:19:17 -0700 |
parents | 0c134ca37567 |
children | 30d42079f4a2 |
comparison
equal
deleted
inserted
replaced
1367:0c134ca37567 | 1368:c02cdb97ebfa |
---|---|
23 directaccesslevel = [ | 23 directaccesslevel = [ |
24 # 'nowarning' or 'error', (None if core) or extension name, command name | 24 # 'nowarning' or 'error', (None if core) or extension name, command name |
25 ('nowarning', None, 'update'), | 25 ('nowarning', None, 'update'), |
26 ('nowarning', None, 'export'), | 26 ('nowarning', None, 'export'), |
27 ('nowarning', 'evolve', 'prune'), | 27 ('nowarning', 'evolve', 'prune'), |
28 ('error', None, 'push'), | |
29 ('error', None, 'serve'), | |
28 ] | 30 ] |
29 | 31 |
30 def reposetup(ui, repo): | 32 def reposetup(ui, repo): |
31 repo._explicitaccess = set() | 33 repo._explicitaccess = set() |
32 | 34 |