comparison hgext/largefiles/lfutil.py @ 18150:14e31a631e41

largefiles: use plain wjoin instead of the complex pathto
author Mads Kiilerich <madski@unity3d.com>
date Thu, 13 Dec 2012 19:19:06 +0100
parents bf6252d12c34
children 90ad387d9245
comparison
equal deleted inserted replaced
18149:2dcc3653b361 18150:14e31a631e41
246 util.makedirs(os.path.dirname(path)) 246 util.makedirs(os.path.dirname(path))
247 link(storepath(repo, hash), path) 247 link(storepath(repo, hash), path)
248 248
249 def getstandinmatcher(repo, pats=[], opts={}): 249 def getstandinmatcher(repo, pats=[], opts={}):
250 '''Return a match object that applies pats to the standin directory''' 250 '''Return a match object that applies pats to the standin directory'''
251 standindir = repo.pathto(shortname) 251 standindir = repo.wjoin(shortname)
252 if pats: 252 if pats:
253 # patterns supplied: search standin directory relative to current dir 253 # patterns supplied: search standin directory relative to current dir
254 cwd = repo.getcwd() 254 cwd = repo.getcwd()
255 if os.path.isabs(cwd): 255 if os.path.isabs(cwd):
256 # cwd is an absolute path for hg -R <reponame> 256 # cwd is an absolute path for hg -R <reponame>