Check tag and commit objects for duplicate and out-of-order headers.
authorDave Borowitz <dborowitz@google.com>
Sat, 27 Feb 2010 19:29:44 +0000 (11:29 -0800)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 12 Apr 2010 15:07:31 +0000 (08:07 -0700)
commit2782f6edb9565794439d74d723d17bdf1a65ca0d
tree3d13dd5d54aedd4b2bc2a3a118e4a74d8f816d77
parentdebe9f45b1ebe7af3795966fc771fea9868a4bcf
Check tag and commit objects for duplicate and out-of-order headers.

This requires factoring out the commit/tag parsing code so it can be
used directly from both the _parse_text and check methods. The parse
methods yield tuples, which can either be used to set members or
check for ordering.

Change-Id: I5ffe47100273912eaa283d03332286287b109a13
dulwich/objects.py
dulwich/tests/test_objects.py