comparison tests/test-glog.t @ 35646:a177c6aa055a

log: rewrite --follow-first -rREV like --follow for consistency (BC) This helps fixing the "--follow -rREV PATH" issue. .. bc:: ``log --follow-first -rREV``, which is deprecated, now follows the first parent of merge revisions from the specified ``REV`` just like ``log --follow -rREV``.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 10 Dec 2017 18:25:33 +0900
parents 7a0a90d63a8c
children ea3320015d54
comparison
equal deleted inserted replaced
35645:b6b7855c79aa 35646:a177c6aa055a
2302 <generatorsetdesc-> 2302 <generatorsetdesc->
2303 2303
2304 Test --follow-first and forward --rev 2304 Test --follow-first and forward --rev
2305 2305
2306 $ testlog --follow-first -r6 -r8 -r5 -r7 -r4 2306 $ testlog --follow-first -r6 -r8 -r5 -r7 -r4
2307 ['6', '8', '5', '7', '4'] 2307 ['reverse(_firstancestors((((6) or (8)) or ((5) or ((7) or (4))))))']
2308 (func 2308 []
2309 (symbol '_firstdescendants') 2309 <generatorsetdesc->
2310 (func
2311 (symbol 'rev')
2312 (symbol '6')))
2313 <filteredset
2314 <baseset- [4, 5, 6, 7, 8]>,
2315 <generatorsetasc+>>
2316 --- log.nodes * (glob)
2317 +++ glog.nodes * (glob)
2318 @@ -1,3 +1,3 @@
2319 -nodetag 6
2320 nodetag 8
2321 nodetag 7
2322 +nodetag 6
2323 2310
2324 Test --follow and backward --rev 2311 Test --follow and backward --rev
2325 2312
2326 $ testlog --follow -r6 -r5 -r7 -r8 -r4 2313 $ testlog --follow -r6 -r5 -r7 -r8 -r4
2327 ['reverse(::(((6) or (5)) or ((7) or ((8) or (4)))))'] 2314 ['reverse(::(((6) or (5)) or ((7) or ((8) or (4)))))']
2329 <generatorsetdesc-> 2316 <generatorsetdesc->
2330 2317
2331 Test --follow-first and backward --rev 2318 Test --follow-first and backward --rev
2332 2319
2333 $ testlog --follow-first -r6 -r5 -r7 -r8 -r4 2320 $ testlog --follow-first -r6 -r5 -r7 -r8 -r4
2334 ['6', '5', '7', '8', '4'] 2321 ['reverse(_firstancestors((((6) or (5)) or ((7) or ((8) or (4))))))']
2335 (func 2322 []
2336 (symbol '_firstancestors') 2323 <generatorsetdesc->
2337 (func
2338 (symbol 'rev')
2339 (symbol '6')))
2340 <filteredset
2341 <baseset- [4, 5, 6, 7, 8]>,
2342 <generatorsetdesc+>>
2343 2324
2344 Test --follow with --rev of graphlog extension 2325 Test --follow with --rev of graphlog extension
2345 2326
2346 $ hg --config extensions.graphlog= glog -qfr1 2327 $ hg --config extensions.graphlog= glog -qfr1
2347 o 1:216d4c92cf98 2328 o 1:216d4c92cf98