tests/test-phases.t
changeset 49451 0c70d888a484
parent 49315 2f326ea19fbc
child 49452 74fb1842f8b9
equal deleted inserted replaced
49450:b57c95a0f5f9 49451:0c70d888a484
   949 Test for archived phase
   949 Test for archived phase
   950 -----------------------
   950 -----------------------
   951 
   951 
   952 Commit an archived changesets
   952 Commit an archived changesets
   953 
   953 
       
   954   $ cd ..
       
   955   $ hg clone --quiet --pull internal-phase archived-phase \
       
   956   > --config format.exp-archived-phase=yes \
       
   957   > --config extensions.phasereport='!' \
       
   958   > --config hooks.txnclose-phase.test=
       
   959 
       
   960   $ cd archived-phase
       
   961 
   954   $ echo B > B
   962   $ echo B > B
   955   $ hg add B
   963   $ hg add B
   956   $ hg status
   964   $ hg status
   957   A B
   965   A B
   958   $ hg --config "phases.new-commit=archived" commit -m "my test archived commit"
   966   $ hg --config "phases.new-commit=archived" commit -m "my test archived commit"
   959   test-debug-phase: new rev 2:  x -> 32
   967   test-debug-phase: new rev 1:  x -> 32
   960   test-hook-close-phase: 8df5997c3361518f733d1ae67cd3adb9b0eaf125:   -> archived
   968   test-hook-close-phase: 8df5997c3361518f733d1ae67cd3adb9b0eaf125:   -> archived
   961 
   969 
   962 The changeset is a working parent descendant.
   970 The changeset is a working parent descendant.
   963 Per the usual visibility rules, it is made visible.
   971 Per the usual visibility rules, it is made visible.
   964 
   972 
   965   $ hg log -G -l 3
   973   $ hg log -G -l 3
   966   @  changeset:   2:8df5997c3361
   974   @  changeset:   1:8df5997c3361
   967   |  tag:         tip
   975   |  tag:         tip
   968   |  parent:      0:4a2df7238c3b
       
   969   |  user:        test
   976   |  user:        test
   970   |  date:        Thu Jan 01 00:00:00 1970 +0000
   977   |  date:        Thu Jan 01 00:00:00 1970 +0000
   971   |  summary:     my test archived commit
   978   |  summary:     my test archived commit
   972   |
   979   |
   973   o  changeset:   0:4a2df7238c3b
   980   o  changeset:   0:4a2df7238c3b