tests/test-copies-chain-merge.t
changeset 45735 edf4fa06df94
parent 45733 ee3fd9021fac
child 45765 ed84a4d48910
equal deleted inserted replaced
45734:53c265a6fc83 45735:edf4fa06df94
     1 #testcases filelog compatibility changeset sidedata
     1 #testcases filelog compatibility changeset sidedata upgraded
     2 
     2 
     3 =====================================================
     3 =====================================================
     4 Test Copy tracing for chain of copies involving merge
     4 Test Copy tracing for chain of copies involving merge
     5 =====================================================
     5 =====================================================
     6 
     6 
   592 We upgrade a repository that is not using sidedata (the filelog case) and
   592 We upgrade a repository that is not using sidedata (the filelog case) and
   593  check that the same side data have been generated as if they were computed at
   593  check that the same side data have been generated as if they were computed at
   594  commit time.
   594  commit time.
   595 
   595 
   596 
   596 
   597 #if filelog
   597 #if upgraded
   598   $ cat >> $HGRCPATH << EOF
   598   $ cat >> $HGRCPATH << EOF
   599   > [format]
   599   > [format]
   600   > exp-use-side-data = yes
   600   > exp-use-side-data = yes
   601   > exp-use-copies-side-data-changeset = yes
   601   > exp-use-copies-side-data-changeset = yes
   602   > EOF
   602   > EOF
   620      added: exp-copies-sidedata-changeset, exp-sidedata-flag
   620      added: exp-copies-sidedata-changeset, exp-sidedata-flag
   621   
   621   
   622 #endif
   622 #endif
   623 
   623 
   624 
   624 
   625 #if no-compatibility no-changeset
   625 #if no-compatibility no-filelog no-changeset
   626 
   626 
   627   $ for rev in `hg log --rev 'all()' -T '{rev}\n'`; do
   627   $ for rev in `hg log --rev 'all()' -T '{rev}\n'`; do
   628   >     echo "##### revision $rev #####"
   628   >     echo "##### revision $rev #####"
   629   >     hg debugsidedata -c -v -- $rev
   629   >     hg debugsidedata -c -v -- $rev
   630   >     hg debugchangedfiles $rev
   630   >     hg debugchangedfiles $rev
   802     '\x00\x00\x00\x01\x10\x00\x00\x00\x01\x00\x00\x00\x00d'
   802     '\x00\x00\x00\x01\x10\x00\x00\x00\x01\x00\x00\x00\x00d'
   803   salvaged   : d, ;
   803   salvaged   : d, ;
   804 
   804 
   805 #endif
   805 #endif
   806 
   806 
   807 Downgrade to keep testing the filelog algorithm
       
   808 (This can be removed once we have an explicite "upgrade" tests case_
       
   809 
       
   810 #if filelog
       
   811   $ cat >> $HGRCPATH << EOF
       
   812   > [format]
       
   813   > exp-use-side-data = no
       
   814   > exp-use-copies-side-data-changeset = no
       
   815   > EOF
       
   816   $ hg debugformat -v
       
   817   format-variant     repo config default
       
   818   fncache:            yes    yes     yes
       
   819   dotencode:          yes    yes     yes
       
   820   generaldelta:       yes    yes     yes
       
   821   sparserevlog:       yes    yes     yes
       
   822   sidedata:           yes     no      no
       
   823   persistent-nodemap:  no     no      no
       
   824   copies-sdc:         yes     no      no
       
   825   plain-cl-delta:     yes    yes     yes
       
   826   compression:        * (glob)
       
   827   compression-level:  default default default
       
   828   $ hg debugupgraderepo --run --quiet
       
   829   upgrade will perform the following actions:
       
   830   
       
   831   requirements
       
   832      preserved: * (glob)
       
   833      removed: exp-copies-sidedata-changeset, exp-sidedata-flag
       
   834   
       
   835 #endif
       
   836 
   807 
   837 Test copy information chaining
   808 Test copy information chaining
   838 ==============================
   809 ==============================
   839 
   810 
   840 merging with unrelated change does not interfere with the renames
   811 merging with unrelated change does not interfere with the renames