tests/test-phases-exchange.t
branchstable
changeset 19097 3f5e75c22585
parent 17565 f62ed3d90377
child 19116 dfb514836b78
equal deleted inserted replaced
19096:0e4af72cbd7f 19097:3f5e75c22585
  1060   |/
  1060   |/
  1061   o  1 public a-B - 548a3d25dbf0
  1061   o  1 public a-B - 548a3d25dbf0
  1062   |
  1062   |
  1063   o  0 public a-A - 054250a37db4
  1063   o  0 public a-A - 054250a37db4
  1064   
  1064   
       
  1065 
       
  1066 Pushing From an unlockable repo
       
  1067 --------------------------------
       
  1068 (issue3684)
       
  1069 
       
  1070 Unability to lock the source repo should not prevent the push. It will prevent
       
  1071 the retrieval of remote phase during push. For example, pushing to a publishing
       
  1072 server won't turn changeset public.
       
  1073 
       
  1074 1. Test that push is not prevented
       
  1075 
       
  1076   $ hg init Phi
       
  1077   $ cd Upsilon
       
  1078   $ chmod -R -w .hg
       
  1079   $ hg push ../Phi
       
  1080   pushing to ../Phi
       
  1081   searching for changes
       
  1082   adding changesets
       
  1083   adding manifests
       
  1084   adding file changes
       
  1085   added 14 changesets with 14 changes to 14 files (+3 heads)
       
  1086   $ chmod -R +w .hg
       
  1087 
       
  1088 2. Test that failed phases movement are reported
       
  1089 
       
  1090   $ hg phase --force --draft 3
       
  1091   $ chmod -R -w .hg
       
  1092   $ hg push ../Phi
       
  1093   pushing to ../Phi
       
  1094   searching for changes
       
  1095   no changes found
       
  1096   cannot lock source repo, skipping local public phase update
       
  1097   [1]
       
  1098   $ chmod -R +w .hg
       
  1099   $ hgph Upsilon
       
  1100 
       
  1101   $ cd ..
       
  1102 
  1065   $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
  1103   $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
  1066 
  1104