equal
deleted
inserted
replaced
2261 "tags": [], |
2261 "tags": [], |
2262 "user": "test" |
2262 "user": "test" |
2263 } |
2263 } |
2264 ] |
2264 ] |
2265 |
2265 |
|
2266 follow files from wdir |
|
2267 |
|
2268 $ hg cp d1/f1 f1-copy |
|
2269 $ hg stat --all |
|
2270 M d1/f1 |
|
2271 A d1/f2 |
|
2272 A f1-copy |
|
2273 d1/f1 |
|
2274 R .d6/f1 |
|
2275 C D2/f1 |
|
2276 C D3.i/f1 |
|
2277 C d4.hg/f1 |
|
2278 C d5.d/f1 |
|
2279 |
|
2280 $ hg log -T '== {rev} ==\n' -fr'wdir()' --git --stat d5.d/f1 |
|
2281 == 2147483647 == |
|
2282 |
|
2283 == 0 == |
|
2284 d5.d/f1 | 1 + |
|
2285 1 files changed, 1 insertions(+), 0 deletions(-) |
|
2286 |
|
2287 |
|
2288 $ hg log -T '== {rev} ==\n' -fr'wdir()' --git --stat d1/f1 |
|
2289 == 2147483647 == |
|
2290 d1/f1 | 1 + |
|
2291 1 files changed, 1 insertions(+), 0 deletions(-) |
|
2292 |
|
2293 == 0 == |
|
2294 d1/f1 | 1 + |
|
2295 1 files changed, 1 insertions(+), 0 deletions(-) |
|
2296 |
|
2297 |
|
2298 BROKEN: added file should exist in wdir |
|
2299 $ hg log -T '== {rev} ==\n' -fr'wdir()' --git --stat d1/f2 |
|
2300 abort: cannot follow nonexistent file: "d1/f2" |
|
2301 [255] |
|
2302 |
|
2303 BROKEN: copied file should exist in wdir |
|
2304 $ hg log -T '== {rev} ==\n' -fr'wdir()' --git --stat f1-copy |
|
2305 abort: cannot follow nonexistent file: "f1-copy" |
|
2306 [255] |
|
2307 |
|
2308 $ hg log -T '== {rev} ==\n' -fr'wdir()' --git --stat notfound |
|
2309 notfound: $ENOENT$ |
|
2310 |
2266 $ hg revert -aqC |
2311 $ hg revert -aqC |
2267 |
2312 |
2268 Check that adding an arbitrary name shows up in log automatically |
2313 Check that adding an arbitrary name shows up in log automatically |
2269 |
2314 |
2270 $ cat > ../names.py <<EOF |
2315 $ cat > ../names.py <<EOF |