summaryrefslogtreecommitdiff
path: root/lorry.gzip-importer
Commit message (Collapse)AuthorAgeFilesLines
* Make flake8 happyBen Brown2022-02-051-1/+1
|
* Commit changes from from black and isortBen Brown2022-02-051-27/+43
|
* Add copyright notices and years to several scriptsBen Hutchings2020-07-151-0/+2
| | | | | * lorry.gzip-importer was missing a copyright notice * Various changes were not included in the copyright dates
* lorry.{g,}zip-importer: Read and write in binary modeBen Hutchings2020-05-291-10/+12
| | | | | | | | | | | | gzip and zip files are not in text format, and the file contents that we send to git may not be either. So: * Open gzip files in binary mode. * Open the pipe to 'git fast-import' in binary mode. This requires using subprocess.Popen instead of os.popen. * Change printlines functions to encode text in UTF-8. * Use printlines functions in the remaining places where we need to write text.
* lorry,{g,}zip-importer: Move top-level code into functionsBen Hutchings2020-05-291-11/+19
| | | | | | | Split the top-level code of each script into: * export: Exports a single file to a 'git fast-import' pipe * main: Spawns 'git fast-import' and calls export for each file
* lorry.{g,}zip-importer: Only import modules and classes into module scopeBen Hutchings2020-05-291-13/+13
| | | | | | | | Currently these scripts import a bunch of functions into module scope, which is a bit confusing. Change them to access functions through their enclosing module names. In lorry.gzip-importer, hexversion and stderr weren't used at all.
* lorry.{g,}zip-importer: Fix remaining Python 3 syntax errorsBen Hutchings2020-05-291-1/+1
| | | | | These scripts were still using print as a statement. Found by pyflakes.
* Migrate to Python 3Pedro Alvarez2019-11-271-1/+1
|
* Added gzip file support to lorryTristan Van Berkom2015-11-101-0/+61
The new 'gzip' lorry file is practical for any gzipped single file repositories, this can be useful for some static blob resources, such as fonts. Change-Id: I931e15e4c1291d820db82d0fc764aa767d3df9ab