Mercurial > hg
changeset 8201:7cf2b987acd3
ui: trusted_users -> _trustusers, trusted_groups -> _trustgroups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:44 -0500 |
parents | 865d2c646f29 |
children | 4746113269c7 |
files | mercurial/ui.py |
diffstat | 1 files changed, 7 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ui.py Sun Apr 26 16:50:44 2009 -0500 +++ b/mercurial/ui.py Sun Apr 26 16:50:44 2009 -0500 @@ -20,15 +20,15 @@ self.overlay = config.config() self.cdata = config.config() self.ucdata = config.config() - self.trusted_users = {} - self.trusted_groups = {} + self._trustusers = {} + self._trustgroups = {} if src: self.cdata = src.cdata.copy() self.ucdata = src.ucdata.copy() self.overlay = src.overlay.copy() - self.trusted_users = src.trusted_users.copy() - self.trusted_groups = src.trusted_groups.copy() + self._trustusers = src._trustusers.copy() + self._trustgroups = src._trustgroups.copy() self.fixconfig() else: # we always trust global config files @@ -54,8 +54,7 @@ if util.isowner(fp, st): return True - tusers = self.trusted_users - tgroups = self.trusted_groups + tusers, tgroups = self._trustusers, self._trustgroups if '*' in tusers or '*' in tgroups: return True @@ -118,9 +117,9 @@ # update trust information for user in self.configlist('trusted', 'users'): - self.trusted_users[user] = 1 + self._trustusers[user] = 1 for group in self.configlist('trusted', 'groups'): - self.trusted_groups[group] = 1 + self._trustgroups[group] = 1 def setconfig(self, section, name, value): for cdata in (self.overlay, self.cdata, self.ucdata):