equal
deleted
inserted
replaced
1355 _reportnewcssource = [ |
1355 _reportnewcssource = [ |
1356 'pull', |
1356 'pull', |
1357 'unbundle', |
1357 'unbundle', |
1358 ] |
1358 ] |
1359 |
1359 |
1360 # a list of (repo, ctx, files) functions called by various commands to allow |
1360 def prefetchfiles(repo, revs, match): |
1361 # extensions to ensure the corresponding files are available locally, before the |
1361 """Invokes the registered file prefetch functions, allowing extensions to |
1362 # command uses them. |
1362 ensure the corresponding files are available locally, before the command |
|
1363 uses them.""" |
|
1364 if match: |
|
1365 # The command itself will complain about files that don't exist, so |
|
1366 # don't duplicate the message. |
|
1367 match = matchmod.badmatch(match, lambda fn, msg: None) |
|
1368 else: |
|
1369 match = matchall(repo) |
|
1370 |
|
1371 fileprefetchhooks(repo, revs, match) |
|
1372 |
|
1373 # a list of (repo, revs, match) prefetch functions |
1363 fileprefetchhooks = util.hooks() |
1374 fileprefetchhooks = util.hooks() |
1364 |
1375 |
1365 # A marker that tells the evolve extension to suppress its own reporting |
1376 # A marker that tells the evolve extension to suppress its own reporting |
1366 _reportstroubledchangesets = True |
1377 _reportstroubledchangesets = True |
1367 |
1378 |