diff 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
line wrap: on
line diff
--- a/hgext/directaccess.py	Tue Jun 16 10:08:48 2015 -0700
+++ b/hgext/directaccess.py	Tue Jun 16 10:19:17 2015 -0700
@@ -25,6 +25,8 @@
     ('nowarning', None, 'update'),
     ('nowarning', None, 'export'),
     ('nowarning',  'evolve', 'prune'),
+    ('error', None, 'push'),
+    ('error', None, 'serve'),
 ]
 
 def reposetup(ui, repo):