tests/test-convert-filemap.t
changeset 41180 69804c040a04
parent 41179 77088fa862df
child 42621 99ebde4fec99
equal deleted inserted replaced
41179:77088fa862df 41180:69804c040a04
   433   $ glog -R branchpruning-hg2
   433   $ glog -R branchpruning-hg2
   434   _  1 "closedefault" files:
   434   _  1 "closedefault" files:
   435   |
   435   |
   436   o  0 "addb" files: b
   436   o  0 "addb" files: b
   437   
   437   
       
   438 Include directives dropped empty commits, but other directives don't
       
   439 
       
   440   $ cat > branchpruning/exclude_filemap <<EOF
       
   441   > exclude a
       
   442   > EOF
       
   443   $ hg convert --filemap branchpruning/exclude_filemap branchpruning branchpruning-hg-exclude
       
   444   initializing destination branchpruning-hg-exclude repository
       
   445   scanning source...
       
   446   sorting...
       
   447   converting...
       
   448   5 adda
       
   449   4 closefoo
       
   450   3 emptybranch
       
   451   2 closeempty
       
   452   1 addb
       
   453   0 closedefault
       
   454 
       
   455   $ glog -R branchpruning-hg-exclude
       
   456   _  3 "closedefault" files:
       
   457   |
       
   458   o  2 "addb" files: b
       
   459   
       
   460   _  1 "closeempty" files:
       
   461   |
       
   462   o  0 "emptybranch" files:
       
   463   
   438 
   464 
   439 Test rebuilding of map with unknown revisions in shamap - it used to crash
   465 Test rebuilding of map with unknown revisions in shamap - it used to crash
   440 
   466 
   441   $ cd branchpruning
   467   $ cd branchpruning
   442   $ hg up -r 2
   468   $ hg up -r 2