Show More
@@ -38,6 +38,12 b' preserving existing git patches upon qre' | |||||
38 | 'no', mq will override the [diff] section and always generate git or |
|
38 | 'no', mq will override the [diff] section and always generate git or | |
39 | regular patches, possibly losing data in the second case. |
|
39 | regular patches, possibly losing data in the second case. | |
40 |
|
40 | |||
|
41 | It may be desirable for mq changesets in the secret phase (see | |||
|
42 | :hg:`help phases`), which can be enabled with the following setting:: | |||
|
43 | ||||
|
44 | [mq] | |||
|
45 | secret = True | |||
|
46 | ||||
41 | You will by default be managing a patch queue named "patches". You can |
|
47 | You will by default be managing a patch queue named "patches". You can | |
42 | create other, independent patch queues with the :hg:`qqueue` command. |
|
48 | create other, independent patch queues with the :hg:`qqueue` command. | |
43 | ''' |
|
49 | ''' | |
@@ -256,6 +262,9 b' def secretcommit(repo, *args, **kwargs):' | |||||
256 |
|
262 | |||
257 | It should be used instead of repo.commit inside the mq source |
|
263 | It should be used instead of repo.commit inside the mq source | |
258 | """ |
|
264 | """ | |
|
265 | if not repo.ui.configbool('mq', 'secret', False): | |||
|
266 | return repo.commit(*args, **kwargs) | |||
|
267 | ||||
259 | backup = repo.ui.backupconfig('phases', 'new-commit') |
|
268 | backup = repo.ui.backupconfig('phases', 'new-commit') | |
260 | try: |
|
269 | try: | |
261 | # ensure we create a secret changeset |
|
270 | # ensure we create a secret changeset |
@@ -43,7 +43,7 b' test with recursive collection' | |||||
43 | adding changesets |
|
43 | adding changesets | |
44 | adding manifests |
|
44 | adding manifests | |
45 | adding file changes |
|
45 | adding file changes | |
46 |
added |
|
46 | added 2 changesets with 2 changes to 2 files | |
47 | requesting all changes |
|
47 | requesting all changes | |
48 | adding changesets |
|
48 | adding changesets | |
49 | adding manifests |
|
49 | adding manifests | |
@@ -82,7 +82,7 b' test with normal collection' | |||||
82 | adding changesets |
|
82 | adding changesets | |
83 | adding manifests |
|
83 | adding manifests | |
84 | adding file changes |
|
84 | adding file changes | |
85 |
added |
|
85 | added 2 changesets with 2 changes to 2 files | |
86 | requesting all changes |
|
86 | requesting all changes | |
87 | adding changesets |
|
87 | adding changesets | |
88 | adding manifests |
|
88 | adding manifests | |
@@ -121,7 +121,7 b' test with old-style collection' | |||||
121 | adding changesets |
|
121 | adding changesets | |
122 | adding manifests |
|
122 | adding manifests | |
123 | adding file changes |
|
123 | adding file changes | |
124 |
added |
|
124 | added 2 changesets with 2 changes to 2 files | |
125 | requesting all changes |
|
125 | requesting all changes | |
126 | adding changesets |
|
126 | adding changesets | |
127 | adding manifests |
|
127 | adding manifests |
@@ -144,17 +144,6 b' Testing applied patches, push and --forc' | |||||
144 |
|
144 | |||
145 | Pushing applied patch with --rev without --force |
|
145 | Pushing applied patch with --rev without --force | |
146 |
|
146 | |||
147 | All secret |
|
|||
148 |
|
||||
149 | $ hg push -r . ../forcepush2 |
|
|||
150 | pushing to ../forcepush2 |
|
|||
151 | searching for changes |
|
|||
152 | no changes found (ignored 1 secret changesets) |
|
|||
153 |
|
||||
154 | some draft |
|
|||
155 |
|
||||
156 | $ hg phase --draft 'mq()' |
|
|||
157 |
|
||||
158 | $ hg push -r . ../forcepush2 |
|
147 | $ hg push -r . ../forcepush2 | |
159 | pushing to ../forcepush2 |
|
148 | pushing to ../forcepush2 | |
160 | abort: source has mq patches applied |
|
149 | abort: source has mq patches applied |
@@ -50,6 +50,12 b' help' | |||||
50 | will override the [diff] section and always generate git or regular patches, |
|
50 | will override the [diff] section and always generate git or regular patches, | |
51 | possibly losing data in the second case. |
|
51 | possibly losing data in the second case. | |
52 |
|
52 | |||
|
53 | It may be desirable for mq changesets in the secret phase (see "hg help | |||
|
54 | phases"), which can be enabled with the following setting: | |||
|
55 | ||||
|
56 | [mq] | |||
|
57 | secret = True | |||
|
58 | ||||
53 | You will by default be managing a patch queue named "patches". You can create |
|
59 | You will by default be managing a patch queue named "patches". You can create | |
54 | other, independent patch queues with the "hg qqueue" command. |
|
60 | other, independent patch queues with the "hg qqueue" command. | |
55 |
|
61 | |||
@@ -149,11 +155,11 b' qinit -c should create both files if the' | |||||
149 | $ checkundo qnew |
|
155 | $ checkundo qnew | |
150 | $ echo foo > foo |
|
156 | $ echo foo > foo | |
151 | $ hg phase -r qbase |
|
157 | $ hg phase -r qbase | |
152 |
0: |
|
158 | 0: draft | |
153 | $ hg add foo |
|
159 | $ hg add foo | |
154 | $ hg qrefresh |
|
160 | $ hg qrefresh | |
155 | $ hg phase -r qbase |
|
161 | $ hg phase -r qbase | |
156 |
0: |
|
162 | 0: draft | |
157 | $ hg qnew B |
|
163 | $ hg qnew B | |
158 | $ echo >> foo |
|
164 | $ echo >> foo | |
159 | $ hg qrefresh |
|
165 | $ hg qrefresh | |
@@ -302,7 +308,7 b' Dump the tag cache to ensure that it has' | |||||
302 | applying test.patch |
|
308 | applying test.patch | |
303 | now at: test.patch |
|
309 | now at: test.patch | |
304 | $ hg phase -r qbase |
|
310 | $ hg phase -r qbase | |
305 |
2: |
|
311 | 2: draft | |
306 | $ hg tags > /dev/null |
|
312 | $ hg tags > /dev/null | |
307 |
|
313 | |||
308 | .hg/cache/tags (post qpush): |
|
314 | .hg/cache/tags (post qpush): | |
@@ -395,7 +401,6 b' commit should fail' | |||||
395 |
|
401 | |||
396 | push should fail if draft |
|
402 | push should fail if draft | |
397 |
|
403 | |||
398 | $ hg phase --draft 'mq()' |
|
|||
399 |
$ |
|
404 | $ hg push ../../k | |
400 | pushing to ../../k |
|
405 | pushing to ../../k | |
401 | abort: source has mq patches applied |
|
406 | abort: source has mq patches applied | |
@@ -1214,11 +1219,6 b' repo with unversioned patch dir' | |||||
1214 | repo with patches applied |
|
1219 | repo with patches applied | |
1215 |
|
1220 | |||
1216 | $ hg qclone qclonesource qclonedest |
|
1221 | $ hg qclone qclonesource qclonedest | |
1217 | requesting all changes |
|
|||
1218 | adding changesets |
|
|||
1219 | adding manifests |
|
|||
1220 | adding file changes |
|
|||
1221 | added 1 changesets with 1 changes to 1 files |
|
|||
1222 | updating to branch default |
|
1222 | updating to branch default | |
1223 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1223 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
1224 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1224 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
General Comments 0
You need to be logged in to leave comments.
Login now