summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | * improved IndexEntry type and added test for parsing of the stageSebastian Thiel2009-10-203-9/+13
| | |
| | * Improved tuple access of EntryIndex class including test, stage and type ↵Sebastian Thiel2009-10-203-5/+70
| | | | | | | | | | | | access still needs to be decoded though
| | * Added initial version of the index reading from file - IndexEntry interface ↵Sebastian Thiel2009-10-203-2/+102
| | | | | | | | | | | | is to be improved though, writing needs to be implemented as well
| | * Added frame for index implementation and testingSebastian Thiel2009-10-204-1/+37
| | |
| * | Stream_data streams data to a given output stream most efficiently with a ↵Sebastian Thiel2009-10-223-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 optionSebastian Thiel2009-10-224-35/+40
| | | | | | | | | | | | | | | 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 Thiel2009-10-225-0/+48
| | | | | | | | | | | | 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 Thiel2009-10-215-5/+82
| | | | | | | | | | | | operations more convenient, like repo.remotes.origin.fetch
| * | remote.refs now returns an IterableList allowing easier access to the ↵Sebastian Thiel2009-10-211-2/+2
| | | | | | | | | | | | remotes, and conforming it to the way repo returns its references as well
| * | diff: added test to be sure index-vs-working copy diffs are solved properlySebastian Thiel2009-10-211-0/+3
| | |
| * | repo.is_dirty: fixed incorrect check of a dirty working tree, previously it ↵Sebastian Thiel2009-10-212-1/+10
| | | | | | | | | | | | would compare HEAD against the working tree, not the index which was intended
| * | touch method improved to open for appending which would not clear the file ↵Sebastian Thiel2009-10-211-1/+1
| |/ | | | | | | and be like an actual touch
| * repo.alternates test cheked for correctness and bugfixed - totally mocked ↵Sebastian Thiel2009-10-203-16/+24
| | | | | | | | tests bare the risk that things do not work properly outside of the sandbox.
| * Added slots to Repo type to be sure we do not accidentally set values on it, ↵Sebastian Thiel2009-10-202-0/+8
| | | | | | | | | | | | and to be more efficient of course ;) TODO: Added info about possible config improvement
| * Fixed bare repository handling - bare is now a property to prevent writing itSebastian Thiel2009-10-206-19/+50
| |
| * Moved specialized methods like dashify, touch and is_git_dir to module to ↵Sebastian Thiel2009-10-206-32/+27
| | | | | | | | | | | | 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 testSebastian Thiel2009-10-204-24/+32
| |
| * Implemneted IterableLists for refs, commits and remote objects including ↵Sebastian Thiel2009-10-1911-10/+56
| | | | | | | | simple tests
| * Added TODO file to keep track of tasks and in case someone wants to help ↵Sebastian Thiel2009-10-191-0/+57
| | | | | | | | here and there ;)
| * commit.count: is an instance method nowSebastian Thiel2009-10-197-65/+103
| | | | | | | | | | repo: added head , tag and iter_trees methods for completeness changes: headlines now sorted chronologically
| * repo.remote method addedSebastian Thiel2009-10-193-0/+28
| | | | | | | | CHANGES updated to carry information about remotes and config
| * Merge branch 'remotes' into improvementsSebastian Thiel2009-10-197-31/+446
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | * remotes: remote: added tests for creation and removal, finishing the remote interface remote: base tests succeed now config: fixed serious issues that would cause it to see initial tabs as 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 Added remote module and test cases - about to implement remote option handling added initial frame for remote handling- remotes are somewhat related to either parsing the command output or to reading the repo configuration which would be faster
| | * remote: added tests for creation and removal, finishing the remote interfaceSebastian Thiel2009-10-193-3/+22
| | |
| | * remote: base tests succeed nowSebastian Thiel2009-10-191-1/+6
| | |
| | * config: fixed serious issues that would cause it to see initial tabs as ↵Sebastian Thiel2009-10-192-0/+75
| | | | | | | | | | | | 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 remoteSebastian Thiel2009-10-194-22/+83
| | | | | | | | | | | | | | | 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 handlingSebastian Thiel2009-10-195-5/+265
| | |
| | * added initial frame for remote handling- remotes are somewhat related to ↵Sebastian Thiel2009-10-192-28/+23
| |/ | | | | | | either parsing the command output or to reading the repo configuration which would be faster
| * Merge branch 'config' into improvementsSebastian Thiel2009-10-198-4/+1936
| |\ | | | | | | | | | | | | | | | | | | * config: added additional testing for the configuration, concurrent access and config reading, all tests work implemented config class as far as necessary, one check is still failing Added frame for configuration reader involving a meta class, decorators and tests - most of which still has to be filled out
| | * added additional testing for the configuration, concurrent access and config ↵Sebastian Thiel2009-10-193-10/+48
| | | | | | | | | | | | reading, all tests work
| | * implemented config class as far as necessary, one check is still failingSebastian Thiel2009-10-194-21/+1710
| | | | | | | | | | | | 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 Thiel2009-10-186-4/+209
| |/ | | | | | | tests - most of which still has to be filled out
| * Improved tagobject message handling by not assuming an empty fourth line anymoreSebastian Thiel2009-10-181-2/+7
| |
| * diff method now checks for git-diff errrs that can easily occour if the ↵Sebastian Thiel2009-10-182-5/+22
| | | | | | | | repository is bare and if there is no index or second tree specified
| * Merge branch 'diffing' into improvementsSebastian Thiel2009-10-1813-309/+326
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * diffing: DiffIndex implemented including test diff: implemented raw diff parsing which appears to be able to handle possible input types, DiffIndex still requires implementation though resolved cyclic inclusion issue by moving the Diffable interface into the diff module, which probably is the right thing to do anyway repo: fixed untracked files function which used git-commit before, it can open vim to get a message though which makes the program appear to freeze - using git-status now implemented diff tests, but will have to move the diff module as it needs to create objects, whose import would create a dependency cycle Removed a few diff-related test cases that fail now as the respective method is missing - these tests have to be redone in test-diff module accordingly added Diffable interface to objects.base, its used by Commit and Tree objects. Fixed object bug that would cause object ids not to be resolved to sha's as this was assumed - now there is a test for it as well
| | * DiffIndex implemented including testSebastian Thiel2009-10-183-12/+79
| | |
| | * diff: implemented raw diff parsing which appears to be able to handle ↵Sebastian Thiel2009-10-182-11/+56
| | | | | | | | | | | | possible input types, DiffIndex still requires implementation though
| | * resolved cyclic inclusion issue by moving the Diffable interface into the ↵Sebastian Thiel2009-10-185-78/+76
| | | | | | | | | | | | diff module, which probably is the right thing to do anyway
| | * repo: fixed untracked files function which used git-commit before, it can ↵Sebastian Thiel2009-10-181-1/+1
| | | | | | | | | | | | open vim to get a message though which makes the program appear to freeze - using git-status now
| | * implemented diff tests, but will have to move the diff module as it needs to ↵Sebastian Thiel2009-10-182-2/+35
| | | | | | | | | | | | create objects, whose import would create a dependency cycle
| | * Removed a few diff-related test cases that fail now as the respective method ↵Sebastian Thiel2009-10-175-195/+38
| | | | | | | | | | | | is missing - these tests have to be redone in test-diff module accordingly
| | * added Diffable interface to objects.base, its used by Commit and Tree objects.Sebastian Thiel2009-10-165-62/+95
| | | | | | | | | | | | Diff class has been prepared to process raw input, but its not yet more than a frame
| | * Fixed object bug that would cause object ids not to be resolved to sha's as ↵Sebastian Thiel2009-10-166-41/+39
| |/ | | | | | | | | | | 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 testSebastian Thiel2009-10-163-0/+57
| |
* | Merging latest improvements including a revamped Repo interface before more ↵Sebastian Thiel2009-10-1614-503/+503
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes are to be done on the way diffing is handled Merge branch 'improvements' * improvements: Improved archive function by allowing it to directly write to an output stream - previously it would cache everything to memory and try to provide zipping functionality itself repo: made init and clone methods less specific, previously they wanted to do it 'barely' only. New method names closely follow the default git command names repo.commit_delta_base: removed Object can now create objects of the proper type in case one attempts to create an object directly - this feature is used in several places now, allowing for additional type-checking repo: removed commits_between but added a note about how this can be achieved using the iter_commits method; reorganized methods within the type as a start for more interface changes Added Commit.iter_parents to iterate all parents repo: removed a few methods because of redundancy or because it will be 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 memory
| * Merge branch 'repo_interface' into improvementsSebastian Thiel2009-10-1511-469/+463
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * repo_interface: Improved archive function by allowing it to directly write to an output stream - previously it would cache everything to memory and try to provide zipping functionality itself repo: made init and clone methods less specific, previously they wanted to do it 'barely' only. New method names closely follow the default git command names repo.commit_delta_base: removed Object can now create objects of the proper type in case one attempts to create an object directly - this feature is used in several places now, allowing for additional type-checking repo: removed commits_between but added a note about how this can be achieved using the iter_commits method; reorganized methods within the type as a start for more interface changes Added Commit.iter_parents to iterate all parents repo: removed a few methods because of redundancy or because it will be obsolete once the interface overhaul is finished. This commit is just intermediate
| | * Improved archive function by allowing it to directly write to an output ↵Sebastian Thiel2009-10-154-62/+58
| | | | | | | | | | | | | | | | | | 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 Thiel2009-10-153-30/+33
| | | | | | | | | | | | do it 'barely' only. New method names closely follow the default git command names
| | * repo.commit_delta_base: removedSebastian Thiel2009-10-153-89/+82
| | |
| | * Object can now create objects of the proper type in case one attempts to ↵Sebastian Thiel2009-10-155-15/+19
| | | | | | | | | | | | create an object directly - this feature is used in several places now, allowing for additional type-checking