|
1 |
|
2 $ cat >> $HGRCPATH <<EOF |
|
3 > [defaults] |
|
4 > amend=-d "0 0" |
|
5 > [ui] |
|
6 > ssh=python "$TESTDIR/dummyssh" |
|
7 > [phases] |
|
8 > publish = False |
|
9 > [extensions] |
|
10 > EOF |
|
11 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> $HGRCPATH |
|
12 |
|
13 $ mkcommit() { |
|
14 > echo "$1" > "$1" |
|
15 > hg add "$1" |
|
16 > hg ci -m "add $1" |
|
17 > } |
|
18 |
|
19 setup repo |
|
20 |
|
21 $ hg init server |
|
22 |
|
23 $ hg clone ssh://user@dummy/server client |
|
24 no changes found |
|
25 updating to branch default |
|
26 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
27 $ cp -r client other |
|
28 |
|
29 Smoke testing |
|
30 =============== |
|
31 |
|
32 $ cd client |
|
33 $ mkcommit 0 |
|
34 $ mkcommit a |
|
35 $ hg push |
|
36 pushing to ssh://user@dummy/server |
|
37 searching for changes |
|
38 remote: adding changesets |
|
39 remote: adding manifests |
|
40 remote: adding file changes |
|
41 remote: added 2 changesets with 2 changes to 2 files |
|
42 $ hg pull |
|
43 pulling from ssh://user@dummy/server |
|
44 searching for changes |
|
45 no changes found |
|
46 $ hg pull -R ../other |
|
47 pulling from ssh://user@dummy/server |
|
48 requesting all changes |
|
49 adding changesets |
|
50 adding manifests |
|
51 adding file changes |
|
52 added 2 changesets with 2 changes to 2 files |
|
53 pull obsolescence markers |
|
54 (run 'hg update' to get a working copy) |
|
55 $ hg push -R ../other |
|
56 pushing to ssh://user@dummy/server |
|
57 searching for changes |
|
58 no changes found |
|
59 [1] |
|
60 |
|
61 Push |
|
62 ============= |
|
63 |
|
64 $ echo 'A' > a |
|
65 $ hg amend |
|
66 $ hg push |
|
67 pushing to ssh://user@dummy/server |
|
68 searching for changes |
|
69 remote: adding changesets |
|
70 remote: adding manifests |
|
71 remote: adding file changes |
|
72 remote: added 1 changesets with 1 changes to 1 files (+1 heads) |
|
73 pushing 2 obsolescence markers (* bytes) (glob) |
|
74 remote: 2 obsolescence markers added |
|
75 $ hg push |
|
76 pushing to ssh://user@dummy/server |
|
77 searching for changes |
|
78 no changes found |
|
79 [1] |
|
80 |
|
81 Pull |
|
82 ============= |
|
83 |
|
84 $ hg -R ../other pull |
|
85 pulling from ssh://user@dummy/server |
|
86 searching for changes |
|
87 adding changesets |
|
88 adding manifests |
|
89 adding file changes |
|
90 added 1 changesets with 1 changes to [12] files \(\+1 heads\) (re) |
|
91 pull obsolescence markers |
|
92 2 obsolescence markers added |
|
93 (run 'hg heads' to see heads) |
|
94 $ hg -R ../other pull |
|
95 pulling from ssh://user@dummy/server |
|
96 searching for changes |
|
97 no changes found |
|
98 |
|
99 $ cd .. |
|
100 |