Show More
@@ -238,11 +238,11 b' def linktousercache(repo, hash):' | |||
|
238 | 238 | if path: |
|
239 | 239 | link(storepath(repo, hash), path) |
|
240 | 240 | |
|
241 |
def getstandinmatcher(repo, |
|
|
242 |
'''Return a match object that applies |
|
|
241 | def getstandinmatcher(repo, rmatcher=None): | |
|
242 | '''Return a match object that applies rmatcher to the standin directory''' | |
|
243 | 243 | standindir = repo.wjoin(shortname) |
|
244 | if pats: | |
|
245 |
pats = [os.path.join(standindir, pat) for pat in |
|
|
244 | if rmatcher and rmatcher.files(): | |
|
245 | pats = [os.path.join(standindir, pat) for pat in rmatcher.files()] | |
|
246 | 246 | else: |
|
247 | 247 | # no patterns: relative to repo root |
|
248 | 248 | pats = [standindir] |
@@ -255,7 +255,7 b' def composestandinmatcher(repo, rmatcher' | |||
|
255 | 255 | '''Return a matcher that accepts standins corresponding to the |
|
256 | 256 | files accepted by rmatcher. Pass the list of files in the matcher |
|
257 | 257 | as the paths specified by the user.''' |
|
258 |
smatcher = getstandinmatcher(repo, rmatcher |
|
|
258 | smatcher = getstandinmatcher(repo, rmatcher) | |
|
259 | 259 | isstandin = smatcher.matchfn |
|
260 | 260 | def composedmatchfn(f): |
|
261 | 261 | return isstandin(f) and rmatcher.matchfn(splitstandin(f)) |
General Comments 0
You need to be logged in to leave comments.
Login now