Jelmer Vernooij
|
bd95d2f348
Remove one-line function, only used in one place.
|
15 gadi atpakaļ |
Jelmer Vernooij
|
4fecc6cde6
Fix PackData._get_size().
|
15 gadi atpakaļ |
Jelmer Vernooij
|
ec5e202c7a
Delay checking size until it's actually used.
|
15 gadi atpakaļ |
Jelmer Vernooij
|
eee439d98b
use fstat if possible.
|
15 gadi atpakaļ |
Jelmer Vernooij
|
d01ccc7451
Allow opening pack objects from memory.
|
15 gadi atpakaļ |
Jelmer Vernooij
|
0728eb3126
Only use mmap for index files.
|
15 gadi atpakaļ |
Jelmer Vernooij
|
fa35be7423
Avoid using mmap when unnecessary.
|
15 gadi atpakaļ |
Jelmer Vernooij
|
d405efd141
Use simple read function.
|
15 gadi atpakaļ |
Jelmer Vernooij
|
f414c2a55c
Remove unused argument to simple_mmap.
|
15 gadi atpakaļ |
Jelmer Vernooij
|
8f3dfd0de2
Remove pointless assertion - we'll get an exception in any case if the pack doesn't exist.
|
15 gadi atpakaļ |
Dave Borowitz
|
98ceb396a1
Add a GitFile class that uses the same locking protocol for writes as git.
|
15 gadi atpakaļ |
Abderrahim Kitouni
|
da25e5ed48
create_delta: correctly write opcode for equal
|
16 gadi atpakaļ |
Abderrahim Kitouni
|
0f30f45381
Return the offset correctly from write_pack_object
|
16 gadi atpakaļ |
Jelmer Vernooij
|
33f99bc0e9
More docstrings, test coverage.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
4d682a1ca8
Add more docstrings.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
e8acf0e609
Add more docstrings.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
ba8e57dd8d
Fix open modes of e.g. packs to be binary.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
585bad848c
Add SHA1Reader helper class.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
eddb45bcf0
Fix formatting, add type check.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
47e83813e2
Raise sha error if necessary, always return refs, fix docs.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
6815f872f6
Add helper function read_zlib_chunks.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
dd0676d09a
Improve docstrings.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
378d7a8ad6
Fix copyright headers.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
d6c7fc2adb
Remember the offset only for objects seen earlier in the pack, rather than the complete object.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
7652224b37
Add some docstrings.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
fa98db8ec8
Allow users to change object types, use helper functions for setting raw strings.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
e5bb2f56d9
Fix progress bars.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
9fb3fec12f
Fix compatibility with python 2.4, release 0.2.1.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
6b3f2b78f2
Remove mmap offset parameter use for now, as it appears to be broken and I have no good way to test it.
|
16 gadi atpakaļ |
Jelmer Vernooij
|
ca3718651e
Use new class name in __repr__ for child classes.
|
16 gadi atpakaļ |