##// END OF EJS Templates
debugbuilddag: add a flag to allow running it from a non-empty repository...
marmoute -
r49540:b4bc9c4f default
parent child Browse files
Show More
@@ -178,6 +178,12 b' def debugapplystreamclonebundle(ui, repo'
178 _(b'add single file all revs overwrite'),
178 _(b'add single file all revs overwrite'),
179 ),
179 ),
180 (b'n', b'new-file', None, _(b'add new file at each rev')),
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 _(b'[OPTION]... [TEXT]'),
188 _(b'[OPTION]... [TEXT]'),
183 )
189 )
@@ -188,6 +194,7 b' def debugbuilddag('
188 mergeable_file=False,
194 mergeable_file=False,
189 overwritten_file=False,
195 overwritten_file=False,
190 new_file=False,
196 new_file=False,
197 from_existing=False,
191 ):
198 ):
192 """builds a repo with a given DAG from scratch in the current empty repo
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 text = ui.fin.read()
233 text = ui.fin.read()
227
234
228 cl = repo.changelog
235 cl = repo.changelog
229 if len(cl) > 0:
236 if len(cl) > 0 and not from_existing:
230 raise error.Abort(_(b'repository is not empty'))
237 raise error.Abort(_(b'repository is not empty'))
231
238
232 # determine number of revs in DAG
239 # determine number of revs in DAG
@@ -272,7 +272,7 b' Show all commands + options'
272 debugantivirusrunning:
272 debugantivirusrunning:
273 debugapplystreamclonebundle:
273 debugapplystreamclonebundle:
274 debugbackupbundle: recover, patch, git, limit, no-merges, stat, graph, style, template
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 debugbundle: all, part-type, spec
276 debugbundle: all, part-type, spec
277 debugcapabilities:
277 debugcapabilities:
278 debugchangedfiles: compute
278 debugchangedfiles: compute
General Comments 0
You need to be logged in to leave comments. Login now