summaryrefslogtreecommitdiffstats
path: root/utils/common/gitscraper.py
AgeCommit message (Collapse)AuthorFilesLines
2020-07-09Python3-related fixes in some of our scriptsSolomon Peachy1-1/+1
Change-Id: I8acbe43e3f27e51159a7a78fcc361476d7406cbb
2020-06-13deploy: Fix various style issues.Dominik Riebeling1-25/+33
Fix various pylint issues and some python3 compatibility. Change-Id: I2c35ccc5ad2d0902c229f9de57912cf6d5a83ece
2013-06-09Rework langstat.Dominik Riebeling1-2/+2
- Generally improve code and make it compliant to PEP8. - Make it work with Python3 as well. Change-Id: I9e99999c59dc501664c36dd38fcb85fb60d6d9e6
2013-03-05Make the tarball generation tool handle spaces in filenamesFrank Gevaerts1-1/+1
<insert opinion on such filenames here> Change-Id: Ie1b5fac97eea93c9ac934ffb8bf6c0d9a0559339
2012-05-14Fix a typo.Dominik Riebeling1-1/+1
Change-Id: I358add5df8971bc3eab4c4cf71d2e792e51979d1
2012-04-29gitscraper: Provide way to get timestamps for files.Dominik Riebeling1-7/+30
When scraping files from the repository allow passing an additional list of files for which the timestamp of the last change is retrieved. Since this is slow (the log needs to be traversed, since a blob doesn't know about commits its referenced by) only specified files get this retrieved. Change-Id: I61a2ef812ac18ffb5898c01ce070046d4ca00a15
2012-04-22gitscraper: support Python3.Dominik Riebeling1-20/+20
Make gitscraper and tarball script work with both Python 2 and Python 3. Tested with 2.7 and 3.2. Change-Id: I31b2580660d764d013bca6fe59d5663ae9f7f5aa
2012-04-12gitscraper: support compressing the sources as 7z.Dominik Riebeling1-7/+28
The Rockbox source code uses 7z for its archive for size reasons. Add support for compressing as 7z (by calling the 7z command line utility) so it can be used for generating Rockbox source archives. Change-Id: I26097ff61ff183e5ddc07b2c4473f90dc0700178
2012-02-06When writing data from repository open file as binary.Dominik Riebeling1-1/+1
Windows requires files to be explicitly opened as binaries, otherwise it will perform line ending translations. We really don't want the OS to mess with that. Change-Id: Id56de354b7ad0e5b056540755f7108456f3263ed
2012-02-05Python module to get (some) files from the repository.Dominik Riebeling1-0/+183
With git it's not possible to simply export a set of paths from the server directly. This module offers a similar functionality, but requires a local clone of the repository. It calls git directly for maximum portability. This is a prerequisite to making the deployment script used for Rockbox Utility work again. Change-Id: I1aca8ddd40d16b6268c1d6a2fc23ac59e964c3c6