| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
The time module is unused since "lorry.zip-importer: Interpret zip
file timestamps as UTC".
|
|
|
|
|
| |
This seems like a more obvious to look for such information,
and it's also where the GPL says we should mention changes.
|
|
|
|
|
|
| |
These are based on scripts in the git project, which we noted but
didn't include a copyright statement for. Put copyright notices
(including for our changes) in those files and in LICENSE.
|
|
|
|
|
|
| |
The Zip file format is extensible, and there are several extensions to
file metadata that provide a Unix-format mtime. These allow us to
avoid the local time ambiguity altogether.
|
|
|
|
|
|
|
|
| |
Zip file timestamps are in local time, but the time zone offset is
unspecified. We choose to interpret them as UTC so that zip imports
will be reproducible.
Closes #1.
|
|
|
|
|
|
|
|
|
|
|
| |
lorry.zip-importer sets commit_time to the latest timestamp found in
the zip file. It initialises it to 0 and then compares with each
timestamp, which is a tuple. In Python 3, there is no ordering
between int and tuple values, so this raises an exception.
Change the initial value to be a tuple so that the comparisons work.
This also allows importing empty zip files, though that doesn't
seem particularly useful.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
I think Python 1 is well and truly dead now.
|
|
|
|
|
| |
These scripts were still using print as a statement. Found by
pyflakes.
|
| |
|
|
|
|
|
|
| |
For example, we'd rather the tag be docbook-xml-4.5 than docbook-xml-4.5.zip
Change-Id: I617b1c577ff95e4231681c75d3a91f4826cafd2b
|
|
|
|
|
|
|
|
|
| |
Include only the basename of the file, to make the commit message
(and thus commit SHA1s) deterministic.
Mention Lorry in the committer name and email address.
Change-Id: Id9d29bbe9f12514213b4b4eafd35b08b017e4246
|
|
|
|
| |
Change-Id: I29368ddcc64c82bafcbb834c81db30018a144f64
|
|
Add zip archive frontend for git-fast-import from
https://raw.githubusercontent.com/git/git/master/contrib/fast-import/import-zips.py
Change-Id: I7cbd63bda5a1c36df68bef6448acbc55d95672b4
|