aboutsummaryrefslogtreecommitdiff
path: root/test/git/test_commit.py
AgeCommit message (Collapse)Author
2008-12-15implement a far far faster diff parserPaul Sowden
The old diff parser in list_from_string took a large amount of time to parse long diffs, on one of my repositories it took over 3 minutes to parse the initial commit. The new parser uses a single regexp to match the header of a diff, and iterates over the each individual diff by splitting the entire string by the diff seperator, attempting to match the header for each individual diff. With the new parser parsing the same repository is almost instant, woohoo! (cherry picked from commit 5b6b27f153bdc30380bea12a528ef483571dd57a)
2008-12-15add a path parameter to most commit methodsPaul Sowden
The path parameter allows you to specify a path to constrain queries by. This changes potentially breaks backwards compatibility for the Repo.commits and Repo.commits_since methods as it moves the positional arguments. (cherry picked from commit cc8a20e78da4864060bd0c9279633009bc10d871)
2008-12-15remove ambiguity between paths and treeishsPaul Sowden
When calling commands that accept treeish and path arguments and there is a path with the same name as a treeish git cowardly refuses to pick one and asks for the command to use the unambiguous syntax where '--' seperates the treeish from the paths. Add '--' to the git commands to indicate that the argument is a treeish and not a path. (cherry picked from commit a9a57fa93a2b121ab9b17fcd6062b9a9c9740883)
2008-12-15Get compatible with mock0.4 (to some extend ;)). Just that MichaelFlorian Apolloner
doesn't need to do the same boring replacing I did. (cherry picked from commit 10c62aa69193a8bc7b46ca24c2ad1d5008489665)
2008-09-17Replace GitPython with git in repr() outputs.Steve Frécinaux
The imported module is called git (as in "import git"), so it's less confusing to do so than to call everything GitPython.something.
2008-09-02test_commit: add a testcase for parsing rev-list --bisect-all outputDavid Aguilar
This adds a testcase for Commit.list_from_string to ensure that it can properly parse the output of git rev-list --bisect-all. Signed-off-by: David Aguilar <davvid@gmail.com>
2008-07-17Removed method_missing since it was only used in one place.Michael Trier
2008-07-16Added license information to all files.Michael Trier
2008-06-20fixed the tests, which where broken before my commit, although the bug ↵Florian Apolloner
didn't reveal it...
2008-05-30renamed git_python to git. Removed pop_key and replaced with dict.pop. Fixed ↵Michael Trier
up tests so they pass except for stderr test. Modified version information retrieval.
2008-05-07Moved test stuff around and modified imports to just clean things up a bit.Michael Trier
2008-05-07cleaned up a bunch of imports for the tests.Michael Trier
2008-05-07initial projectMichael Trier