Mercurial > hg > mercurial-crew-with-dirclash
view tests/test-trusted.py.out @ 3537:3b07e223534b
Only read .hg/hgrc files from trusted users/groups
The list of trusted users and groups is specified in the [trusted]
section of a hgrc; the current user is always trusted; "*" can be
used to trust all users/groups.
Global hgrc files are always read.
On Windows (and other systems that don't have the pwd and grp modules),
all .hg/hgrc files are read.
This is essentially the same patch that was previously applied as
revision 494521a3f142.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 26 Oct 2006 19:25:44 +0200 |
parents | |
children | 9b52239dc740 |
line wrap: on
line source
# same user, same group global = /some/path local = /another/path # same user, different group global = /some/path local = /another/path # different user, same group Not reading file .hg/hgrc from untrusted user abc, group bar global = /some/path # different user, same group, but we trust the group global = /some/path local = /another/path # different user, different group Not reading file .hg/hgrc from untrusted user abc, group def global = /some/path # different user, different group, but we trust the user global = /some/path local = /another/path # different user, different group, but we trust the group global = /some/path local = /another/path # different user, different group, but we trust the user and the group global = /some/path local = /another/path # we trust all users # different user, different group global = /some/path local = /another/path # we trust all groups # different user, different group global = /some/path local = /another/path # we trust all users and groups # different user, different group global = /some/path local = /another/path # we don't get confused by users and groups with the same name # different user, different group Not reading file .hg/hgrc from untrusted user abc, group def global = /some/path # list of user names # different user, different group, but we trust the user global = /some/path local = /another/path # list of group names # different user, different group, but we trust the group global = /some/path local = /another/path # Can't figure out the name of the user running this process # different user, different group global = /some/path local = /another/path