Make database usage the default
Some cleanup of no longer used functions
This commit is contained in:
@@ -77,15 +77,10 @@ def main():
|
||||
default="INFO",
|
||||
help="logging level",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--db",
|
||||
action="store_true",
|
||||
help="Import revisions into database only",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--export",
|
||||
action="store_true",
|
||||
help="Export database fields for the given package as JSON",
|
||||
help="Export database fields for the given package as YAML",
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
@@ -113,12 +108,9 @@ def main():
|
||||
importer = Importer(
|
||||
PROJECTS, args.package, args.repodir, args.search_ancestor, args.rebase_devel
|
||||
)
|
||||
|
||||
if args.db:
|
||||
importer.import_into_db()
|
||||
importer.export_as_git()
|
||||
return
|
||||
importer.import_all_revisions(args.gc)
|
||||
importer.set_gc_interval(args.gc)
|
||||
importer.import_into_db()
|
||||
importer.export_as_git()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Reference in New Issue
Block a user