# HG changeset patch # User FUJIWARA Katsunori # Date 1404726346 -32400 # Node ID 6f332778f904fa2a2c3ad14be69346ac1bf47318 # Parent e6754f5e4cf79245ca16303e639491a04e3d0430 largefiles: add tests for summary/outgoing improved in subsequent patches This patch adds tests for summary/outgoing improved in subsequent patches, to reduce amount of diffs in each patches. This patch adds new revisions below: - revision #2 adds new largefiles, but they contain as same data as one already existing this causes that multiple standins refer the same data entity - revision #3, #4 and #5 change the already existing largefile this causes that multiple data entities are outgoing for the standin. #5 can be used to check de-duplication of "(hash, filename)" pair. diff -r e6754f5e4cf7 -r 6f332778f904 tests/test-largefiles-misc.t --- a/tests/test-largefiles-misc.t Sat Jul 12 17:59:03 2014 -0700 +++ b/tests/test-largefiles-misc.t Mon Jul 07 18:45:46 2014 +0900 @@ -490,6 +490,64 @@ b + $ cp clone2/b clone2/b1 + $ cp clone2/b clone2/b2 + $ hg -R clone2 add --large clone2/b1 clone2/b2 + $ hg -R clone2 commit -m '#2: add largefiles referring same entity' + Invoking status precommit hook + A b1 + A b2 + $ hg -R clone2 summary --large + parent: 2:6095d0695d70 tip + #2: add largefiles referring same entity + branch: default + commit: (clean) + update: (current) + largefiles: 3 to upload + $ hg -R clone2 outgoing --large -T "{rev}:{node|short}\n" + comparing with $TESTTMP/issue3651/src (glob) + searching for changes + 1:1acbe71ce432 + 2:6095d0695d70 + largefiles to upload: + b + b1 + b2 + + + $ echo bbb > clone2/b + $ hg -R clone2 commit -m '#3: add new largefile entity as existing file' + Invoking status precommit hook + M b + $ echo bbbb > clone2/b + $ hg -R clone2 commit -m '#4: add new largefile entity as existing file' + Invoking status precommit hook + M b + $ cp clone2/b1 clone2/b + $ hg -R clone2 commit -m '#5: refer existing largefile entity again' + Invoking status precommit hook + M b + $ hg -R clone2 summary --large + parent: 5:036794ea641c tip + #5: refer existing largefile entity again + branch: default + commit: (clean) + update: (current) + largefiles: 3 to upload + $ hg -R clone2 outgoing --large -T "{rev}:{node|short}\n" + comparing with $TESTTMP/issue3651/src (glob) + searching for changes + 1:1acbe71ce432 + 2:6095d0695d70 + 3:7983dce246cc + 4:233f12ada4ae + 5:036794ea641c + largefiles to upload: + b + b1 + b2 + + $ cd .. merge action 'd' for 'local renamed directory to d2/g' which has no filename