equal
deleted
inserted
replaced
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> |