Show More
@@ -15,7 +15,6 b' from mercurial.utils import stringutil' | |||
|
15 | 15 | from mercurial import ( |
|
16 | 16 | error, |
|
17 | 17 | logcmdutil, |
|
18 | pycompat, | |
|
19 | 18 | registrar, |
|
20 | 19 | scmutil, |
|
21 | 20 | ) |
@@ -176,22 +175,20 b' def fastexport(ui, repo, *revs, **opts):' | |||
|
176 | 175 | It can be piped into corresponding import routines like "git fast-import". |
|
177 | 176 | Incremental dumps can be created by using marks files. |
|
178 | 177 | """ |
|
179 | opts = pycompat.byteskwargs(opts) | |
|
180 | ||
|
181 | revs += tuple(opts.get(b"rev", [])) | |
|
178 | revs += tuple(opts.get("rev", [])) | |
|
182 | 179 | if not revs: |
|
183 | 180 | revs = scmutil.revrange(repo, [b":"]) |
|
184 | 181 | else: |
|
185 | 182 | revs = logcmdutil.revrange(repo, revs) |
|
186 | 183 | if not revs: |
|
187 | 184 | raise error.Abort(_(b"no revisions matched")) |
|
188 |
authorfile = opts.get( |
|
|
185 | authorfile = opts.get("authormap") | |
|
189 | 186 | if authorfile: |
|
190 | 187 | authormap = convcmd.readauthormap(ui, authorfile) |
|
191 | 188 | else: |
|
192 | 189 | authormap = {} |
|
193 | 190 | |
|
194 |
import_marks = opts.get( |
|
|
191 | import_marks = opts.get("import_marks") | |
|
195 | 192 | marks = {} |
|
196 | 193 | if import_marks: |
|
197 | 194 | with open(import_marks, "rb") as import_marks_file: |
@@ -209,7 +206,7 b' def fastexport(ui, repo, *revs, **opts):' | |||
|
209 | 206 | export_commit(ui, repo, rev, marks, authormap) |
|
210 | 207 | progress.increment() |
|
211 | 208 | |
|
212 |
export_marks = opts.get( |
|
|
209 | export_marks = opts.get("export_marks") | |
|
213 | 210 | if export_marks: |
|
214 | 211 | with open(export_marks, "wb") as export_marks_file: |
|
215 | 212 | output_marks = [None] * len(marks) |
General Comments 0
You need to be logged in to leave comments.
Login now