Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-push-warn @ 816:8674b7803714
Warn on pushing unsynced repo or adding new heads
By popular demand
author | mpm@selenic.com |
---|---|
date | Mon, 01 Aug 2005 23:17:22 -0800 |
parents | |
children | 0fc4b1ab57e3 9c918287d10b |
comparison
equal
deleted
inserted
replaced
815:5a55e3011772 | 816:8674b7803714 |
---|---|
1 #!/bin/sh | |
2 | |
3 mkdir a | |
4 cd a | |
5 hg init | |
6 echo foo > t1 | |
7 hg add t1 | |
8 hg commit -m "1" -d "0 0" | |
9 | |
10 cd .. | |
11 hg clone a b | |
12 | |
13 cd a | |
14 echo foo > t2 | |
15 hg add t2 | |
16 hg commit -m "2" -d "0 0" | |
17 | |
18 cd ../b | |
19 echo foo > t3 | |
20 hg add t3 | |
21 hg commit -m "3" -d "0 0" | |
22 | |
23 hg push ../a | |
24 hg pull ../a | |
25 hg push ../a | |
26 hg up -m | |
27 hg commit -m "4" -d "0 0" | |
28 hg push ../a |