##// END OF EJS Templates
cat: disable optimization of single file case for workingctx...
Yuya Nishihara -
r24720:c560d8c6 default
parent child Browse files
Show More
@@ -2403,7 +2403,7 b' def cat(ui, repo, ctx, matcher, prefix, '
2403 file = matcher.files()[0]
2403 file = matcher.files()[0]
2404 mf = repo.manifest
2404 mf = repo.manifest
2405 mfnode = ctx.manifestnode()
2405 mfnode = ctx.manifestnode()
2406 if mf.find(mfnode, file)[0]:
2406 if mfnode and mf.find(mfnode, file)[0]:
2407 write(file)
2407 write(file)
2408 return 0
2408 return 0
2409
2409
@@ -63,3 +63,8 b' Test fileset'
63 tmp/h_45116003780e
63 tmp/h_45116003780e
64 tmp/r_2
64 tmp/r_2
65
65
66 Test working directory
67
68 $ echo b-wdir > b
69 $ hg cat -r 'wdir()' b
70 b-wdir
General Comments 0
You need to be logged in to leave comments. Login now