Show More
@@ -178,6 +178,12 b' def debugapplystreamclonebundle(ui, repo' | |||
|
178 | 178 | _(b'add single file all revs overwrite'), |
|
179 | 179 | ), |
|
180 | 180 | (b'n', b'new-file', None, _(b'add new file at each rev')), |
|
181 | ( | |
|
182 | b'', | |
|
183 | b'from-existing', | |
|
184 | None, | |
|
185 | _(b'continue from a non-empty repository'), | |
|
186 | ), | |
|
181 | 187 | ], |
|
182 | 188 | _(b'[OPTION]... [TEXT]'), |
|
183 | 189 | ) |
@@ -188,6 +194,7 b' def debugbuilddag(' | |||
|
188 | 194 | mergeable_file=False, |
|
189 | 195 | overwritten_file=False, |
|
190 | 196 | new_file=False, |
|
197 | from_existing=False, | |
|
191 | 198 | ): |
|
192 | 199 | """builds a repo with a given DAG from scratch in the current empty repo |
|
193 | 200 | |
@@ -226,7 +233,7 b' def debugbuilddag(' | |||
|
226 | 233 | text = ui.fin.read() |
|
227 | 234 | |
|
228 | 235 | cl = repo.changelog |
|
229 | if len(cl) > 0: | |
|
236 | if len(cl) > 0 and not from_existing: | |
|
230 | 237 | raise error.Abort(_(b'repository is not empty')) |
|
231 | 238 | |
|
232 | 239 | # determine number of revs in DAG |
@@ -272,7 +272,7 b' Show all commands + options' | |||
|
272 | 272 | debugantivirusrunning: |
|
273 | 273 | debugapplystreamclonebundle: |
|
274 | 274 | debugbackupbundle: recover, patch, git, limit, no-merges, stat, graph, style, template |
|
275 | debugbuilddag: mergeable-file, overwritten-file, new-file | |
|
275 | debugbuilddag: mergeable-file, overwritten-file, new-file, from-existing | |
|
276 | 276 | debugbundle: all, part-type, spec |
|
277 | 277 | debugcapabilities: |
|
278 | 278 | debugchangedfiles: compute |
General Comments 0
You need to be logged in to leave comments.
Login now