summaryrefslogtreecommitdiff
path: root/git/test/test_repo.py
Commit message (Collapse)AuthorAgeFilesLines
* fix(test): put `test_commits` backSebastian Thiel2016-09-251-0/+1
| | | | Thanks to @yarikoptic for catching this one !
* fix(repo): make it serializable with pickleSebastian Thiel2016-09-111-1/+5
| | | | | | | It's entirely untested if this repo still does the right thing, but I'd think it does. Fixes #504
* Merge pull request #496 from haizaar/masterSebastian Thiel2016-08-021-0/+18
|\ | | | | is_dirty supports path. Fixes #482.
| * is_dirty supports path. Fixes #482.Zaar Hai2016-08-011-0/+18
| |
* | fix flake8 problemsBarry Scott2016-08-011-3/+3
| |
* | add test to detect the corrupt logBarry Scott2016-08-011-1/+12
| | | | | | | | - add a second line to commit messages with the "BAD MESSAGE" text - read in the log and confirm that the seond line is not in the log file
* | fix(blame): lazily fetch full commit messageSebastian Thiel2016-07-171-1/+1
|/ | | | | | | | | | That way, we will not only get the summary line contained in the blame, but fetch the full message. This is more costly than the previous implementation allowed it to be, but being less surprising/correct certainly is the preferred behaviour here. Fixes #485
* Need spaces in Emacs style encoding commentSteven Colby2016-05-181-1/+1
| | | | | Although it's hard to see, PEP-0263 does have ws delimiting the 'coding' string. This commit will fix the root cause of (at least) one bug: https://lists.fedoraproject.org/archives/list/eclipse-sig@lists.fedoraproject.org/thread/5XQ5JRHG6DPPMGRDU7TA2AO4EYS2H7AG/
* Return all available data from git-blameVincent Driessen2016-04-141-2/+9
| | | | | Returning this now to avoid having to change the function's return value structure later on if we want to emit more information.
* Add incremental blame supportVincent Driessen2016-04-131-0/+24
| | | | | | | | | | | | | | | This adds a sibling method to Repo's blame method: Repo.blame_incremental(rev, path, **kwargs) This can alternatively be called using: Repo.blame(rev, path, incremental=True) The main difference is that blame incremental is a bit more efficient and does not return the full file's contents, just the commits and the line number ranges. The parser is a bit more straight-forward and faster since the incremental output format is defined a little stricter.
* Fix testsVincent Driessen2016-04-071-3/+3
|
* ENH: skip test_is_ancestor on git versions < 1.8.0 not supporting git ↵Yaroslav Halchenko2016-02-141-0/+4
| | | | merge-base --is-ancestor
* chore(flake8): unnused importSebastian Thiel2016-02-071-1/+0
|
* fix(clone): call communicate if there is no progress handlerSebastian Thiel2016-02-071-1/+1
| | | | | | Previously, it could have happened that pipes ran full, deadlocking the operation Related to #72
* DOC: minor typosYaroslav Halchenko2016-01-081-1/+1
|
* fix(repo): fail loudly if worktrees are usedSebastian Thiel2015-08-291-1/+19
| | | | | | | | | | | | | | | As GitPython is in maintenance mode, there will be no new features. However, I believe it's good idea to explicitly state we do not support certain things if this is the case. Therefore, when worktrees are encountered, we will throw an specific exception to indicate that. The current implementation is hacky to speed up development, and increases the risk of failing due to false-positive worktree directories. Related to #344
* fix(repo): use GitCmdObjectDB by defaultSebastian Thiel2015-08-221-1/+1
| | | | | | This should fix resource leaking issues once and for all. Related #304
* Implement is_ancestorSandy Carter2015-07-211-0/+14
| | | | | Wrap `git merge-base --is-ancestor` into its own function because it acts as a boolean check unlike base `git merge-base call`
* fix(encoding): in untracked_files() and indexSebastian Thiel2015-07-201-13/+15
| | | | | | | | | | | | * untracked_files could, if there were spaces in the path returned, re-rencode the previously decoded unicode string thanks to a `decode("string_escape")` call. Now re-encode into utf-8 afterwards - added test to assure this works indeed * IndexFile.add() didn't handle unicode correctly and would write broken index files. The solution was to compute the path length after encoding it into utf-8 bytes, not before ... . Closes #320
* Bumped version to 0.3.6Sebastian Thiel2015-01-221-6/+1
| | | | | | Unfortunately, installation of a executable script has proven to be so difficult thanks setuptools gloriousness, which will force me to remove that feature
* Improved performance of rev-parse test.Sebastian Thiel2015-01-221-2/+9
| | | | | | Hoping to make this significantly faster on travis. Related to #245
* Fixed flake8 and a minor test regression.Sebastian Thiel2015-01-201-2/+2
| | | | | The latter happened as now BadName is thrown, instead of BadObject. Changes.rst was marked accordingly
* Implemented Submodule.rename()Sebastian Thiel2015-01-191-0/+2
| | | | | | A test verifies it's truly working. Related to #238
* Added 'path' keyword argument to Repo.archive().Sebastian Thiel2015-01-141-1/+1
| | | | | | | This allows sub-trees to be archived as well, and makes `.archive()` feature complete. Fixes #67
* Added `Repo.merge_base(...)` implementation, including test-case.Sebastian Thiel2015-01-131-1/+23
| | | | Fixes #169
* Added specific test for roughly checking configuration paths.Sebastian Thiel2015-01-121-0/+5
| | | | | | | For some reason, I didn't trust the existing one as it tests that code more indirectly. Related to #160
* Fixed test to actually use tilde and environment variables respectively.Sebastian Thiel2015-01-101-2/+6
| | | | Related to #83
* Repo.init() now supports paths with a '~' in it, or environment variables in ↵Sebastian Thiel2015-01-101-0/+10
| | | | | | general. Fixes #83
* Added test for complex blame revision query.Sebastian Thiel2015-01-091-0/+7
| | | | | It works as expected by me at least. Related to #71
* Added test to assure blame can deal with binary patches.Sebastian Thiel2015-01-091-6/+7
| | | | Fixes #74
* Improved empty-repo testSebastian Thiel2015-01-081-2/+5
| | | | Helps to clarify #55
* Improved handling of name-resolution, which will not mangle names anymore.Sebastian Thiel2015-01-081-1/+26
| | | | | | | | | Previously, an unresolvable ref name like HEAD would end up as HEX and was presented as BadObject error, even though that exception is for invalid shas only. Now BadName is thrown, which converts into a more useful error message. Improves #105
* And finally, PY3 support should be restored.Sebastian Thiel2015-01-081-1/+1
| | | | Forgot to fix the test, which used the same broken version_info condition
* Added test to verify blame commits can have multiple lines.Sebastian Thiel2015-01-081-2/+6
| | | | See #47
* Added Remote.exists() method, and test. Fixes #229Sebastian Thiel2015-01-081-1/+6
|
* Made improvements to assure test-cases don't leak file handlesSebastian Thiel2015-01-071-0/+17
| | | | | | | | At least leakage is considerably reduced. Additionally, a test-case was added which triggers failure if auto-disposal of resources wouldn't work. Fixes #60
* This should fix flake8 on py3Sebastian Thiel2015-01-071-1/+1
| | | | See #177
* test_repo worksSebastian Thiel2015-01-061-10/+18
|
* Fixed io types to make tests work on PY2 once again.py3Sebastian Thiel2015-01-051-7/+7
| | | | Now it's about going through PY3 issues
* Dum brute force conversion of all types.Sebastian Thiel2015-01-041-1/+2
| | | | | | However, StringIO really is ByteIO in most cases, and py2.7 should run but doesn't. This should be made work first.
* initial set of adjustments to make (most) imports work.Sebastian Thiel2015-01-041-1/+1
| | | | More to come, especially when it's about strings
* Removed 'from X import *' whereever possibleSebastian Thiel2015-01-041-9/+24
|
* Bumped version, updated changelog, reduced code smellSebastian Thiel2015-01-041-7/+6
| | | | | There is more work to do though, as many imports are still incorrect. Also, there are still print statements
* Let's hope travis works nowSebastian Thiel2015-01-041-2/+0
|
* Intermediate debug commit for travis ... do not useSebastian Thiel2015-01-041-2/+2
|
* Somemore debugging for rev-parse issueSebastian Thiel2015-01-041-3/+5
|
* Fixed all remaining non-performance testsSebastian Thiel2015-01-031-7/+7
| | | | | | | * travis configuration adjusted to hopefully work better than before Performance traversal still fails when using git-python as standard repository. It naturally wants a larger one. On travis these tests are skipped though.
* Applied autopep8Sebastian Thiel2014-11-191-7/+9
| | | | | Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
* Merge branch 'feature/0.3/git-file-support' of ↵Sebastian Thiel2014-11-191-1/+17
|\ | | | | | | | | | | | | | | | | | | https://github.com/igetgames/GitPython into igetgames-feature/0.3/git-file-support Using the previous implementation of read_gitfile, but added the previously missing test from this PR. Conflicts: git/repo/base.py git/test/test_repo.py
| * Add tests for .git-file.Marcus R. Brown2013-01-111-0/+17
| |