tests/test-obsconvert.t
changeset 1159 04bd66779a1f
child 1170 4697f23e0ede
equal deleted inserted replaced
1158:0f6c97421cd9 1159:04bd66779a1f
       
     1   $ cat >> $HGRCPATH <<EOF
       
     2   > [extensions]
       
     3   > rebase=
       
     4   > EOF
       
     5   $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> $HGRCPATH
       
     6   $ hg init alpha
       
     7   $ cd alpha
       
     8   $ echo foo > foo
       
     9   $ hg addremove
       
    10   adding foo
       
    11   $ hg ci -m 'foo'
       
    12   $ for x in 1 2 3 4 ; do
       
    13   >   echo foo $x > foo
       
    14   >   hg amend
       
    15   > done
       
    16 
       
    17 Test conversion between obsolete marker formats
       
    18   $ hg debugobsconvert --new-format 0
       
    19   Old store is version 1, will rewrite in verion 0
       
    20   Done!
       
    21   $ hg debugobsconvert --new-format 0
       
    22   abort: New format is the same as the old format, not upgrading!
       
    23   [255]
       
    24   $ hg debugobsconvert --new-format 1
       
    25   Old store is version 0, will rewrite in verion 1
       
    26   Done!
       
    27 
       
    28 Test that the default is some reasonably modern format (first downgrade)
       
    29   $ hg debugobsconvert --new-format 0
       
    30   Old store is version 1, will rewrite in verion 0
       
    31   Done!
       
    32   $ hg debugobsconvert
       
    33   Old store is version 0, will rewrite in verion * (glob)
       
    34   Done!