##// END OF EJS Templates
mq: add secret setting
Matt Mackall -
r16017:2605fc99 stable
parent child Browse files
Show More
@@ -38,6 +38,12 b' preserving existing git patches upon qre'
38 38 'no', mq will override the [diff] section and always generate git or
39 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 47 You will by default be managing a patch queue named "patches". You can
42 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 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 268 backup = repo.ui.backupconfig('phases', 'new-commit')
260 269 try:
261 270 # ensure we create a secret changeset
@@ -43,7 +43,7 b' test with recursive collection'
43 43 adding changesets
44 44 adding manifests
45 45 adding file changes
46 added 1 changesets with 1 changes to 1 files
46 added 2 changesets with 2 changes to 2 files
47 47 requesting all changes
48 48 adding changesets
49 49 adding manifests
@@ -82,7 +82,7 b' test with normal collection'
82 82 adding changesets
83 83 adding manifests
84 84 adding file changes
85 added 1 changesets with 1 changes to 1 files
85 added 2 changesets with 2 changes to 2 files
86 86 requesting all changes
87 87 adding changesets
88 88 adding manifests
@@ -121,7 +121,7 b' test with old-style collection'
121 121 adding changesets
122 122 adding manifests
123 123 adding file changes
124 added 1 changesets with 1 changes to 1 files
124 added 2 changesets with 2 changes to 2 files
125 125 requesting all changes
126 126 adding changesets
127 127 adding manifests
@@ -144,17 +144,6 b' Testing applied patches, push and --forc'
144 144
145 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 147 $ hg push -r . ../forcepush2
159 148 pushing to ../forcepush2
160 149 abort: source has mq patches applied
@@ -50,6 +50,12 b' help'
50 50 will override the [diff] section and always generate git or regular patches,
51 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 59 You will by default be managing a patch queue named "patches". You can create
54 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 155 $ checkundo qnew
150 156 $ echo foo > foo
151 157 $ hg phase -r qbase
152 0: secret
158 0: draft
153 159 $ hg add foo
154 160 $ hg qrefresh
155 161 $ hg phase -r qbase
156 0: secret
162 0: draft
157 163 $ hg qnew B
158 164 $ echo >> foo
159 165 $ hg qrefresh
@@ -302,7 +308,7 b' Dump the tag cache to ensure that it has'
302 308 applying test.patch
303 309 now at: test.patch
304 310 $ hg phase -r qbase
305 2: secret
311 2: draft
306 312 $ hg tags > /dev/null
307 313
308 314 .hg/cache/tags (post qpush):
@@ -395,7 +401,6 b' commit should fail'
395 401
396 402 push should fail if draft
397 403
398 $ hg phase --draft 'mq()'
399 404 $ hg push ../../k
400 405 pushing to ../../k
401 406 abort: source has mq patches applied
@@ -1214,11 +1219,6 b' repo with unversioned patch dir'
1214 1219 repo with patches applied
1215 1220
1216 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 1222 updating to branch default
1223 1223 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
1224 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