Mercurial > hg-git
changeset 1067:f4c2b42731ea
config: register hggit.mapsavefrequency
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Tue, 24 Oct 2017 14:33:12 -0500 |
parents | ddae0045de4e |
children | 914e5477b17e |
files | hggit/compat.py hggit/git_handler.py |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/compat.py Tue Oct 24 14:26:35 2017 -0500 +++ b/hggit/compat.py Tue Oct 24 14:33:12 2017 -0500 @@ -69,6 +69,9 @@ 'branch_bookmark_suffix': None, 'intree': None, }, + 'hggit': { + 'mapsavefrequency': 0, + } } hasconfigitems = False
--- a/hggit/git_handler.py Tue Oct 24 14:26:35 2017 -0500 +++ b/hggit/git_handler.py Tue Oct 24 14:33:12 2017 -0500 @@ -490,7 +490,8 @@ exporter = hg2git.IncrementalChangesetExporter( self.repo, pctx, self.git.object_store, gitcommit) - mapsavefreq = self.ui.configint('hggit', 'mapsavefrequency', 0) + mapsavefreq = compat.config(self.ui, 'int', 'hggit', + 'mapsavefrequency') for i, ctx in enumerate(export): self.ui.progress('exporting', i, total=total) self.export_hg_commit(ctx.node(), exporter) @@ -777,7 +778,8 @@ else: self.ui.status(_("no changes found\n")) - mapsavefreq = self.ui.configint('hggit', 'mapsavefrequency', 0) + mapsavefreq = compat.config(self.ui, 'int', 'hggit', + 'mapsavefrequency') for i, csha in enumerate(commits): self.ui.progress('importing', i, total=total, unit='commits') commit = commit_cache[csha]