Martin Geisler
a76e121863
backout of e4cb9628354c
...
Matt and a majority of crew did not like this approach.
2011-01-27 11:15:08 +01:00
Martin Geisler
d23e1973c2
specify C indention style using Emacs file local variables
2011-01-26 12:05:01 +01:00
Benoit Boissinot
6c18ebff9d
parsers.c: fix comment
2011-01-15 12:44:28 +01:00
Matt Mackall
846d35e24f
revlog: only build the nodemap on demand
2011-01-11 17:01:04 -06:00
Renato Cunha
e7d8ae78a9
parsers.c: Added support for py3k.
...
This patch adds support for py3k in parsers.c. This is accomplished by including
a header file responsible for abstracting the API differences between python 2
and python 3.
2010-06-15 19:49:56 -03:00
Matt Mackall
69f9d533aa
parsers: fix some signed comparison issues
...
(spotted by Steve Borho)
2010-02-13 17:37:44 -06:00
Matt Mackall
8d99be19f0
many, many trivial check-code fixups
2010-01-25 00:05:27 -06:00
Nicolas Dumazet
9e39f64d52
parsers.c: parse_manifest: fixing refcount of flags
...
When flags was DECREF'ed, scope was referencing to the outer variable,
outside of the block.
It was in fact always NULL: the real Python object was never decref'ed.
2009-08-27 14:15:04 +02:00
Thomas Arendsen Hein
8999e196bc
Some additional space/tab cleanups
2008-10-20 15:19:05 +02:00
Dirkjan Ochtman
f5ea74b223
clean up trailing spaces, leading spaces in C
2008-10-20 14:57:04 +02:00
Benoit Boissinot
bc6e674802
merge with crew
2008-10-19 20:29:41 +02:00
Benoit Boissinot
fdd2a14dd6
parsers.c: do not try to untrack after a failure
2008-10-19 20:17:06 +02:00
Benoit Boissinot
64b6a68b1b
parsers.c: fix integer overflows
...
thanks to zzuf for helping finding those
2008-10-19 20:16:37 +02:00
Thomas Arendsen Hein
1493b09823
Merge with crew
2008-10-19 19:10:26 +02:00
Benoit Boissinot
0a350d3213
parsers.c: there is no reference to data_obj, so it shouldn't be decref'ed
2008-10-19 16:11:23 +02:00
Thomas Arendsen Hein
e5350e7597
Copy index before parsing to enforce alignment with inline data present.
...
Fixes issue1348 (Bus error in parsers.c) on Solaris/sparc.
2008-10-19 15:08:30 +02:00
Benoit Boissinot
1abf8f679b
index parser: fix refcounting in case of errors, refactor
...
due to incorrect refcounting, on a bad revlog it was failing with:
*** glibc detected *** /usr/bin/python: corrupted double-linked list: 0x0816d318 ***
and a backtrace.
2008-10-19 01:26:46 +02:00
Benoit Boissinot
d3445ca0d4
merge with crew
2008-10-18 20:39:08 +02:00
Benoit Boissinot
6de97a000b
revlog parser: use ntohl() instead of ntohll() (fix endianness issues)
2008-10-18 20:23:46 +02:00
Bernhard Leiner
7989d67052
C implementation of revlog index parsing
2008-10-17 01:03:38 +02:00
Matt Mackall
1c5fcf7d0e
dirstate: C parsing extension
2008-10-12 15:21:08 -05:00
Matt Mackall
b98e1b895d
parsers: speed up hex decoding for manifests
2008-10-12 15:21:08 -05:00
Matt Mackall
9124c02fed
parsers: clean up whitespace
2008-10-12 15:21:08 -05:00
Dhruva Krishnamurthy
343c16ff75
Fix missing uint64_t definition in parsers.c under Windows
2008-10-18 14:43:20 +02:00
Benoit Boissinot
5e3666db4b
fix const annotation warning
2008-03-28 19:47:22 +01:00
Bryan O'Sullivan
8a988e392e
manifest: improve parsing performance by 8x via a new C extension
2008-03-26 10:12:10 -07:00