summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
Commit message (Collapse)AuthorAgeFilesLines
* Repo: Added comparison operators and hash operator including testSebastian Thiel2010-05-121-1/+6
| | | | Cmd: AutoInterrupt handles boundary cases more gracefully as it can be that the os module suddenly becomes None if the interpreter is going down
* repo: added test with some basic assertions for empty repositories theseSebastian Thiel2010-05-101-1/+33
| | | | | | | | repo.is_dirty: Will not fail on empty repo ( anymore ) index.entries: will just be empty if the repository is empty refs: added to_full_path method which can be used to create fully synthetic instances of Reference types, added a test for it Converted all touched files to spaces, which is why git reports so many changed files. Actually I was thinking every file would use spaces, but apparently not
* Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel2010-03-041-254/+254
|
* IndexFile: unmerged_blobs lists are now sortedSebastian Thiel2010-02-131-11/+28
| | | | Repo.init: fixed incorrect use of the path which was to optionally specify where to initialize the repository. Update test as well
* repo: renamed directories to more descriptive identifiers and made them ↵Sebastian Thiel2009-12-031-6/+6
| | | | safer to use in case of bare repositories
* repo: fixed incorrect path handling thta could lead to issues if the ↵Sebastian Thiel2009-12-031-0/+7
| | | | repository was initialized with a .git repository, although it was not bare actually
* fixed test_repo to work on windowsSebastian Thiel2009-11-051-6/+6
| | | | cmd: taskkill now pipes stderror to nul as well
* Improved cmd error handling in case an invalid revision is specified for an ↵Sebastian Thiel2009-11-041-0/+8
| | | | | | object repo.tree: improved to be less restricting
* object: renamed id attribute to sha as it in fact is always being rewritten ↵Sebastian Thiel2009-11-031-5/+5
| | | | as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
* repo: added create_* and delete_* methods for refs ( head, tag, remote ) as ↵Sebastian Thiel2009-11-031-0/+12
| | | | a convenient shortcut to using the classes manually
* repo.is_dirty: is a method now - the property based interface didn't allow ↵Sebastian Thiel2009-11-031-3/+3
| | | | all parameters to be used. The test would not test everything either, and I would consider this a bug that slipped through
* Added repo.index property including simple test, and additional ideas in the ↵Sebastian Thiel2009-10-231-1/+5
| | | | TODO list
* Adjusted tests to deal with API changesSebastian Thiel2009-10-221-8/+2
|
* Adjusted all remaining test suites to use the new TestBase class where ↵Sebastian Thiel2009-10-221-46/+42
| | | | appropriate
* Git.cmd: removed with_raw_output optionSebastian Thiel2009-10-221-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
* repo.alternates test cheked for correctness and bugfixed - totally mocked ↵Sebastian Thiel2009-10-201-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 itSebastian Thiel2009-10-201-4/+9
|
* Moved specialized methods like dashify, touch and is_git_dir to module to ↵Sebastian Thiel2009-10-201-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 testSebastian Thiel2009-10-201-12/+10
|
* Implemneted IterableLists for refs, commits and remote objects including ↵Sebastian Thiel2009-10-191-0/+3
| | | | simple tests
* commit.count: is an instance method nowSebastian Thiel2009-10-191-0/+13
| | | | | repo: added head , tag and iter_trees methods for completeness changes: headlines now sorted chronologically
* added additional testing for the configuration, concurrent access and config ↵Sebastian Thiel2009-10-191-2/+7
| | | | reading, all tests work
* Added frame for configuration reader involving a meta class, decorators and ↵Sebastian Thiel2009-10-181-3/+15
| | | | tests - most of which still has to be filled out
* Removed a few diff-related test cases that fail now as the respective method ↵Sebastian Thiel2009-10-171-35/+1
| | | | 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 Thiel2009-10-161-0/+3
| | | | | | 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-161-0/+25
|
* Improved archive function by allowing it to directly write to an output ↵Sebastian Thiel2009-10-151-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 Thiel2009-10-151-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 Thiel2009-10-151-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 parentsSebastian Thiel2009-10-151-3/+1
| | | | | 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 Thiel2009-10-151-9/+0
| | | | 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 Thiel2009-10-151-5/+4
| | | | | | memory time imports cleaned up and mostly removed as they were not required (anymore)
* tree: now reads tress directly by parsing the binary data, allowing it to ↵Sebastian Thiel2009-10-141-12/+1
| | | | safe possibly hundreds of command calls
* test_blob: removed many redundant tests that would fail now as the mock ↵Sebastian Thiel2009-10-141-10/+0
| | | | | | 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
* cmd: added option to return the process directly, allowing to read the ↵Sebastian Thiel2009-10-141-20/+2
| | | | | | | 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 )
* tree: now behaves like a list with string indexing functionality - using a ↵Sebastian Thiel2009-10-121-3/+3
| | | | | | dict as cache is a problem as the tree is ordered, added blobs, trees and traverse method repo: remove blob function as blobs are created directly or iterated - primitve types should not clutter the repo interface
* repo.active_branch now returns a Head object, not a stringSebastian Thiel2009-10-121-3/+2
|
* Reorganized package structure and cleaned up importsSebastian Thiel2009-10-121-0/+27
|
* Added remaining tests for new base classes and removed some methods whose ↵Sebastian Thiel2009-10-111-1/+1
| | | | existance was doubtful or unsafe
* Fixed remaining tests to deal with the changesSebastian Thiel2009-10-111-1/+1
| | | | mode is now generally an int compatible to the stat module
* commit: fixed failing commit tests as the mocked git command would always ↵Sebastian Thiel2009-10-111-10/+5
| | | | | | return the same thing which does not work anymore - re-implemented it in a more dynamic manner, but in the end tests will have to be revised anyway Added slots to Diff and Stats type respectively
* converted all spaces to tabs ( 4 spaces = 1 tab ) just to allow me and my ↵Sebastian Thiel2009-10-111-201/+201
| | | | editor to work with the files properly. Can convert it back for releaes
* Merge branch 'doc_enhancements' into fixesSebastian Thiel2009-10-081-2/+2
|\
| * improved repo documentationSebastian Thiel2009-10-081-2/+2
| |
* | repo_tests: fixed duplicate test-method name which would redefine the ↵Sebastian Thiel2009-10-081-69/+3
| | | | | | | | | | | | | | previous one which never ran removed old tests which were commented out test_achive* method didn't actually call the functions, but only derefenced them
* | Fix unittests for Mock 0.5.0Paul J. Davis2009-09-141-4/+4
|/
* Lots of spring cleaning and added in Sphinx documentation.Michael Trier2009-01-241-1/+1
|
* Make message the full message and add a summary propertyPaul Sowden2008-12-151-1/+1
| | | | | Adds a summary property to the Commit object which returns just the first line of the commit message and makes the message property contain the entire commit message (previously the message property only contained the first line of the commit message). This breaks backwards compatibility a little in that the message property now contains a different value but previously there was no way to access the entire commit message from the Commit object and this is in keeping with git vocabulary, where message generally refers to the entire commit message. (cherry picked from commit 9d2962d8306c894d4cca55bab551677b92d96352)
* add a path parameter to most commit methodsPaul Sowden2008-12-151-4/+4
| | | | | 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)
* remove ambiguity between paths and treeishsPaul Sowden2008-12-151-6/+6
| | | | | 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)