summaryrefslogtreecommitdiff
path: root/test/git/test_index.py
Commit message (Collapse)AuthorAgeFilesLines
* flattened test folder structure, didn't adjust any file content yetSebastian Thiel2010-11-211-670/+0
|
* commit: when creating a new commit and advancing the head, it will now write ↵Sebastian Thiel2010-11-181-0/+2
| | | | the ORIG_HEAD reference as well
* index.reset: updated parameter docs, but most importantly, the method now ↵Sebastian Thiel2010-10-271-0/+40
| | | | has better testing for the use of paths during reset. The IndexFile now implements this on its own, which also allows for something equivalent to git-reset --hard -- <paths>, which is not possible in the git command for some probably very good reason
* Fixed bug that would cause the author's email to be a generic default one, ↵Sebastian Thiel2010-10-271-0/+9
| | | | | | instead of the existing and valid. The rest of the ConfigParser handling is correct, as it reads all configuration files available to git see http://github.com/Byron/GitPython/issues#issue/1
* .gitignore will now ignore netbeans projectsSebastian Thiel2010-10-251-1/+1
| | | | Fixed test which used the --force flag on move, but there is only a short version (left) it appears
* Index._iter_expand_paths: fixed tiny error with large impact, there was code ↵Sebastian Thiel2010-07-151-5/+20
| | | | using a / in a hardcoded fashion, leading to absolute paths where the caller expected relative ones
* All tests adjusted to work with the changed internal sha representationSebastian Thiel2010-06-281-3/+3
|
* index.reset is now partly implemented using python, but in fact it resorts ↵Sebastian Thiel2010-06-251-7/+0
| | | | to using git-read-tree to keep the stat information when merging one tree in. After all this is what needed to be implemented in python as well
* IndexFile.add: writing of the index file can now optionally be turned off. ↵Sebastian Thiel2010-06-241-1/+2
| | | | The default is to write the physical index, which is the behaviour you would expect
* Multiple partly critical bugfixes related to index handlingSebastian Thiel2010-06-241-1/+5
|
* fixed critical bug in traverse_trees_recursive, implemented IndexFile.new ↵Sebastian Thiel2010-06-231-1/+8
| | | | including simple test, it may be simple as the methods it uses are throroughly tested
* Initial frame for implementing read_tree using pure python. As git-read-tree ↵Sebastian Thiel2010-06-221-1/+5
| | | | | | | can do much more than we can ( and faster assumably ), the .new method is used to create new index instances from up to 3 trees. Implemented multi-tree traversal to facilitate building a stage list more efficiently ( although I am not sure whether it could be faster to use a dictionary together with some intensive lookup ), including test Added performance to learn how fast certain operations are, and whether one should be preferred over another
* index.write_tree: now uses MemoryDB, making tree handling more efficient as ↵Sebastian Thiel2010-06-221-1/+6
| | | | IO will only be done when required. A possible disadvantage though is that time is spent on compressing the trees, although only the raw data and their shas would theoretically be needed. On the other hand, compressing their data uses less memory. An optimal implementation would just sha the data, check for existance, and compress it to write it to the database right away. This would mean more specialized code though, introducing redundancy. If IStreams would know whether they contain compressed or uncompressed data, and if there was a method to get a sha from data, this would work nicely in the existing framework though
* Tree-Writing now works after fixing an off-by-one errorSebastian Thiel2010-06-221-7/+24
|
* index.write_tree: initial version implemented, although its not yet working ↵Sebastian Thiel2010-06-221-21/+25
| | | | | | | correctly, a test to explicitly compare the git version with the python implementation is still missing Tree and Index internally use 20 byte shas, converting them only as needed to reduce memory footprint and processing time objects: started own 'fun' module containing the most important tree functions, more are likely to be added soon
* index: put serialization methods into new 'fun' module, this makes the calls ↵Sebastian Thiel2010-06-211-6/+6
| | | | faster as it removes one level of indirection, and makes the main file smaller, improving maintainability
* index.add: now uses gitdb.store functionality instead of git-hash-file. The ↵Sebastian Thiel2010-06-211-545/+551
| | | | python version is about as fast, but could support multithreading using async
* Repo: Added comparison operators and hash operator including testSebastian Thiel2010-05-121-4/+8
| | | | Cmd: AutoInterrupt handles boundary cases more gracefully as it can be that the os module suddenly becomes None if the interpreter is going down
* index.add: added index path rewrite functionality, which allows to store a ↵Sebastian Thiel2010-05-101-0/+30
| | | | | | | different path in the index than the actual one on disk ( from which the object will be created ) Fixed bug the way newlines were handled, which hopefully fixes occasional hangs as well. It works fine with git 1.7.1 Most of the changes are due to the tab-space conversion - its weird once more as I thought it was all in spaces before ... .
* Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel2010-03-041-511/+511
|
* index: added move method including testSebastian Thiel2010-02-191-2/+31
| | | | test.helpers: temporary rw repository creators now set the working dir of the program, easing working with relative paths a lot
* index: Checkout exception now contains information about the reason of the ↵Sebastian Thiel2009-12-071-0/+1
| | | | failure as well, one per failed file
* repo: renamed directories to more descriptive identifiers and made them ↵Sebastian Thiel2009-12-031-7/+7
| | | | safer to use in case of bare repositories
* index: Added BlobFilter utility class to make filtering of blobs from the ↵Sebastian Thiel2009-11-301-0/+5
| | | | index easier
* ItemTraversal: Predicate and prune functions now provide depth information, ↵Sebastian Thiel2009-11-271-2/+2
| | | | allowing the callee to know more about its environment
* tree: added traversal method, adjusted testsSebastian Thiel2009-11-261-3/+8
| | | | Fixed critical bug in object code: IndexObjects now use their path as hashkey, not the data\!
* index.write_tree: fixed bug that would cause the written tree not to contain ↵Sebastian Thiel2009-11-251-1/+5
| | | | any of our changes entries as it would in fact write a possibly cached tree stored in our extension data.It was solved by simply ignoring that extension data when writing the index for tree creation. A test was added for this as well
* index.merge_tree function added including test.Sebastian Thiel2009-11-241-1/+51
| | | | index.write_tree may now use the missing_ok argument which writes trees faster and allows you to operate without objects to do a true index based merge
* index.checkout: improved handling of errors as the thrown exception contains ↵Sebastian Thiel2009-11-231-4/+14
| | | | | | exact information about the successfully checked out files as well as the failed ones Return value of the method is an iterator to all checked out files
* index.checkout: Now parsing stderror in the end to determine which files ↵Sebastian Thiel2009-11-231-4/+20
| | | | have not been updated as they where modified locally or did not exist. Test was improved to check for this new case.
* index.checkout: Added progress function and made adjustments to testSebastian Thiel2009-11-221-30/+34
|
* index.add: added progress function support and made sure progress is sent ↵Sebastian Thiel2009-11-201-7/+46
| | | | | | just in time This adds a dependency to a git update index fix - and I hope it will be put in in time ( including windows version )
* index: Added IndexEntry.from_base method including test in conjunction with ↵Sebastian Thiel2009-11-181-1/+14
| | | | | | symlinks. Added index.get_entries_key method to allow direct access to anyone willing to do so
* Index tests adopted to windows - especially the symlink test needed ↵Sebastian Thiel2009-11-061-2/+10
| | | | adjustment, but it works as expected even on systems that do not support symlinks
* ARGH: wb and rb is not the same as r and w on windows, hence reading of ↵Sebastian Thiel2009-11-051-3/+3
| | | | binary files went crazy as well as binary writing
* object: renamed id attribute to sha as it in fact is always being rewritten ↵Sebastian Thiel2009-11-031-1/+1
| | | | as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
* put _make_file helper method into TestBase classSebastian Thiel2009-10-271-13/+3
| | | | remote: prepared FetchInfo class to be returned by fetch and pull. About to implement tests
* index.add: Finished implemenation including through testsSebastian Thiel2009-10-261-1/+80
| | | | index.checkout: added simple method allowing to checkout files from the index, including simple test
* added head kwarg to reset and commit method, allowing to automatically ↵Sebastian Thiel2009-10-261-8/+31
| | | | change the head to the given commit, which makes the methods more versatile
* index.commit: implemented initial version, but in fact some more changes are ↵Sebastian Thiel2009-10-241-0/+12
| | | | required to have a nice API. Tests are not yet fully done either
* index.remove implemented including throrough testSebastian Thiel2009-10-231-2/+62
|
* Implemented index.reset method including testSebastian Thiel2009-10-231-1/+27
|
* Added frame for IndexFile add/remove/commit methods and respective test markersSebastian Thiel2009-10-231-0/+13
|
* Renamed Index to IndexFile, adjusted tests, it will only operate on physical ↵Sebastian Thiel2009-10-231-17/+13
| | | | files, not on streams, as Indices are not streamed by any git command ( at least not in raw format )
* Adjusted tests to deal with API changesSebastian Thiel2009-10-221-2/+2
|
* Index: Is now diffable and appears to properly implement diffing against ↵Sebastian Thiel2009-10-221-1/+34
| | | | | | | other items as well as the working tree Diff.Diffable: added callback allowing superclasses to preprocess diff arguments Diff.Diff: added eq, ne and hash methods, string methods would be nice
* default index writing now writes the index of the current repository in a ↵Sebastian Thiel2009-10-221-2/+8
| | | | fashion comparable to the native implementation
* Index now behaves more like the default index if no explicit stream is ↵Sebastian Thiel2009-10-221-1/+4
| | | | given. It will lazily read its data on first access
* Adjusted all remaining test suites to use the new TestBase class where ↵Sebastian Thiel2009-10-221-11/+7
| | | | appropriate
* Removed index test marker for custom commits as this boils down to a good ↵Sebastian Thiel2009-10-221-4/+2
| | | | way to add files to the index/remove them and make commits which are possibly customized with custom parents