Mercurial > public > mercurial-scm > hg
diff mercurial/ui.py @ 2584:1f4703115e28
merge with crew
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 09 Jul 2006 14:42:18 +0200 |
parents | 6e5427447f4c a20a1bb0c396 |
children | b898afee9d0d |
line wrap: on
line diff
--- a/mercurial/ui.py Sun Jul 09 14:12:19 2006 +0200 +++ b/mercurial/ui.py Sun Jul 09 14:42:18 2006 +0200 @@ -76,7 +76,7 @@ if root is None: root = os.path.expanduser('~') for name, path in self.configitems("paths"): - if path and path.find("://") == -1 and not os.path.isabs(path): + if path and "://" not in path and not os.path.isabs(path): self.cdata.set("paths", name, os.path.join(root, path)) def setconfig(self, section, name, val): @@ -172,7 +172,8 @@ def diffopts(self): if self.diffcache: return self.diffcache - result = {'showfunc': True, 'ignorews': False} + result = {'showfunc': True, 'ignorews': False, + 'ignorewsamount': False, 'ignoreblanklines': False} for key, value in self.configitems("diff"): if value: result[key.lower()] = (value.lower() == 'true') @@ -208,7 +209,7 @@ def expandpath(self, loc, default=None): """Return repository location relative to cwd or from [paths]""" - if loc.find("://") != -1 or os.path.exists(loc): + if "://" in loc or os.path.exists(loc): return loc path = self.config("paths", loc)