Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | index writing added including simple test, improved docs of IndexEntry | Sebastian Thiel | 2009-10-21 | 1 | -2/+8 | |
| | | ||||||
| * | improved IndexEntry type and added test for parsing of the stage | Sebastian Thiel | 2009-10-20 | 2 | -5/+9 | |
| | | ||||||
| * | Improved tuple access of EntryIndex class including test, stage and type ↵ | Sebastian Thiel | 2009-10-20 | 1 | -0/+14 | |
| | | | | | | | | access still needs to be decoded though | |||||
| * | Added initial version of the index reading from file - IndexEntry interface ↵ | Sebastian Thiel | 2009-10-20 | 2 | -1/+3 | |
| | | | | | | | | is to be improved though, writing needs to be implemented as well | |||||
| * | Added frame for index implementation and testing | Sebastian Thiel | 2009-10-20 | 1 | -0/+17 | |
| | | ||||||
* | | Stream_data streams data to a given output stream most efficiently with a ↵ | Sebastian Thiel | 2009-10-22 | 1 | -2/+11 | |
| | | | | | | | | | | | | | | | | | | | | | | low memory footprint. Still, the git-cat-file command keeps all data in an interal buffer instead of streaming it directly. This is a git design issue though, and will be hard to address without some proper git-hacking. Conflicts: lib/git/cmd.py | |||||
* | | Git.cmd: removed with_raw_output option | Sebastian Thiel | 2009-10-22 | 1 | -0/+5 | |
| | | | | | | | | | | repo.archive: made it work with new way of custom output streams added test for repo.archive which was missing for some reason | |||||
* | | added Object.data_stream property allowing to stream object data ↵ | Sebastian Thiel | 2009-10-22 | 1 | -0/+5 | |
| | | | | | | | | directly.Considering the implementation of the git commnd which temporarily keeps it in a cache, it doesnt make a huge diffence as the data is kept in memory while streaming. Only good thing is that it is in a different process so python will never see it if done properly | |||||
* | | remote: Added fetch, pull, push methods to the interface to make these ↵ | Sebastian Thiel | 2009-10-21 | 1 | -2/+5 | |
| | | | | | | | | operations more convenient, like repo.remotes.origin.fetch | |||||
* | | diff: added test to be sure index-vs-working copy diffs are solved properly | Sebastian Thiel | 2009-10-21 | 1 | -0/+3 | |
|/ | ||||||
* | repo.alternates test cheked for correctness and bugfixed - totally mocked ↵ | Sebastian Thiel | 2009-10-20 | 1 | -10/+8 | |
| | | | | tests bare the risk that things do not work properly outside of the sandbox. | |||||
* | Fixed bare repository handling - bare is now a property to prevent writing it | Sebastian Thiel | 2009-10-20 | 2 | -4/+10 | |
| | ||||||
* | Moved specialized methods like dashify, touch and is_git_dir to module to ↵ | Sebastian Thiel | 2009-10-20 | 1 | -8/+7 | |
| | | | | | | the respective modules that use them fixed repo.daemon_export which did not work anymore due to incorrect touch implementation and wrong property names | |||||
* | Improved is_dirty including test | Sebastian Thiel | 2009-10-20 | 1 | -12/+10 | |
| | ||||||
* | Implemneted IterableLists for refs, commits and remote objects including ↵ | Sebastian Thiel | 2009-10-19 | 4 | -0/+8 | |
| | | | | simple tests | |||||
* | commit.count: is an instance method now | Sebastian Thiel | 2009-10-19 | 2 | -1/+14 | |
| | | | | | repo: added head , tag and iter_trees methods for completeness changes: headlines now sorted chronologically | |||||
* | repo.remote method added | Sebastian Thiel | 2009-10-19 | 1 | -0/+1 | |
| | | | | CHANGES updated to carry information about remotes and config | |||||
* | remote: added tests for creation and removal, finishing the remote interface | Sebastian Thiel | 2009-10-19 | 1 | -2/+17 | |
| | ||||||
* | remote: base tests succeed now | Sebastian Thiel | 2009-10-19 | 1 | -1/+6 | |
| | ||||||
* | config: fixed serious issues that would cause it to see initial tabs as ↵ | Sebastian Thiel | 2009-10-19 | 1 | -0/+2 | |
| | | | | continuation lines - this leads to very incorrect results when parsing git config files. Now the complete reading is overridden to make it work as there was no other way | |||||
* | Added configuration access including tests to remote | Sebastian Thiel | 2009-10-19 | 1 | -2/+23 | |
| | | | | | config: fixed issue that would cause it to abort reading if the file did not exist - this is valid now Test does not work as the configuration parsing does not work as expected - this must be fixed first | |||||
* | Added remote module and test cases - about to implement remote option handling | Sebastian Thiel | 2009-10-19 | 2 | -5/+48 | |
| | ||||||
* | added initial frame for remote handling- remotes are somewhat related to ↵ | Sebastian Thiel | 2009-10-19 | 1 | -0/+5 | |
| | | | | either parsing the command output or to reading the repo configuration which would be faster | |||||
* | added additional testing for the configuration, concurrent access and config ↵ | Sebastian Thiel | 2009-10-19 | 2 | -4/+30 | |
| | | | | reading, all tests work | |||||
* | implemented config class as far as necessary, one check is still failing | Sebastian Thiel | 2009-10-19 | 2 | -1/+75 | |
| | | | | Added odict module to get an OrderedDict to be used in the config parser, assuring the order of sections and options does not change | |||||
* | Added frame for configuration reader involving a meta class, decorators and ↵ | Sebastian Thiel | 2009-10-18 | 3 | -3/+56 | |
| | | | | tests - most of which still has to be filled out | |||||
* | diff method now checks for git-diff errrs that can easily occour if the ↵ | Sebastian Thiel | 2009-10-18 | 1 | -0/+6 | |
| | | | | repository is bare and if there is no index or second tree specified | |||||
* | DiffIndex implemented including test | Sebastian Thiel | 2009-10-18 | 1 | -3/+16 | |
| | ||||||
* | diff: implemented raw diff parsing which appears to be able to handle ↵ | Sebastian Thiel | 2009-10-18 | 1 | -2/+3 | |
| | | | | possible input types, DiffIndex still requires implementation though | |||||
* | implemented diff tests, but will have to move the diff module as it needs to ↵ | Sebastian Thiel | 2009-10-18 | 1 | -0/+30 | |
| | | | | create objects, whose import would create a dependency cycle | |||||
* | Removed a few diff-related test cases that fail now as the respective method ↵ | Sebastian Thiel | 2009-10-17 | 4 | -195/+37 | |
| | | | | is missing - these tests have to be redone in test-diff module accordingly | |||||
* | Fixed object bug that would cause object ids not to be resolved to sha's as ↵ | Sebastian Thiel | 2009-10-16 | 2 | -0/+6 | |
| | | | | | | this was assumed - now there is a test for it as well repo: removed diff and commit_diff methods, added 'head' property returning the current head as Reference object | |||||
* | repo.untracked_files added including test | Sebastian Thiel | 2009-10-16 | 1 | -0/+25 | |
| | ||||||
* | Improved archive function by allowing it to directly write to an output ↵ | Sebastian Thiel | 2009-10-15 | 1 | -5/+8 | |
| | | | | | | stream - previously it would cache everything to memory and try to provide zipping functionality itself gitcmd: allows the output stream to be set explicitly which is mainly useful for archiving operations | |||||
* | repo: made init and clone methods less specific, previously they wanted to ↵ | Sebastian Thiel | 2009-10-15 | 1 | -14/+12 | |
| | | | | do it 'barely' only. New method names closely follow the default git command names | |||||
* | Object can now create objects of the proper type in case one attempts to ↵ | Sebastian Thiel | 2009-10-15 | 1 | -8/+0 | |
| | | | | create an object directly - this feature is used in several places now, allowing for additional type-checking | |||||
* | Added Commit.iter_parents to iterate all parents | Sebastian Thiel | 2009-10-15 | 4 | -5/+13 | |
| | | | | | Renamed Commit.commits to iter_commits repo: assured proper use of the terms revision ( rev ) and reference ( ref ) | |||||
* | repo: removed a few methods because of redundancy or because it will be ↵ | Sebastian Thiel | 2009-10-15 | 2 | -9/+3 | |
| | | | | obsolete once the interface overhaul is finished. This commit is just intermediate | |||||
* | All times are not stored as time_struct, but as simple int to consume less ↵ | Sebastian Thiel | 2009-10-15 | 4 | -9/+5 | |
| | | | | | | memory time imports cleaned up and mostly removed as they were not required (anymore) | |||||
* | test_performance: module containing benchmarks to get an idea of the ↵ | Sebastian Thiel | 2009-10-15 | 2 | -16/+38 | |
| | | | | | | | achieved throughput repo.commits: max_count is None by default moved benchmark-like test from test_commit to test_performance | |||||
* | Removed plenty of mocked tree tests as they cannot work anymore with ↵ | Sebastian Thiel | 2009-10-14 | 2 | -102/+4 | |
| | | | | | | persistent commands that require stdin AND binary data - not even an adapter would help here. These tests will have to be replaced. test_commit: Improved efficiency of traversal test | |||||
* | tree: now reads tress directly by parsing the binary data, allowing it to ↵ | Sebastian Thiel | 2009-10-14 | 1 | -12/+1 | |
| | | | | safe possibly hundreds of command calls | |||||
* | Refs are now truly dynamic - this costs a little bit of (persistent command) ↵ | Sebastian Thiel | 2009-10-14 | 1 | -3/+4 | |
| | | | | work, but assures refs behave as expected | |||||
* | persistent command signature changed to also return the hexsha from a ↵ | Sebastian Thiel | 2009-10-14 | 1 | -2/+2 | |
| | | | | possible input ref - the objects pointed to by refs are now baked on demand - perhaps it should change to always be re-retrieved using a property as it is relatively fast - this way refs can always be cached | |||||
* | test_blob: removed many redundant tests that would fail now as the mock ↵ | Sebastian Thiel | 2009-10-14 | 4 | -54/+17 | |
| | | | | | | cannot handle the complexity of the command backend All objects but Tree now use the persistent command to read their object information - Trees get binary data and would need their own pretty-printing or they need to parse the data themselves which is my favorite | |||||
* | Implemented git command facility to keep persistent commands for fast object ↵ | Sebastian Thiel | 2009-10-14 | 1 | -2/+33 | |
| | | | | information retrieval | |||||
* | test: Added time-consuming test which could also be a benchmark in fact - ↵ | Sebastian Thiel | 2009-10-14 | 1 | -0/+15 | |
| | | | | | | | currently it cause hundreds of command invocations which is slow Fixed issue with trees not properly initialized with their default mode _set_cache_: some objects checked whether the attribute was within their __slots__ although it should have been accessed through its class | |||||
* | cmd: added option to return the process directly, allowing to read the ↵ | Sebastian Thiel | 2009-10-14 | 3 | -40/+21 | |
| | | | | | | | output directly from the output stream commit: now reads commit information directly from the output stream of the process by implementing its iterator method repo: removed log method as it was redundant ( equal to the commits method ) | |||||
* | renamed find_all to list_all, changed commit to use iterable interface in ↵ | Sebastian Thiel | 2009-10-13 | 1 | -1/+1 | |
| | | | | preparation for command changes | |||||
* | unified name of utils module, recently it was named util and utils in ↵ | Sebastian Thiel | 2009-10-13 | 1 | -1/+1 | |
| | | | | different packages |