hgext/largefiles/lfutil.py
changeset 18150 14e31a631e41
parent 18148 bf6252d12c34
child 18151 90ad387d9245
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>