Mercurial > hg
annotate tests/test-remote-hidden.t @ 51706:541292a02e09
rust: change minimum supported version everywhere applicable
This will help users and downstream packaging.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 23 Jul 2024 14:25:23 +0200 |
parents | 45c7bada5200 |
children | 0f26ee69cf36 |
rev | line source |
---|---|
42126
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
1 ======================================================== |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
2 Test the ability to access a hidden revision on a server |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
3 ======================================================== |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
4 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
5 #require serve |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
6 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
7 $ . $TESTDIR/testlib/obsmarker-common.sh |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
8 $ cat >> $HGRCPATH << EOF |
50447
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
9 > [ui] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
10 > ssh = "$PYTHON" "$RUNTESTDIR/dummyssh" |
42126
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
11 > [phases] |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
12 > # public changeset are not obsolete |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
13 > publish=false |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
14 > [experimental] |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
15 > evolution=all |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
16 > [ui] |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
17 > logtemplate='{rev}:{node|short} {desc} [{phase}]\n' |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
18 > EOF |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
19 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
20 Setup a simple repository with some hidden revisions |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
21 ---------------------------------------------------- |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
22 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
23 Testing the `served.hidden` view |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
24 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
25 $ hg init repo-with-hidden |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
26 $ cd repo-with-hidden |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
27 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
28 $ echo 0 > a |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
29 $ hg ci -qAm "c_Public" |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
30 $ hg phase --public |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
31 $ echo 1 > a |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
32 $ hg ci -m "c_Amend_Old" |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
33 $ echo 2 > a |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
34 $ hg ci -m "c_Amend_New" --amend |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
35 $ hg up ".^" |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
36 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
37 $ echo 3 > a |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
38 $ hg ci -m "c_Pruned" |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
39 created new head |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
40 $ hg debugobsolete --record-parents `getid 'desc("c_Pruned")'` -d '0 0' |
42893
34a46d48d24e
debugobsolete: also issue the "new obsmarkers" messsage
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42127
diff
changeset
|
41 1 new obsolescence markers |
42126
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
42 obsoleted 1 changesets |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
43 $ hg up ".^" |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
44 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
45 $ echo 4 > a |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
46 $ hg ci -m "c_Secret" --secret |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
47 created new head |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
48 $ echo 5 > a |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
49 $ hg ci -m "c_Secret_Pruned" --secret |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
50 $ hg debugobsolete --record-parents `getid 'desc("c_Secret_Pruned")'` -d '0 0' |
42893
34a46d48d24e
debugobsolete: also issue the "new obsmarkers" messsage
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42127
diff
changeset
|
51 1 new obsolescence markers |
42126
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
52 obsoleted 1 changesets |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
53 $ hg up null |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
54 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
55 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
56 $ hg log -G -T '{rev}:{node|short} {desc} [{phase}]\n' --hidden |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
57 x 5:8d28cbe335f3 c_Secret_Pruned [secret] |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
58 | |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
59 o 4:1c6afd79eb66 c_Secret [secret] |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
60 | |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
61 | x 3:5d1575e42c25 c_Pruned [draft] |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
62 |/ |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
63 | o 2:c33affeb3f6b c_Amend_New [draft] |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
64 |/ |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
65 | x 1:be215fbb8c50 c_Amend_Old [draft] |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
66 |/ |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
67 o 0:5f354f46e585 c_Public [public] |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
68 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
69 $ hg debugobsolete |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
70 be215fbb8c5090028b00154c1fe877ad1b376c61 c33affeb3f6b4e9621d1839d6175ddc07708807c 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'amend', 'user': 'test'} |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
71 5d1575e42c25b7f2db75cd4e0b881b1c35158fae 0 {5f354f46e5853535841ec7a128423e991ca4d59b} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
72 8d28cbe335f311bc89332d7bbe8a07889b6914a0 0 {1c6afd79eb6663275bbe30097e162b1c24ced0f0} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
73 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
74 $ cd .. |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
75 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
76 Test the feature |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
77 ================ |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
78 |
42127
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
79 Check cache pre-warm |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
80 -------------------- |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
81 |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
82 $ ls -1 repo-with-hidden/.hg/cache |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
83 branch2 |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
84 branch2-base |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
85 branch2-served |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
86 branch2-served.hidden |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
87 branch2-visible |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
88 rbc-names-v1 |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
89 rbc-revs-v1 |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
90 tags2 |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
91 tags2-visible |
70b71421fd33
repoview: keep the branchmap cache for the `served.hidden` view warm
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42126
diff
changeset
|
92 |
42126
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
93 Check that the `served.hidden` repoview |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
94 --------------------------------------- |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
95 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
96 $ hg -R repo-with-hidden serve -p $HGPORT -d --pid-file hg.pid --config web.view=served.hidden |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
97 $ cat hg.pid >> $DAEMON_PIDS |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
98 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
99 changesets in secret and higher phases are not visible through hgweb |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
100 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
101 $ hg -R repo-with-hidden log --template "revision: {rev}\\n" --rev "reverse(not secret())" |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
102 revision: 2 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
103 revision: 0 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
104 $ hg -R repo-with-hidden log --template "revision: {rev}\\n" --rev "reverse(not secret())" --hidden |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
105 revision: 3 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
106 revision: 2 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
107 revision: 1 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
108 revision: 0 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
109 $ get-with-headers.py localhost:$HGPORT 'log?style=raw' | grep revision: |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
110 revision: 3 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
111 revision: 2 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
112 revision: 1 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
113 revision: 0 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
114 |
ef0e3cc684b3
repoview: introduce a filter for serving hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
115 $ killdaemons.py |
50439
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
116 |
50441
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
117 Test --remote-hidden for local peer |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
118 ----------------------------------- |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
119 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
120 $ hg clone --pull repo-with-hidden client |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
121 requesting all changes |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
122 adding changesets |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
123 adding manifests |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
124 adding file changes |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
125 added 2 changesets with 2 changes to 1 files |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
126 2 new obsolescence markers |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
127 new changesets 5f354f46e585:c33affeb3f6b (1 drafts) |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
128 updating to branch default |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
129 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
130 $ hg -R client log -G --hidden -v |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
131 @ 1:c33affeb3f6b c_Amend_New [draft] |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
132 | |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
133 o 0:5f354f46e585 c_Public [public] |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
134 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
135 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
136 pulling an hidden changeset should fail: |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
137 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
138 $ hg -R client pull -r be215fbb8c50 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
139 pulling from $TESTTMP/repo-with-hidden |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
140 abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
141 [10] |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
142 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
143 pulling an hidden changeset with --remote-hidden should succeed: |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
144 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
145 $ hg -R client pull --remote-hidden --traceback -r be215fbb8c50 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
146 pulling from $TESTTMP/repo-with-hidden |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
147 searching for changes |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
148 adding changesets |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
149 adding manifests |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
150 adding file changes |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
151 added 1 changesets with 1 changes to 1 files (+1 heads) |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
152 (1 other changesets obsolete on arrival) |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
153 (run 'hg heads' to see heads) |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
154 $ hg -R client log -G --hidden -v |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
155 x 2:be215fbb8c50 c_Amend_Old [draft] |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
156 | |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
157 | @ 1:c33affeb3f6b c_Amend_New [draft] |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
158 |/ |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
159 o 0:5f354f46e585 c_Public [public] |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
160 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
161 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
162 Pulling a secret changeset is still forbidden: |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
163 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
164 secret visible: |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
165 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
166 $ hg -R client pull --remote-hidden -r 8d28cbe335f3 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
167 pulling from $TESTTMP/repo-with-hidden |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
168 abort: filtered revision '8d28cbe335f3' (not in 'served.hidden' subset) |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
169 [10] |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
170 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
171 secret hidden: |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
172 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
173 $ hg -R client pull --remote-hidden -r 1c6afd79eb66 |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
174 pulling from $TESTTMP/repo-with-hidden |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
175 abort: filtered revision '1c6afd79eb66' (not in 'served.hidden' subset) |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
176 [10] |
b15b6e2c3309
hidden: add support for --remote-hidden to localpeer
Manuel Jacob <me@manueljacob.de>
parents:
50439
diff
changeset
|
177 |
50439
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
178 Test accessing hidden changeset through hgweb |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
179 --------------------------------------------- |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
180 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
181 $ hg -R repo-with-hidden serve -p $HGPORT -d --pid-file hg.pid --config "experimental.server.allow-hidden-access=*" -E error.log --accesslog access.log |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
182 $ cat hg.pid >> $DAEMON_PIDS |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
183 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
184 Hidden changeset are hidden by default: |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
185 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
186 $ get-with-headers.py localhost:$HGPORT 'log?style=raw' | grep revision: |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
187 revision: 2 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
188 revision: 0 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
189 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
190 Hidden changeset are visible when requested: |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
191 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
192 $ get-with-headers.py localhost:$HGPORT 'log?style=raw&access-hidden=1' | grep revision: |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
193 revision: 3 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
194 revision: 2 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
195 revision: 1 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
196 revision: 0 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
197 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
198 Same check on a server that do not allow hidden access: |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
199 ``````````````````````````````````````````````````````` |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
200 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
201 $ hg -R repo-with-hidden serve -p $HGPORT1 -d --pid-file hg2.pid --config "experimental.server.allow-hidden-access=" -E error.log --accesslog access.log |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
202 $ cat hg2.pid >> $DAEMON_PIDS |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
203 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
204 Hidden changeset are hidden by default: |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
205 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
206 $ get-with-headers.py localhost:$HGPORT1 'log?style=raw' | grep revision: |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
207 revision: 2 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
208 revision: 0 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
209 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
210 Hidden changeset are still hidden despite being the hidden access request: |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
211 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
212 $ get-with-headers.py localhost:$HGPORT1 'log?style=raw&access-hidden=1' | grep revision: |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
213 revision: 2 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
214 revision: 0 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
215 |
50444
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
216 Test --remote-hidden for http peer |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
217 ---------------------------------- |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
218 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
219 $ hg clone --pull http://localhost:$HGPORT client-http |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
220 requesting all changes |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
221 adding changesets |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
222 adding manifests |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
223 adding file changes |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
224 added 2 changesets with 2 changes to 1 files |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
225 2 new obsolescence markers |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
226 new changesets 5f354f46e585:c33affeb3f6b (1 drafts) |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
227 updating to branch default |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
228 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
229 $ hg -R client-http log -G --hidden -v |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
230 @ 1:c33affeb3f6b c_Amend_New [draft] |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
231 | |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
232 o 0:5f354f46e585 c_Public [public] |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
233 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
234 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
235 pulling an hidden changeset should fail: |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
236 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
237 $ hg -R client-http pull -r be215fbb8c50 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
238 pulling from http://localhost:$HGPORT/ |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
239 abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
240 [255] |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
241 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
242 pulling an hidden changeset with --remote-hidden should succeed: |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
243 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
244 $ hg -R client-http pull --remote-hidden -r be215fbb8c50 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
245 pulling from http://localhost:$HGPORT/ |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
246 searching for changes |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
247 adding changesets |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
248 adding manifests |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
249 adding file changes |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
250 added 1 changesets with 1 changes to 1 files (+1 heads) |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
251 (1 other changesets obsolete on arrival) |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
252 (run 'hg heads' to see heads) |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
253 $ hg -R client-http log -G --hidden -v |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
254 x 2:be215fbb8c50 c_Amend_Old [draft] |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
255 | |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
256 | @ 1:c33affeb3f6b c_Amend_New [draft] |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
257 |/ |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
258 o 0:5f354f46e585 c_Public [public] |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
259 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
260 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
261 Pulling a secret changeset is still forbidden: |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
262 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
263 secret visible: |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
264 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
265 $ hg -R client-http pull --remote-hidden -r 8d28cbe335f3 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
266 pulling from http://localhost:$HGPORT/ |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
267 abort: filtered revision '8d28cbe335f3' (not in 'served.hidden' subset) |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
268 [255] |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
269 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
270 secret hidden: |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
271 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
272 $ hg -R client-http pull --remote-hidden -r 1c6afd79eb66 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
273 pulling from http://localhost:$HGPORT/ |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
274 abort: filtered revision '1c6afd79eb66' (not in 'served.hidden' subset) |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
275 [255] |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
276 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
277 Same check on a server that do not allow hidden access: |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
278 ``````````````````````````````````````````````````````` |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
279 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
280 $ hg clone --pull http://localhost:$HGPORT1 client-http2 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
281 requesting all changes |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
282 adding changesets |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
283 adding manifests |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
284 adding file changes |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
285 added 2 changesets with 2 changes to 1 files |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
286 2 new obsolescence markers |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
287 new changesets 5f354f46e585:c33affeb3f6b (1 drafts) |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
288 updating to branch default |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
289 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
290 $ hg -R client-http2 log -G --hidden -v |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
291 @ 1:c33affeb3f6b c_Amend_New [draft] |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
292 | |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
293 o 0:5f354f46e585 c_Public [public] |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
294 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
295 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
296 pulling an hidden changeset should fail: |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
297 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
298 $ hg -R client-http2 pull -r be215fbb8c50 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
299 pulling from http://localhost:$HGPORT1/ |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
300 abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
301 [255] |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
302 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
303 pulling an hidden changeset with --remote-hidden should fail too: |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
304 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
305 $ hg -R client-http2 pull --remote-hidden -r be215fbb8c50 |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
306 pulling from http://localhost:$HGPORT1/ |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
307 abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
308 [255] |
315f537627c1
hidden: add support for --remote-hidden to HTTP peer
Manuel Jacob <me@manueljacob.de>
parents:
50441
diff
changeset
|
309 |
50447
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
310 Test --remote-hidden for ssh peer |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
311 ---------------------------------- |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
312 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
313 $ hg clone --pull ssh://user@dummy/repo-with-hidden client-ssh |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
314 requesting all changes |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
315 adding changesets |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
316 adding manifests |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
317 adding file changes |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
318 added 2 changesets with 2 changes to 1 files |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
319 2 new obsolescence markers |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
320 new changesets 5f354f46e585:c33affeb3f6b (1 drafts) |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
321 updating to branch default |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
322 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
323 $ hg -R client-ssh log -G --hidden -v |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
324 @ 1:c33affeb3f6b c_Amend_New [draft] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
325 | |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
326 o 0:5f354f46e585 c_Public [public] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
327 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
328 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
329 Check on a server that do not allow hidden access: |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
330 `````````````````````````````````````````````````` |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
331 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
332 pulling an hidden changeset should fail: |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
333 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
334 $ hg -R client-ssh pull -r be215fbb8c50 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
335 pulling from ssh://user@dummy/repo-with-hidden |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
336 abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
337 [255] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
338 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
339 pulling an hidden changeset with --remote-hidden should succeed: |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
340 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
341 $ hg -R client-ssh pull --remote-hidden -r be215fbb8c50 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
342 pulling from ssh://user@dummy/repo-with-hidden |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
343 remote: ignoring request to access hidden changeset by unauthorized user: * (glob) |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
344 abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
345 [255] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
346 $ hg -R client-ssh log -G --hidden -v |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
347 @ 1:c33affeb3f6b c_Amend_New [draft] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
348 | |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
349 o 0:5f354f46e585 c_Public [public] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
350 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
351 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
352 Check on a server that do allow hidden access: |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
353 `````````````````````````````````````````````` |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
354 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
355 $ cat << EOF >> repo-with-hidden/.hg/hgrc |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
356 > [experimental] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
357 > server.allow-hidden-access=* |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
358 > EOF |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
359 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
360 pulling an hidden changeset should fail: |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
361 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
362 $ hg -R client-ssh pull -r be215fbb8c50 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
363 pulling from ssh://user@dummy/repo-with-hidden |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
364 abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
365 [255] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
366 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
367 pulling an hidden changeset with --remote-hidden should succeed: |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
368 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
369 $ hg -R client-ssh pull --remote-hidden -r be215fbb8c50 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
370 pulling from ssh://user@dummy/repo-with-hidden |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
371 searching for changes |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
372 adding changesets |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
373 adding manifests |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
374 adding file changes |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
375 added 1 changesets with 1 changes to 1 files (+1 heads) |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
376 (1 other changesets obsolete on arrival) |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
377 (run 'hg heads' to see heads) |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
378 $ hg -R client-ssh log -G --hidden -v |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
379 x 2:be215fbb8c50 c_Amend_Old [draft] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
380 | |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
381 | @ 1:c33affeb3f6b c_Amend_New [draft] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
382 |/ |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
383 o 0:5f354f46e585 c_Public [public] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
384 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
385 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
386 Pulling a secret changeset is still forbidden: |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
387 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
388 secret visible: |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
389 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
390 $ hg -R client-ssh pull --remote-hidden -r 8d28cbe335f3 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
391 pulling from ssh://user@dummy/repo-with-hidden |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
392 abort: filtered revision '8d28cbe335f3' (not in 'served.hidden' subset) |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
393 [255] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
394 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
395 secret hidden: |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
396 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
397 $ hg -R client-ssh pull --remote-hidden -r 1c6afd79eb66 |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
398 pulling from ssh://user@dummy/repo-with-hidden |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
399 abort: filtered revision '1c6afd79eb66' (not in 'served.hidden' subset) |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
400 [255] |
45c7bada5200
hidden: add support to explicitly access hidden changesets with SSH peers
Manuel Jacob <me@manueljacob.de>
parents:
50444
diff
changeset
|
401 |
50439
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
402 ============= |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
403 Final cleanup |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
404 ============= |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
405 |
4077d6222cf1
hgweb: add support to explicitly access hidden changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42893
diff
changeset
|
406 $ killdaemons.py |