comparison mercurial/pathutil.py @ 23139:e53f6b72a0e4

spelling: fixes from proofreading of spell checker issues
author Mads Kiilerich <madski@unity3d.com>
date Thu, 17 Apr 2014 22:47:38 +0200
parents 8dd17b19e722
children a4679a74df14
comparison
equal deleted inserted replaced
23136:6eab50a34fed 23139:e53f6b72a0e4
144 raise util.Abort(_("%s not under root '%s'") % (myname, root)) 144 raise util.Abort(_("%s not under root '%s'") % (myname, root))
145 145
146 def normasprefix(path): 146 def normasprefix(path):
147 '''normalize the specified path as path prefix 147 '''normalize the specified path as path prefix
148 148
149 Returned vaule can be used safely for "p.startswith(prefix)", 149 Returned value can be used safely for "p.startswith(prefix)",
150 "p[len(prefix):]", and so on. 150 "p[len(prefix):]", and so on.
151 151
152 For efficiency, this expects "path" argument to be already 152 For efficiency, this expects "path" argument to be already
153 normalized by "os.path.normpath", "os.path.realpath", and so on. 153 normalized by "os.path.normpath", "os.path.realpath", and so on.
154 154