equal
deleted
inserted
replaced
90 return repo.local() |
90 return repo.local() |
91 |
91 |
92 def openpath(ui, path): |
92 def openpath(ui, path): |
93 '''open path with open if local, url.open if remote''' |
93 '''open path with open if local, url.open if remote''' |
94 if islocal(path): |
94 if islocal(path): |
95 return open(util.urllocalpath(path)) |
95 return util.posixfile(util.urllocalpath(path), 'rb') |
96 else: |
96 else: |
97 return url.open(ui, path) |
97 return url.open(ui, path) |
98 |
98 |
99 def _peerorrepo(ui, path, create=False): |
99 def _peerorrepo(ui, path, create=False): |
100 """return a repository object for the specified path""" |
100 """return a repository object for the specified path""" |