mercurial/cmdutil.py
changeset 36140 3a90159c2c2e
parent 36137 f52a9336ac5f
child 36141 62719115875d
equal deleted inserted replaced
36139:b72c6ff4e4c0 36140:3a90159c2c2e
  2185         file = matcher.files()[0]
  2185         file = matcher.files()[0]
  2186         mfl = repo.manifestlog
  2186         mfl = repo.manifestlog
  2187         mfnode = ctx.manifestnode()
  2187         mfnode = ctx.manifestnode()
  2188         try:
  2188         try:
  2189             if mfnode and mfl[mfnode].find(file)[0]:
  2189             if mfnode and mfl[mfnode].find(file)[0]:
  2190                 _prefetchfiles(repo, ctx, [file])
  2190                 scmutil.fileprefetchhooks(repo, ctx, [file])
  2191                 write(file)
  2191                 write(file)
  2192                 return 0
  2192                 return 0
  2193         except KeyError:
  2193         except KeyError:
  2194             pass
  2194             pass
  2195 
  2195 
  2196     files = [f for f in ctx.walk(matcher)]
  2196     files = [f for f in ctx.walk(matcher)]
  2197     _prefetchfiles(repo, ctx, files)
  2197     scmutil.fileprefetchhooks(repo, ctx, files)
  2198 
  2198 
  2199     for abs in files:
  2199     for abs in files:
  2200         write(abs)
  2200         write(abs)
  2201         err = 0
  2201         err = 0
  2202 
  2202