equal
deleted
inserted
replaced
2400 # Automation often uses hg cat on single files, so special case it |
2400 # Automation often uses hg cat on single files, so special case it |
2401 # for performance to avoid the cost of parsing the manifest. |
2401 # for performance to avoid the cost of parsing the manifest. |
2402 if len(matcher.files()) == 1 and not matcher.anypats(): |
2402 if len(matcher.files()) == 1 and not matcher.anypats(): |
2403 file = matcher.files()[0] |
2403 file = matcher.files()[0] |
2404 mf = repo.manifest |
2404 mf = repo.manifest |
2405 mfnode = ctx._changeset[0] |
2405 mfnode = ctx.manifestnode() |
2406 if mf.find(mfnode, file)[0]: |
2406 if mf.find(mfnode, file)[0]: |
2407 write(file) |
2407 write(file) |
2408 return 0 |
2408 return 0 |
2409 |
2409 |
2410 # Don't warn about "missing" files that are really in subrepos |
2410 # Don't warn about "missing" files that are really in subrepos |