comparison mercurial/util.py @ 1102:c81d264cd17d

localrepo: minor opener usage restructuring
author mpm@selenic.com
date Sat, 27 Aug 2005 16:34:54 -0700
parents 2cf5c8a4eae5
children e388c4f5cec5
comparison
equal deleted inserted replaced
1101:2cf5c8a4eae5 1102:c81d264cd17d
236 """ 236 """
237 return a function that opens files relative to base 237 return a function that opens files relative to base
238 238
239 this function is used to hide the details of COW semantics and 239 this function is used to hide the details of COW semantics and
240 remote file access from higher level code. 240 remote file access from higher level code.
241
242 todo: separate remote file access into a separate function
243 """ 241 """
244 p = base 242 p = base
245 def o(path, mode="r"): 243 def o(path, mode="r"):
246 f = os.path.join(p, path) 244 f = os.path.join(p, path)
247 245