sapling/hgext3rd
Jun Wu bdb47a171c ownercheck: new extension to prevent operations on repos not owned
Summary:
This is mainly to address the same issue as D3609747: prevent issues caused
by running hg as root. The difference is this extension reads owner and uid
dynamically without config when initializing of a localrepo object.

As a side effect it covers more situations like running hg in others' repos, while
being less restrictive for some other commands like `sudo hg version`.

Test Plan: Added a new test

Reviewers: #mercurial, ttung, rmcelroy

Reviewed By: rmcelroy

Subscribers: ikostia, rmcelroy, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3619997

Tasks: 11723374

Signature: t1:3619997:1470176448:beaf53c09fca498206767641ffa4315a744ee07e
2016-07-26 13:10:15 +01:00
..
__init__.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
arcdiff.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
backups.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
bundle2hooks.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
catnotate.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
chistedit.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
commitextras.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
dirsync.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
errorredirect.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
extorder.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
extutil.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
fbamend.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
fbconduit.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
fbhistedit.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
githelp.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
gitlookup.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
gitrevset.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
grepdiff.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
inhibitwarn.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
mergedriver.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
morestatus.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
nointerrupt.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
ownercheck.py ownercheck: new extension to prevent operations on repos not owned 2016-07-26 13:10:15 +01:00
patchpython.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
perftweaks.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
phabdiff.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
phabstatus.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
phrevset.py phrevset: do not depend on hgsubversion 2016-07-20 20:09:29 +01:00
pullcreatemarkers.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
pushrebase.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
pushvars.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
rage.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
reporootlog.py [reporootlog] report the repo root to the scm wrappers 2016-08-02 11:59:52 -07:00
reset.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
sampling.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
show.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
simplecache.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
smartlog.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
sparse.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
sshaskpass.py sshaskpass: handle the case that __file__ ends with .pyo 2016-07-27 14:05:16 +01:00
statprofext.py statprofext: import statprof from standard python path 2016-08-01 12:00:18 -07:00
tweakdefaults.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
upgradegeneraldelta.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00