diff --git a/.appveyor.yml b/.appveyor.yml index 8eeca501c..0a86c1a75 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,3 +1,4 @@ +# UNUSED, only for reference. If windows testing is needed, please add that to github actions # CI on Windows via appveyor environment: GIT_DAEMON_PATH: "C:\\Program Files\\Git\\mingw64\\libexec\\git-core" @@ -5,35 +6,33 @@ environment: CYGWIN64_GIT_PATH: "C:\\cygwin64\\bin;%GIT_DAEMON_PATH%" matrix: - ## MINGW - # - - PYTHON: "C:\\Python27" - PYTHON_VERSION: "2.7" - GIT_PATH: "%GIT_DAEMON_PATH%" - PYTHON: "C:\\Python34-x64" PYTHON_VERSION: "3.4" GIT_PATH: "%GIT_DAEMON_PATH%" - PYTHON: "C:\\Python35-x64" PYTHON_VERSION: "3.5" GIT_PATH: "%GIT_DAEMON_PATH%" + - PYTHON: "C:\\Python36-x64" + PYTHON_VERSION: "3.6" + GIT_PATH: "%GIT_DAEMON_PATH%" + - PYTHON: "C:\\Python37-x64" + PYTHON_VERSION: "3.7" + GIT_PATH: "%GIT_DAEMON_PATH%" - PYTHON: "C:\\Miniconda35-x64" PYTHON_VERSION: "3.5" IS_CONDA: "yes" + MAYFAIL: "yes" GIT_PATH: "%GIT_DAEMON_PATH%" - ## Cygwin - # - - PYTHON: "C:\\Miniconda-x64" - PYTHON_VERSION: "2.7" - IS_CONDA: "yes" - IS_CYGWIN: "yes" - GIT_PATH: "%CYGWIN_GIT_PATH%" - PYTHON: "C:\\Python35-x64" PYTHON_VERSION: "3.5" - GIT_PATH: "%CYGWIN64_GIT_PATH%" IS_CYGWIN: "yes" + MAYFAIL: "yes" + GIT_PATH: "%CYGWIN64_GIT_PATH%" - +matrix: + allow_failures: + - MAYFAIL: "yes" install: - set PATH=%PYTHON%;%PYTHON%\Scripts;%GIT_PATH%;%PATH% @@ -51,6 +50,7 @@ install: conda info -a & conda install --yes --quiet pip ) + - pip install -r requirements.txt - pip install -r test-requirements.txt - pip install codecov diff --git a/.deepsource.toml b/.deepsource.toml new file mode 100644 index 000000000..d55288b87 --- /dev/null +++ b/.deepsource.toml @@ -0,0 +1,15 @@ +version = 1 + +test_patterns = [ + 'test/**/test_*.py' +] + +exclude_patterns = [ + 'doc/**', + 'etc/sublime-text' +] + +[[analyzers]] +name = 'python' +enabled = true +runtime_version = '3.x.x' diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..b59962d21 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git/ +.tox/ diff --git a/.gitattributes b/.gitattributes index 872b8eb4f..6d2618f2f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,2 @@ -git/test/fixtures/* eol=lf +test/fixtures/* eol=lf init-tests-after-clone.sh diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml new file mode 100644 index 000000000..eb5c894e9 --- /dev/null +++ b/.github/workflows/pythonpackage.yml @@ -0,0 +1,59 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python package + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.5, 3.6, 3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 9999 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies and prepare tests + run: | + set -x + python -m pip install --upgrade pip + python --version; git --version + git submodule update --init --recursive + git fetch --tags + + pip install -r test-requirements.txt + TRAVIS=yes ./init-tests-after-clone.sh + + git config --global user.email "travis@ci.com" + git config --global user.name "Travis Runner" + # If we rewrite the user's config by accident, we will mess it up + # and cause subsequent tests to fail + cat test/fixtures/.gitconfig >> ~/.gitconfig + - name: Lint with flake8 + run: | + set -x + pip install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 --ignore=W293,E265,E266,W503,W504,E731 --count --show-source --statistics + - name: Test with nose + run: | + set -x + pip install nose + nosetests -v --with-coverage + - name: Documentation + run: | + set -x + pip install -r doc/requirements.txt + make -C doc html diff --git a/.gitignore b/.gitignore index d35cddebd..db7c881cd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.swp *~ .venv/ +venv/ /*.egg-info /lib/GitPython.egg-info cover/ @@ -14,3 +15,9 @@ nbproject .DS_Store /*egg-info /.tox +/.vscode/ +.idea/ +.cache/ +.mypy_cache/ +.pytest_cache/ +monkeytype.sqlite3 diff --git a/.gitmodules b/.gitmodules index 4a3f37c25..251eeeec4 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "gitdb"] - url = https://github.com/gitpython-developers/gitdb.git - path = git/ext/gitdb +[submodule "gitdb"] + url = https://github.com/gitpython-developers/gitdb.git + path = git/ext/gitdb diff --git a/.travis.yml b/.travis.yml index 52223bdb9..1fbb1ddb8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,15 @@ +# UNUSED, only for reference. If adjustments are needed, please see github actions language: python python: - - "2.7" - "3.4" - "3.5" - "3.6" - - "3.6-dev" - - "3.7-dev" + - "3.7" + - "3.8" - "nightly" # - "pypy" - won't work as smmap doesn't work (see gitdb/.travis.yml for details) matrix: allow_failures: - - python: "3.6-dev" - - python: "3.7-dev" - python: "nightly" git: # a higher depth is needed for most of the tests - must be high enough to not actually be shallow @@ -22,7 +20,8 @@ install: - git submodule update --init --recursive - git fetch --tags - pip install -r test-requirements.txt - - pip install codecov sphinx + - pip install -r doc/requirements.txt + - pip install codecov # generate some reflog as git-python tests need it (in master) - ./init-tests-after-clone.sh @@ -37,9 +36,9 @@ script: # Make sure we limit open handles to see if we are leaking them - ulimit -n 128 - ulimit -n - - nosetests -v --with-coverage - - if [ "$TRAVIS_PYTHON_VERSION" == '3.4' ]; then flake8; fi + - coverage run --omit="test/*" -m unittest --buffer + - coverage report - if [ "$TRAVIS_PYTHON_VERSION" == '3.5' ]; then cd doc && make html; fi - - + - if [ "$TRAVIS_PYTHON_VERSION" == '3.6' ]; then flake8 --ignore=W293,E265,E266,W503,W504,E731; fi after_success: - codecov diff --git a/AUTHORS b/AUTHORS index 9c3a52c04..7b21b2b26 100644 --- a/AUTHORS +++ b/AUTHORS @@ -27,5 +27,20 @@ Contributors are: -Charles Bouchard-Légaré -Yaroslav Halchenko -Tim Swast - +-William Luc Ritchie +-David Host +-A. Jesse Jiryu Davis +-Steven Whitman +-Stefan Stancu +-César Izurieta +-Arthur Milchior +-Anil Khatri +-JJ Graham +-Ben Thayer +-Dries Kennes +-Pratik Anurag +-Harmon +-Liam Beguin +-Ram Rachum +-Alba Mendez Portions derived from other open source works and are clearly marked. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3279a6722..4217cbaf9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,10 @@ ### How to contribute -* [fork this project](https://github.com/gitpython-developers/GitPython/fork) on GitHub -* For setting up the environment to run the self tests, look at `.travis.yml`. -* Add yourself to AUTHORS.md and write your patch. **Write a test that fails unless your patch is present.** -* Initiate a pull request +The following is a short step-by-step rundown of what one typically would do to contribute. + +* [fork this project](https://github.com/gitpython-developers/GitPython/fork) on GitHub. +* For setting up the environment to run the self tests, please look at `.travis.yml`. +* Please try to **write a test that fails unless the contribution is present.** +* Feel free to add yourself to AUTHORS file. +* Create a pull request. diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..f2d7e22f5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,84 @@ +# +# Contributed by: James E. King III (@jeking3) +# +# This Dockerfile creates an Ubuntu Xenial build environment +# that can run the same test suite as Travis CI. +# + +FROM ubuntu:xenial + +# Metadata +LABEL maintainer="jking@apache.org" +LABEL description="CI environment for testing GitPython" + +ENV CONTAINER_USER=user +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + add-apt-key \ + apt \ + apt-transport-https \ + apt-utils \ + ca-certificates \ + curl \ + git \ + net-tools \ + openssh-client \ + sudo \ + vim \ + wget + +RUN add-apt-key -v 6A755776 -k keyserver.ubuntu.com && \ + add-apt-key -v E1DF1F24 -k keyserver.ubuntu.com && \ + echo "deb http://ppa.launchpad.net/git-core/ppa/ubuntu xenial main" >> /etc/apt/sources.list && \ + echo "deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial main" >> /etc/apt/sources.list && \ + apt-get update && \ + apt-get install -y --install-recommends git python2.7 python3.4 python3.5 python3.6 python3.7 && \ + update-alternatives --install /usr/bin/python3 python3 /usr/bin/python2.7 27 && \ + update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.4 34 && \ + update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 35 && \ + update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 36 && \ + update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 37 + +RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ + python3 get-pip.py && \ + pip3 install tox + +# Clean up +RUN rm -rf /var/cache/apt/* && \ + rm -rf /var/lib/apt/lists/* && \ + rm -rf /tmp/* && \ + rm -rf /var/tmp/* + +################################################################# +# Build as a regular user +# Credit: https://github.com/delcypher/docker-ubuntu-cxx-dev/blob/master/Dockerfile +# License: None specified at time of import +# Add non-root user for container but give it sudo access. +# Password is the same as the username +RUN useradd -m ${CONTAINER_USER} && \ + echo ${CONTAINER_USER}:${CONTAINER_USER} | chpasswd && \ + echo "${CONTAINER_USER} ALL=(root) ALL" >> /etc/sudoers +RUN chsh --shell /bin/bash ${CONTAINER_USER} +USER ${CONTAINER_USER} +################################################################# + +# The test suite will not tolerate running against a branch that isn't "master", so +# check out the project to a well-known location that can be used by the test suite. +# This has the added benefit of protecting the local repo fed into the container +# as a volume from getting destroyed by a bug exposed by the test suite. :) +ENV TRAVIS=ON +RUN git clone --recursive https://github.com/gitpython-developers/GitPython.git /home/${CONTAINER_USER}/testrepo && \ + cd /home/${CONTAINER_USER}/testrepo && \ + ./init-tests-after-clone.sh +ENV GIT_PYTHON_TEST_GIT_REPO_BASE=/home/${CONTAINER_USER}/testrepo +ENV TRAVIS= + +# Ensure any local pip installations get on the path +ENV PATH=/home/${CONTAINER_USER}/.local/bin:${PATH} + +# Set the global default git user to be someone non-descript +RUN git config --global user.email ci@gitpython.org && \ + git config --global user.name "GitPython CI User" + diff --git a/MANIFEST.in b/MANIFEST.in index 15ac959e2..5fd771db3 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,12 +2,11 @@ include VERSION include LICENSE include CHANGES include AUTHORS -include README +include CONTRIBUTING.md +include README.md include requirements.txt recursive-include doc * - -graft git/test/fixtures -graft git/test/performance +recursive-exclude test * global-exclude __pycache__ *.pyc diff --git a/Makefile b/Makefile index 648b8595f..709813ff2 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ +.PHONY: all clean release force_release docker-build test nose-pdb + all: @grep -Ee '^[a-z].*:' Makefile | cut -d: -f1 | grep -vF all clean: - rm -rf build/ dist/ + rm -rf build/ dist/ .eggs/ .tox/ release: clean # Check if latest tag is the current head we're releasing @@ -15,4 +17,18 @@ release: clean force_release: clean git push --tags origin master python3 setup.py sdist bdist_wheel - twine upload -s -i byronimo@gmail.com dist/* + twine upload -s -i 27C50E7F590947D7273A741E85194C08421980C9 dist/* + +docker-build: + docker build --quiet -t gitpython:xenial -f Dockerfile . + +test: docker-build + # NOTE!!! + # NOTE!!! If you are not running from master or have local changes then tests will fail + # NOTE!!! + docker run --rm -v ${CURDIR}:/src -w /src -t gitpython:xenial tox + +nose-pdb: docker-build + # run tests under nose and break on error or failure into python debugger + # HINT: set PYVER to "pyXX" to change from the default of py37 to pyXX for nose tests + docker run --rm --env PYVER=${PYVER} -v ${CURDIR}:/src -w /src -it gitpython:xenial /bin/bash dockernose.sh diff --git a/README.md b/README.md index 5313f91fb..0d0edeb43 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,18 @@ +## [Gitoxide](https://github.com/Byron/gitoxide): A peek into the future… + +I started working on GitPython in 2009, back in the days when Python was 'my thing' and I had great plans with it. +Of course, back in the days, I didn't really know what I was doing and this shows in many places. Somewhat similar to +Python this happens to be 'good enough', but at the same time is deeply flawed and broken beyond repair. + +By now, GitPython is widely used and I am sure there is a good reason for that, it's something to be proud of and happy about. +The community is maintaining the software and is keeping it relevant for which I am absolutely grateful. For the time to come I am happy to continue maintaining GitPython, remaining hopeful that one day it won't be needed anymore. + +More than 15 years after my first meeting with 'git' I am still in excited about it, and am happy to finally have the tools and +probably the skills to scratch that itch of mine: implement `git` in a way that makes tool creation a piece of cake for most. + +If you like the idea and want to learn more, please head over to [gitoxide](https://github.com/Byron/gitoxide), an +implementation of 'git' in [Rust](https://www.rust-lang.org). + ## GitPython GitPython is a python library used to interact with git repositories, high-level like git-porcelain, @@ -19,7 +34,7 @@ If it is not in your `PATH`, you can help GitPython find it by setting the `GIT_PYTHON_GIT_EXECUTABLE=` environment variable. * Git (1.7.x or newer) -* Python 2.7 to 3.6. +* Python >= 3.5 The list of dependencies are listed in `./requirements.txt` and `./test-requirements.txt`. The installer takes care of installing them for you. @@ -64,9 +79,7 @@ separate process which can be dropped periodically. #### Windows support -For *Windows*, we do regularly test it on [Appveyor CI](https://www.appveyor.com/) -but not all test-cases pass - you may help improve them by exploring -[Issue #525](https://github.com/gitpython-developers/GitPython/issues/525). +See [Issue #525](https://github.com/gitpython-developers/GitPython/issues/525). ### RUNNING TESTS @@ -89,7 +102,7 @@ Then run: tox -For more fine-grained control, you can use `nose`. +For more fine-grained control, you can use `unittest`. ### Contributions @@ -110,12 +123,13 @@ Please have a look at the [contributions file][contributing]. ### How to make a new release -* Update/verify the version in the `VERSION` file -* Update/verify that the changelog has been updated +* Update/verify the **version** in the `VERSION` file +* Update/verify that the `doc/source/changes.rst` changelog file was updated * Commit everything * Run `git tag -s ` to tag the version in Git * Run `make release` -* Finally, set the upcoming version in the `VERSION` file, usually be +* Close the milestone mentioned in the _changelog_ and create a new one. _Do not reuse milestones by renaming them_. +* set the upcoming version in the `VERSION` file, usually be incrementing the patch level, and possibly by appending `-dev`. Probably you want to `git push` once more. @@ -128,18 +142,18 @@ This script shows how to verify the tarball was indeed created by the authors of this project: ``` -curl https://pypi.python.org/packages/5b/38/0433c06feebbfbb51d644129dbe334031c33d55af0524326266f847ae907/GitPython-2.1.8-py2.py3-none-any.whl#md5=6b73ae86ee2dbab6da8652b2d875013a > gitpython.whl -curl https://pypi.python.org/packages/5b/38/0433c06feebbfbb51d644129dbe334031c33d55af0524326266f847ae907/GitPython-2.1.8-py2.py3-none-any.whl.asc > gitpython-signature.asc +curl https://files.pythonhosted.org/packages/09/bc/ae32e07e89cc25b9e5c793d19a1e5454d30a8e37d95040991160f942519e/GitPython-3.1.8-py3-none-any.whl > gitpython.whl +curl https://files.pythonhosted.org/packages/09/bc/ae32e07e89cc25b9e5c793d19a1e5454d30a8e37d95040991160f942519e/GitPython-3.1.8-py3-none-any.whl.asc > gitpython-signature.asc gpg --verify gitpython-signature.asc gitpython.whl ``` which outputs ``` -gpg: Signature made Mon Dec 11 17:34:17 2017 CET -gpg: using RSA key C3BC52BD76E2C23BAC6EC06A665F99FA9D99966C -gpg: issuer "byronimo@gmail.com" -gpg: Good signature from "Sebastian Thiel (I do trust in Rust!) " [ultimate] +gpg: Signature made Fr 4 Sep 10:04:50 2020 CST +gpg: using RSA key 27C50E7F590947D7273A741E85194C08421980C9 +gpg: Good signature from "Sebastian Thiel (YubiKey USB-C) " [ultimate] +gpg: aka "Sebastian Thiel (In Rust I trust) " [ultimate] ``` You can verify that the keyid indeed matches the release-signature key provided in this @@ -159,7 +173,7 @@ If you would like to trust it permanently, you can import and sign it: ``` gpg --import ./release-verification-key.asc -gpg --edit-key 88710E60 +gpg --edit-key 4C08421980C9 > sign > save @@ -178,6 +192,8 @@ gpg --edit-key 88710E60 * [PyJFuzz](https://github.com/mseclab/PyJFuzz) * [Loki](https://github.com/Neo23x0/Loki) * [Omniwallet](https://github.com/OmniLayer/omniwallet) +* [GitViper](https://github.com/BeayemX/GitViper) +* [Git Gud](https://github.com/bthayer2365/git-gud) ### LICENSE @@ -185,18 +201,16 @@ New BSD License. See the LICENSE file. ### DEVELOPMENT STATUS -[![codecov](https://codecov.io/gh/gitpython-developers/GitPython/branch/master/graph/badge.svg)](https://codecov.io/gh/gitpython-developers/GitPython) -[![Build Status](https://travis-ci.org/gitpython-developers/GitPython.svg)](https://travis-ci.org/gitpython-developers/GitPython) -[![Build status](https://ci.appveyor.com/api/projects/status/0f3pi3c00hajlrsd/branch/master?svg=true&passingText=windows%20OK&failingText=windows%20failed)](https://ci.appveyor.com/project/Byron/gitpython/branch/master) -[![Code Climate](https://codeclimate.com/github/gitpython-developers/GitPython/badges/gpa.svg)](https://codeclimate.com/github/gitpython-developers/GitPython) +![Python package](https://github.com/gitpython-developers/GitPython/workflows/Python%20package/badge.svg) [![Documentation Status](https://readthedocs.org/projects/gitpython/badge/?version=stable)](https://readthedocs.org/projects/gitpython/?badge=stable) -[![Stories in Ready](https://badge.waffle.io/gitpython-developers/GitPython.png?label=ready&title=Ready)](https://waffle.io/gitpython-developers/GitPython) -[![Throughput Graph](https://graphs.waffle.io/gitpython-developers/GitPython/throughput.svg)](https://waffle.io/gitpython-developers/GitPython/metrics/throughput) +[![Packaging status](https://repology.org/badge/tiny-repos/python:gitpython.svg)](https://repology.org/metapackage/python:gitpython/versions) + +This project is in **maintenance mode**, which means that -Now that there seems to be a massive user base, this should be motivation enough to let git-python -return to a proper state, which means +* …there will be no feature development, unless these are contributed +* …there will be no bug fixes, unless they are relevant to the safety of users, or contributed +* …issues will be responded to with waiting times of up to a month -* no open pull requests -* no open issues describing bugs +The project is open to contributions of all kinds, as well as new maintainers. [contributing]: https://github.com/gitpython-developers/GitPython/blob/master/CONTRIBUTING.md diff --git a/TODO b/TODO deleted file mode 100644 index 2643676ce..000000000 --- a/TODO +++ /dev/null @@ -1,7 +0,0 @@ -For a list of tickets, please visit -http://byronimo.lighthouseapp.com/projects/51787-gitpython/overview - - - - - diff --git a/VERSION b/VERSION index a39c0b788..2a399f7d1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.11 +3.1.14 diff --git a/doc/Makefile b/doc/Makefile index 39fe377f9..ef2d60e5f 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -2,7 +2,7 @@ # # You can set these variables from the command line. -SPHINXOPTS = +SPHINXOPTS = -W SPHINXBUILD = sphinx-build PAPER = diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 000000000..98e5c06a0 --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1,2 @@ +sphinx<2.0 +sphinx_rtd_theme diff --git a/doc/source/changes.rst b/doc/source/changes.rst index 32e58c7f3..93f65a2f7 100644 --- a/doc/source/changes.rst +++ b/doc/source/changes.rst @@ -2,6 +2,254 @@ Changelog ========= +3.1.15 (UNRELEASED) +=================== + +* add deprectation warning for python 3.5 + +3.1.14 +====== + +* git.Commit objects now have a ``replace`` method that will return a + copy of the commit with modified attributes. +* Add python 3.9 support +* Drop python 3.4 support + +3.1.13 +====== + +See the following for details: +https://github.com/gitpython-developers/gitpython/milestone/45?closed=1 + +3.1.12 +====== + +See the following for details: +https://github.com/gitpython-developers/gitpython/milestone/44?closed=1 + +3.1.11 +====== + +Fixes regression of 3.1.10. + +See the following for details: +https://github.com/gitpython-developers/gitpython/milestone/43?closed=1 + +3.1.10 +====== + +See the following for details: +https://github.com/gitpython-developers/gitpython/milestone/42?closed=1 + + +3.1.9 +===== + +See the following for details: +https://github.com/gitpython-developers/gitpython/milestone/41?closed=1 + + +3.1.8 +===== + +* support for 'includeIf' in git configuration files +* tests are now excluded from the package, making it conisderably smaller + + +See the following for more details: +https://github.com/gitpython-developers/gitpython/milestone/40?closed=1 + + +3.1.7 +===== + +* Fix tutorial examples, which disappeared in 3.1.6 due to a missed path change. + +3.1.6 +===== + +* Greatly reduced package size, see https://github.com/gitpython-developers/GitPython/pull/1031 + +3.1.5 +===== + +* rollback: package size was reduced significantly not placing tests into the package anymore. + See https://github.com/gitpython-developers/GitPython/issues/1030 + +3.1.4 +===== + +* all exceptions now keep track of their cause +* package size was reduced significantly not placing tests into the package anymore. + +See the following for details: +https://github.com/gitpython-developers/gitpython/milestone/39?closed=1 + +3.1.3 +===== + +See the following for details: +https://github.com/gitpython-developers/gitpython/milestone/38?closed=1 + +3.1.2 +===== + +* Re-release of 3.1.1, with known signature + +See the following for details: +https://github.com/gitpython-developers/gitpython/milestone/37?closed=1 + + +3.1.1 +===== + +* support for PyOxidizer, which previously failed due to usage of `__file__`. + +See the following for details: +https://github.com/gitpython-developers/gitpython/milestone/36?closed=1 + + +3.1.0 +===== + +* Switched back to using gitdb package as requirement + (`gitdb#59 `_) + +3.0.9 +===== + +* Restricted GitDB (gitdb2) version requirement to < 4 +* Removed old nose library from test requirements + +Bugfixes +-------- + +* Changed to use UTF-8 instead of default encoding when getting information about a symbolic reference + (`#774 `_) +* Fixed decoding of tag object message so as to replace invalid bytes + (`#943 `_) + +3.0.8 +===== + +* Added support for Python 3.8 +* Bumped GitDB (gitdb2) version requirement to > 3 + +Bugfixes +-------- + +* Fixed Repo.__repr__ when subclassed + (`#968 `_) +* Removed compatibility shims for Python < 3.4 and old mock library +* Replaced usage of deprecated unittest aliases and Logger.warn +* Removed old, no longer used assert methods +* Replaced usage of nose assert methods with unittest + +3.0.7 +===== + +Properly signed re-release of v3.0.6 with new signature +(See `#980 `_) + +3.0.6 +===== + +| Note: There was an issue that caused this version to be released to PyPI without a signature +| See the changelog for v3.0.7 and `#980 `_ + +Bugfixes +-------- + +* Fixed warning for usage of environment variables for paths containing ``$`` or ``%`` + (`#832 `_, + `#961 `_) +* Added support for parsing Git internal date format (@ ) + (`#965 `_) +* Removed Python 2 and < 3.3 compatibility shims + (`#979 `_) +* Fixed GitDB (gitdb2) requirement version specifier formatting in requirements.txt + (`#979 `_) + +3.0.5 - Bugfixes +============================================= + +see the following for details: +https://github.com/gitpython-developers/gitpython/milestone/32?closed=1 + +3.0.4 - Bugfixes +============================================= + +see the following for details: +https://github.com/gitpython-developers/gitpython/milestone/31?closed=1 + +3.0.3 - Bugfixes +============================================= + +see the following for (most) details: +https://github.com/gitpython-developers/gitpython/milestone/30?closed=1 + +3.0.2 - Bugfixes +============================================= + +* fixes an issue with installation + +3.0.1 - Bugfixes and performance improvements +============================================= + +* Fix a `performance regression `__ which could make certain workloads 50% slower +* Add `currently_rebasing_on` method on `Repo`, see `the PR `__ +* Fix incorrect `requirements.txt` which could lead to broken installations, see this `issue `__ for details. + +3.0.0 - Remove Python 2 support +=============================== + +Motivation for this is a patch which improves unicode handling when dealing with filesystem paths. +Python 2 compatibility was introduced to deal with differences, and I thought it would be a good idea +to 'just' drop support right now, mere 5 months away from the official maintenance stop of python 2.7. + +The underlying motivation clearly is my anger when thinking python and unicode, which was a hassle from the +start, at least in a codebase as old as GitPython, which totally doesn't handle encodings correctly in many cases. + +Having migrated to using `Rust` exclusively for tooling, I still see that correct handling of encodings isn't entirely +trivial, but at least `Rust` makes clear what has to be done at compile time, allowing to write software that is pretty +much guaranteed to work once it compiles. + +Again, my apologies if removing Python 2 support caused inconveniences, please see release 2.1.13 which returns it. + +see the following for (most) details: +https://github.com/gitpython-developers/gitpython/milestone/27?closed=1 + +or run have a look at the difference between tags v2.1.12 and v3.0.0: +https://github.com/gitpython-developers/GitPython/compare/2.1.12...3.0.0. + +2.1.15 +====== + +* Fixed GitDB (gitdb2) requirement version specifier formatting in requirements.txt + (Backported from `#979 `_) +* Restricted GitDB (gitdb2) version requirement to < 3 + (`#897 `_) + +2.1.14 +====== + +* Fixed handling of 0 when transforming kwargs into Git command arguments + (Backported from `#899 `_) + +2.1.13 - Bring back Python 2.7 support +====================================== + +My apologies for any inconvenience this may have caused. Following semver, backward incompatible changes +will be introduced in a minor version. + +2.1.12 - Bugfixes and Features +============================== + +* Multi-value support and interface improvements for Git configuration. Thanks to A. Jesse Jiryu Davis. + +or run have a look at the difference between tags v2.1.11 and v2.1.12: +https://github.com/gitpython-developers/GitPython/compare/2.1.11...2.1.12 + 2.1.11 - Bugfixes ================= @@ -85,6 +333,7 @@ https://github.com/gitpython-developers/GitPython/issues?q=is%3Aclosed+milestone the `HEAD` reference instead. * `DiffIndex.iter_change_type(...)` produces better results when diffing + 2.0.8 - Features and Bugfixes ============================= @@ -113,7 +362,7 @@ https://github.com/gitpython-developers/GitPython/issues?q=is%3Aclosed+milestone unicode path counterparts. * Fix: TypeError about passing keyword argument to string decode() on Python 2.6. -* Feature: `setUrl API on Remotes `_ +* Feature: `setUrl API on Remotes `__ 2.0.5 - Fixes ============= @@ -189,13 +438,13 @@ Please note that due to breaking changes, we have to increase the major version. with large repositories. * CRITICAL: fixed incorrect `Commit` object serialization when authored or commit date had timezones which were not divisiblej by 3600 seconds. This would happen if the timezone was something like `+0530` for instance. -* A list of all additional fixes can be found `on GitHub `_ +* A list of all additional fixes can be found `on GitHub `__ * CRITICAL: `Tree.cache` was removed without replacement. It is technically impossible to change individual trees and expect their serialization results to be consistent with what *git* expects. Instead, use the `IndexFile` facilities to adjust the content of the staging area, and write it out to the respective tree objects using `IndexFile.write_tree()` instead. 1.0.1 - Fixes ============= -* A list of all issues can be found `on GitHub `_ +* A list of all issues can be found `on GitHub `__ 1.0.0 - Notes ============= @@ -212,14 +461,14 @@ It follows the `semantic version scheme `_, and thus will not * If the git command executed during `Remote.push(...)|fetch(...)` returns with an non-zero exit code and GitPython didn't obtain any head-information, the corresponding `GitCommandError` will be raised. This may break previous code which expected these operations to never raise. However, that behavious is undesirable as it would effectively hide the fact that there - was an error. See `this issue `_ for more information. + was an error. See `this issue `__ for more information. * If the git executable can't be found in the PATH or at the path provided by `GIT_PYTHON_GIT_EXECUTABLE`, this is made obvious by throwing `GitCommandNotFound`, both on unix and on windows. - Those who support **GUI on windows** will now have to set `git.Git.USE_SHELL = True` to get the previous behaviour. -* A list of all issues can be found `on GitHub `_ +* A list of all issues can be found `on GitHub `__ 0.3.6 - Features @@ -235,11 +484,11 @@ It follows the `semantic version scheme `_, and thus will not * Repo.working_tree_dir now returns None if it is bare. Previously it raised AssertionError. * IndexFile.add() previously raised AssertionError when paths where used with bare repository, now it raises InvalidGitRepositoryError -* Added `Repo.merge_base()` implementation. See the `respective issue on GitHub `_ +* Added `Repo.merge_base()` implementation. See the `respective issue on GitHub `__ * `[include]` sections in git configuration files are now respected * Added `GitConfigParser.rename_section()` * Added `Submodule.rename()` -* A list of all issues can be found `on GitHub `_ +* A list of all issues can be found `on GitHub `__ 0.3.5 - Bugfixes ================ diff --git a/doc/source/conf.py b/doc/source/conf.py index 2df3bbb63..0ec64179e 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -30,7 +30,7 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest'] # Add any paths that contain templates here, relative to this directory. -templates_path = ['.templates'] +templates_path = [] # The suffix of source filenames. source_suffix = '.rst' @@ -42,8 +42,8 @@ master_doc = 'index' # General information about the project. -project = u'GitPython' -copyright = u'Copyright (C) 2008, 2009 Michael Trier and contributors, 2010-2015 Sebastian Thiel' +project = 'GitPython' +copyright = 'Copyright (C) 2008, 2009 Michael Trier and contributors, 2010-2015 Sebastian Thiel' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -94,14 +94,10 @@ # Options for HTML output # ----------------------- +html_theme = 'sphinx_rtd_theme' html_theme_options = { } -# The style sheet to use for HTML and HTML Help pages. A file of that name -# must exist either in Sphinx' static/ path, or in one of the custom paths -# given in html_static_path. -html_style = 'default.css' - # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". #html_title = None @@ -121,7 +117,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['.static'] +html_static_path = [] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. diff --git a/doc/source/intro.rst b/doc/source/intro.rst index 48f898b25..7168c91b1 100644 --- a/doc/source/intro.rst +++ b/doc/source/intro.rst @@ -13,18 +13,14 @@ The object database implementation is optimized for handling large quantities of Requirements ============ -* `Python`_ 2.7 or newer +* `Python`_ >= 3.5 * `Git`_ 1.7.0 or newer It should also work with older versions, but it may be that some operations involving remotes will not work as expected. * `GitDB`_ - a pure python git database implementation -* `Python Nose`_ - used for running the tests -* `Mock by Michael Foord`_ used for tests. Requires version 0.5 .. _Python: https://www.python.org .. _Git: https://git-scm.com/ -.. _Python Nose: https://nose.readthedocs.io/en/latest/ -.. _Mock by Michael Foord: http://www.voidspace.org.uk/python/mock.html .. _GitDB: https://pypi.python.org/pypi/gitdb Installing GitPython @@ -36,7 +32,7 @@ installed, just run the following from the command-line: .. sourcecode:: none - # pip install gitpython + # pip install GitPython This command will download the latest version of GitPython from the `Python Package Index `_ and install it @@ -104,9 +100,9 @@ Initialize all submodules to obtain the required dependencies with:: $ cd git-python $ git submodule update --init --recursive -Finally verify the installation by running the `nose powered `_ unit tests:: +Finally verify the installation by running unit tests:: - $ nosetests + $ python -m unittest Questions and Answers ===================== diff --git a/doc/source/reference.rst b/doc/source/reference.rst index 53fa86364..68a7f0ba4 100644 --- a/doc/source/reference.rst +++ b/doc/source/reference.rst @@ -3,6 +3,13 @@ API Reference ============= +Version +------- + +.. py:data:: git.__version__ + + Current GitPython version. + Objects.Base ------------ diff --git a/doc/source/tutorial.rst b/doc/source/tutorial.rst index a96d0d99c..d548f8829 100644 --- a/doc/source/tutorial.rst +++ b/doc/source/tutorial.rst @@ -10,14 +10,14 @@ GitPython Tutorial GitPython provides object model access to your git repository. This tutorial is composed of multiple sections, most of which explains a real-life usecase. -All code presented here originated from `test_docs.py `_ to assure correctness. Knowing this should also allow you to more easily run the code for your own testing purposes, all you need is a developer installation of git-python. +All code presented here originated from `test_docs.py `_ to assure correctness. Knowing this should also allow you to more easily run the code for your own testing purposes, all you need is a developer installation of git-python. Meet the Repo type ****************** The first step is to create a :class:`git.Repo ` object to represent your repository. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [1-test_init_repo_object] @@ -25,7 +25,7 @@ The first step is to create a :class:`git.Repo ` object to r In the above example, the directory ``self.rorepo.working_tree_dir`` equals ``/Users/mtrier/Development/git-python`` and is my working repository which contains the ``.git`` directory. You can also initialize GitPython with a *bare* repository. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [2-test_init_repo_object] @@ -33,7 +33,7 @@ In the above example, the directory ``self.rorepo.working_tree_dir`` equals ``/U A repo object provides high-level access to your data, it allows you to create and delete heads, tags and remotes and access the configuration of the repository. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [3-test_init_repo_object] @@ -41,7 +41,7 @@ A repo object provides high-level access to your data, it allows you to create a Query the active branch, query untracked files or whether the repository data has been modified. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [4-test_init_repo_object] @@ -49,7 +49,7 @@ Query the active branch, query untracked files or whether the repository data ha Clone from existing repositories or initialize new empty ones. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [5-test_init_repo_object] @@ -57,7 +57,7 @@ Clone from existing repositories or initialize new empty ones. Archive the repository contents to a tar file. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [6-test_init_repo_object] @@ -70,7 +70,7 @@ And of course, there is much more you can do with this type, most of the followi Query relevant repository paths ... -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [7-test_init_repo_object] @@ -78,7 +78,7 @@ Query relevant repository paths ... :class:`Heads ` Heads are branches in git-speak. :class:`References ` are pointers to a specific commit or to other references. Heads and :class:`Tags ` are a kind of references. GitPython allows you to query them rather intuitively. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [8-test_init_repo_object] @@ -86,7 +86,7 @@ Query relevant repository paths ... You can also create new heads ... -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [9-test_init_repo_object] @@ -94,7 +94,7 @@ You can also create new heads ... ... and tags ... -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [10-test_init_repo_object] @@ -102,7 +102,7 @@ You can also create new heads ... You can traverse down to :class:`git objects ` through references and other objects. Some objects like :class:`commits ` have additional meta-data to query. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [11-test_init_repo_object] @@ -110,7 +110,7 @@ You can traverse down to :class:`git objects ` through :class:`Remotes ` allow to handle fetch, pull and push operations, while providing optional real-time progress information to :class:`progress delegates `. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [12-test_init_repo_object] @@ -118,7 +118,7 @@ You can traverse down to :class:`git objects ` through The :class:`index ` is also called stage in git-speak. It is used to prepare new commits, and can be used to keep results of merge operations. Our index implementation allows to stream date into the index, which is useful for bare repositories that do not have a working tree. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [13-test_init_repo_object] @@ -126,7 +126,7 @@ The :class:`index ` is also called stage in git-speak. :class:`Submodules ` represent all aspects of git submodules, which allows you query all of their related information, and manipulate in various ways. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [14-test_init_repo_object] @@ -138,7 +138,7 @@ Examining References :class:`References ` are the tips of your commit graph from which you can easily examine the history of your project. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [1-test_references_and_objects] @@ -146,7 +146,7 @@ Examining References :class:`Tags ` are (usually immutable) references to a commit and/or a tag object. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [2-test_references_and_objects] @@ -154,7 +154,7 @@ Examining References A :class:`symbolic reference ` is a special case of a reference as it points to another reference instead of a commit. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [3-test_references_and_objects] @@ -162,7 +162,7 @@ A :class:`symbolic reference ` is a special Access the :class:`reflog ` easily. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [4-test_references_and_objects] @@ -172,7 +172,7 @@ Modifying References ******************** You can easily create and delete :class:`reference types ` or modify where they point to. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [5-test_references_and_objects] @@ -180,7 +180,7 @@ You can easily create and delete :class:`reference types ` the same way except you may not change them afterwards. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [6-test_references_and_objects] @@ -188,7 +188,7 @@ Create or delete :class:`tags ` the same way except y Change the :class:`symbolic reference ` to switch branches cheaply (without adjusting the index or the working tree). -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [7-test_references_and_objects] @@ -202,7 +202,7 @@ Git only knows 4 distinct object types being :class:`Blobs ` are objects that can be put into git's index. These objects are trees, blobs and submodules which additionally know about their path in the file system as well as their mode. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [10-test_references_and_objects] @@ -226,7 +226,7 @@ Common fields are ... Access :class:`blob ` data (or any object data) using streams. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [11-test_references_and_objects] @@ -240,7 +240,7 @@ The Commit object Obtain commits at the specified revision -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [12-test_references_and_objects] @@ -248,7 +248,7 @@ Obtain commits at the specified revision Iterate 50 commits, and if you need paging, you can specify a number of commits to skip. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [13-test_references_and_objects] @@ -256,7 +256,7 @@ Iterate 50 commits, and if you need paging, you can specify a number of commits A commit object carries all sorts of meta-data -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [14-test_references_and_objects] @@ -264,7 +264,7 @@ A commit object carries all sorts of meta-data Note: date time is represented in a ``seconds since epoch`` format. Conversion to human readable form can be accomplished with the various `time module `_ methods. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [15-test_references_and_objects] @@ -272,7 +272,7 @@ Note: date time is represented in a ``seconds since epoch`` format. Conversion t You can traverse a commit's ancestry by chaining calls to ``parents`` -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [16-test_references_and_objects] @@ -285,7 +285,7 @@ The Tree object A :class:`tree ` records pointers to the contents of a directory. Let's say you want the root tree of the latest commit on the master branch -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [17-test_references_and_objects] @@ -293,7 +293,7 @@ A :class:`tree ` records pointers to the contents of a di Once you have a tree, you can get its contents -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [18-test_references_and_objects] @@ -301,7 +301,7 @@ Once you have a tree, you can get its contents It is useful to know that a tree behaves like a list with the ability to query entries by name -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [19-test_references_and_objects] @@ -309,7 +309,7 @@ It is useful to know that a tree behaves like a list with the ability to query e There is a convenience method that allows you to get a named sub-object from a tree with a syntax similar to how paths are written in a posix system -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [20-test_references_and_objects] @@ -317,7 +317,7 @@ There is a convenience method that allows you to get a named sub-object from a t You can also get a commit's root tree directly from the repository -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [21-test_references_and_objects] @@ -325,7 +325,7 @@ You can also get a commit's root tree directly from the repository As trees allow direct access to their intermediate child entries only, use the traverse method to obtain an iterator to retrieve entries recursively -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [22-test_references_and_objects] @@ -338,7 +338,7 @@ The Index Object The git index is the stage containing changes to be written with the next commit or where merges finally have to take place. You may freely access and manipulate this information using the :class:`IndexFile ` object. Modify the index with ease -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [23-test_references_and_objects] @@ -346,7 +346,7 @@ Modify the index with ease Create new indices from other trees or as result of a merge. Write that result to a new index file for later inspection. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [24-test_references_and_objects] @@ -357,7 +357,7 @@ Handling Remotes :class:`Remotes ` are used as alias for a foreign repository to ease pushing to and fetching from them -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [25-test_references_and_objects] @@ -365,7 +365,7 @@ Handling Remotes You can easily access configuration information for a remote by accessing options as if they where attributes. The modification of remote configuration is more explicit though. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [26-test_references_and_objects] @@ -399,7 +399,7 @@ Submodule Handling ****************** :class:`Submodules ` can be conveniently handled using the methods provided by GitPython, and as an added benefit, GitPython provides functionality which behave smarter and less error prone than its original c-git implementation, that is GitPython tries hard to keep your repository consistent when updating submodules recursively or adjusting the existing configuration. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [1-test_submodules] @@ -424,7 +424,7 @@ Diffs can generally be obtained by subclasses of :class:`Diffable ` command directly. It is owned by each repository instance. -.. literalinclude:: ../../git/test/test_docs.py +.. literalinclude:: ../../test/test_docs.py :language: python :dedent: 8 :start-after: # [31-test_references_and_objects] diff --git a/dockernose.sh b/dockernose.sh new file mode 100755 index 000000000..c9227118a --- /dev/null +++ b/dockernose.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -ex +if [ -z "${PYVER}" ]; then + PYVER=py37 +fi + +# remember to use "-s" if you inject pdb.set_trace() as this disables nosetests capture of streams + +tox -e ${PYVER} --notest +PYTHONPATH=/src/.tox/${PYVER}/lib/python*/site-packages /src/.tox/${PYVER}/bin/nosetests --pdb $* diff --git a/git/__init__.py b/git/__init__.py index e98806d46..ae9254a26 100644 --- a/git/__init__.py +++ b/git/__init__.py @@ -5,37 +5,39 @@ # the BSD License: http://www.opensource.org/licenses/bsd-license.php # flake8: noqa #@PydevCodeAnalysisIgnore +from git.exc import * # @NoMove @IgnorePep8 import inspect import os import sys - import os.path as osp +from typing import Optional +from git.types import PathLike __version__ = 'git' #{ Initialization -def _init_externals(): +def _init_externals() -> None: """Initialize external projects by putting them into the path""" - if __version__ == 'git': - sys.path.insert(0, osp.join(osp.dirname(__file__), 'ext', 'gitdb')) + if __version__ == 'git' and 'PYOXIDIZER' not in os.environ: + sys.path.insert(1, osp.join(osp.dirname(__file__), 'ext', 'gitdb')) try: import gitdb - except ImportError: - raise ImportError("'gitdb' could not be found in your PYTHONPATH") + except ImportError as e: + raise ImportError("'gitdb' could not be found in your PYTHONPATH") from e # END verify import #} END initialization + ################# _init_externals() ################# #{ Imports -from git.exc import * # @NoMove @IgnorePep8 try: from git.config import GitConfigParser # @NoMove @IgnorePep8 from git.objects import * # @NoMove @IgnorePep8 @@ -54,7 +56,7 @@ def _init_externals(): rmtree, ) except GitError as exc: - raise ImportError('%s: %s' % (exc.__class__.__name__, exc)) + raise ImportError('%s: %s' % (exc.__class__.__name__, exc)) from exc #} END imports @@ -65,7 +67,8 @@ def _init_externals(): #{ Initialize git executable path GIT_OK = None -def refresh(path=None): + +def refresh(path: Optional[PathLike] = None) -> None: """Convenience method for setting the git executable path.""" global GIT_OK GIT_OK = False @@ -78,9 +81,10 @@ def refresh(path=None): GIT_OK = True #} END initialize git executable path + ################# try: refresh() except Exception as exc: - raise ImportError('Failed to initialize: {0}'.format(exc)) + raise ImportError('Failed to initialize: {0}'.format(exc)) from exc ################# diff --git a/git/cmd.py b/git/cmd.py index b6305176b..40e32e370 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -19,20 +19,17 @@ import threading from collections import OrderedDict from textwrap import dedent +import warnings from git.compat import ( - string_types, defenc, force_bytes, - PY3, - # just to satisfy flake8 on py3 - unicode, safe_decode, is_posix, is_win, ) from git.exc import CommandError -from git.util import is_cygwin_git, cygpath, expand_path +from git.util import is_cygwin_git, cygpath, expand_path, remove_password_if_present from .exc import ( GitCommandError, @@ -43,7 +40,6 @@ stream_copy, ) - execute_kwargs = {'istream', 'with_extended_output', 'with_exceptions', 'as_process', 'stdout_as_string', 'output_stream', 'with_stdout', 'kill_after_timeout', @@ -63,7 +59,7 @@ def handle_process_output(process, stdout_handler, stderr_handler, finalizer=None, decode_streams=True): - """Registers for notifications to lean that process output is ready to read, and dispatches lines to + """Registers for notifications to learn that process output is ready to read, and dispatches lines to the respective line handlers. This function returns once the finalizer returns @@ -78,7 +74,7 @@ def handle_process_output(process, stdout_handler, stderr_handler, Set it to False if `universal_newline == True` (then streams are in text-mode) or if decoding must happen later (i.e. for Diffs). """ - # Use 2 "pupm" threads and wait for both to finish. + # Use 2 "pump" threads and wait for both to finish. def pump_stream(cmdline, name, stream, is_decode, handler): try: for line in stream: @@ -87,8 +83,8 @@ def pump_stream(cmdline, name, stream, is_decode, handler): line = line.decode(defenc) handler(line) except Exception as ex: - log.error("Pumping %r of cmd(%s) failed due to: %r", name, cmdline, ex) - raise CommandError(['<%s-pump>' % name] + cmdline, ex) + log.error("Pumping %r of cmd(%s) failed due to: %r", name, remove_password_if_present(cmdline), ex) + raise CommandError(['<%s-pump>' % name] + remove_password_if_present(cmdline), ex) from ex finally: stream.close() @@ -211,22 +207,15 @@ def refresh(cls, path=None): # test if the new git executable path is valid - if sys.version_info < (3,): - # - a GitCommandNotFound error is spawned by ourselves - # - a OSError is spawned if the git executable provided - # cannot be executed for whatever reason - exceptions = (GitCommandNotFound, OSError) - else: - # - a GitCommandNotFound error is spawned by ourselves - # - a PermissionError is spawned if the git executable provided - # cannot be executed for whatever reason - exceptions = (GitCommandNotFound, PermissionError) + # - a GitCommandNotFound error is spawned by ourselves + # - a PermissionError is spawned if the git executable provided + # cannot be executed for whatever reason has_git = False try: cls().version() has_git = True - except exceptions: + except (GitCommandNotFound, PermissionError): pass # warn or raise exception if test failed @@ -333,6 +322,9 @@ def polish_url(https://github.com/cls,%20url,%20is_cygwin=None): but git stops liking them as it will escape the backslashes. Hence we undo the escaping just to be sure. """ + url = os.path.expandvars(url) + if url.startswith('~'): + url = os.path.expanduser(url) url = url.replace("\\\\", "\\").replace("\\", "/") return url @@ -365,8 +357,11 @@ def __del__(self): proc.stderr.close() # did the process finish already so we have a return code ? - if proc.poll() is not None: - return + try: + if proc.poll() is not None: + return + except OSError as ex: + log.info("Ignored error after process had died: %r", ex) # can be that nothing really exists anymore ... if os is None or getattr(os, 'kill', None) is None: @@ -378,7 +373,6 @@ def __del__(self): proc.wait() # ensure process goes away except OSError as ex: log.info("Ignored error after process had died: %r", ex) - pass # ignore error when process already died except AttributeError: # try windows # for some reason, providing None for stdout/stderr still prints something. This is why @@ -399,7 +393,7 @@ def wait(self, stderr=b''): # TODO: Bad choice to mimic `proc.wait()` but with :raise GitCommandError: if the return status is not 0""" if stderr is None: stderr = b'' - stderr = force_bytes(stderr) + stderr = force_bytes(data=stderr, encoding='utf-8') status = self.proc.wait() @@ -412,7 +406,7 @@ def read_all_from_possibly_closed_stream(stream): if status != 0: errstr = read_all_from_possibly_closed_stream(self.proc.stderr) log.debug('AutoInterrupt wait stderr: %r' % (errstr,)) - raise GitCommandError(self.args, status, errstr) + raise GitCommandError(remove_password_if_present(self.args), status, errstr) # END status handling return status # END auto interrupt @@ -501,9 +495,13 @@ def readlines(self, size=-1): # END readline loop return out + # skipcq: PYL-E0301 def __iter__(self): return self + def __next__(self): + return self.next() + def next(self): line = self.readline() if not line: @@ -641,7 +639,7 @@ def execute(self, command, :param env: A dictionary of environment variables to be passed to `subprocess.Popen`. - + :param max_chunk_size: Maximum number of bytes in one chunk of data passed to the output_stream in one invocation of write() method. If the given number is not positive then @@ -685,8 +683,10 @@ def execute(self, command, :note: If you add additional keyword arguments to the signature of this method, you must update the execute_kwargs tuple housed in this module.""" + # Remove password for the command if present + redacted_command = remove_password_if_present(command) if self.GIT_PYTHON_TRACE and (self.GIT_PYTHON_TRACE != 'full' or as_process): - log.info(' '.join(command)) + log.info(' '.join(redacted_command)) # Allow the user to have the command executed in their working dir. cwd = self._working_dir or os.getcwd() @@ -707,7 +707,7 @@ def execute(self, command, if is_win: cmd_not_found_exception = OSError if kill_after_timeout: - raise GitCommandError(command, '"kill_after_timeout" feature is not supported on Windows.') + raise GitCommandError(redacted_command, '"kill_after_timeout" feature is not supported on Windows.') else: if sys.version_info[0] > 2: cmd_not_found_exception = FileNotFoundError # NOQA # exists, flake8 unknown @UndefinedVariable @@ -718,8 +718,11 @@ def execute(self, command, stdout_sink = (PIPE if with_stdout else getattr(subprocess, 'DEVNULL', None) or open(os.devnull, 'wb')) - log.debug("Popen(%s, cwd=%s, universal_newlines=%s, shell=%s)", - command, cwd, universal_newlines, shell) + istream_ok = "None" + if istream: + istream_ok = "" + log.debug("Popen(%s, cwd=%s, universal_newlines=%s, shell=%s, istream=%s)", + redacted_command, cwd, universal_newlines, shell, istream_ok) try: proc = Popen(command, env=env, @@ -735,7 +738,7 @@ def execute(self, command, **subprocess_kwargs ) except cmd_not_found_exception as err: - raise GitCommandNotFound(command, err) + raise GitCommandNotFound(redacted_command, err) from err if as_process: return self.AutoInterrupt(proc, command) @@ -775,6 +778,7 @@ def _kill_process(pid): status = 0 stdout_value = b'' stderr_value = b'' + newline = "\n" if universal_newlines else b"\n" try: if output_stream is None: if kill_after_timeout: @@ -784,11 +788,13 @@ def _kill_process(pid): watchdog.cancel() if kill_check.isSet(): stderr_value = ('Timeout: the command "%s" did not complete in %d ' - 'secs.' % (" ".join(command), kill_after_timeout)).encode(defenc) + 'secs.' % (" ".join(redacted_command), kill_after_timeout)) + if not universal_newlines: + stderr_value = stderr_value.encode(defenc) # strip trailing "\n" - if stdout_value.endswith(b"\n"): + if stdout_value.endswith(newline): stdout_value = stdout_value[:-1] - if stderr_value.endswith(b"\n"): + if stderr_value.endswith(newline): stderr_value = stderr_value[:-1] status = proc.returncode else: @@ -797,7 +803,7 @@ def _kill_process(pid): stdout_value = proc.stdout.read() stderr_value = proc.stderr.read() # strip trailing "\n" - if stderr_value.endswith(b"\n"): + if stderr_value.endswith(newline): stderr_value = stderr_value[:-1] status = proc.wait() # END stdout handling @@ -806,7 +812,7 @@ def _kill_process(pid): proc.stderr.close() if self.GIT_PYTHON_TRACE == 'full': - cmdstr = " ".join(command) + cmdstr = " ".join(redacted_command) def as_text(stdout_value): return not output_stream and safe_decode(stdout_value) or '' @@ -822,7 +828,7 @@ def as_text(stdout_value): # END handle debug printing if with_exceptions and status != 0: - raise GitCommandError(command, status, stderr_value, stdout_value) + raise GitCommandError(redacted_command, status, stderr_value, stdout_value) if isinstance(stdout_value, bytes) and stdout_as_string: # could also be output_stream stdout_value = safe_decode(stdout_value) @@ -893,14 +899,20 @@ def transform_kwarg(self, name, value, split_single_char_options): else: if value is True: return ["--%s" % dashify(name)] - elif value not in (False, None): + elif value is not False and value is not None: return ["--%s=%s" % (dashify(name), value)] return [] def transform_kwargs(self, split_single_char_options=True, **kwargs): """Transforms Python style kwargs into git command line options.""" + # Python 3.6 preserves the order of kwargs and thus has a stable + # order. For older versions sort the kwargs by the key to get a stable + # order. + if sys.version_info[:2] < (3, 6): + kwargs = OrderedDict(sorted(kwargs.items(), key=lambda x: x[0])) + warnings.warn("Python 3.5 support is deprecated and will be removed 2021-09-05.\n" + + "It does not preserve the order for key-word arguments and enforce lexical sorting instead.") args = [] - kwargs = OrderedDict(sorted(kwargs.items(), key=lambda x: x[0])) for k, v in kwargs.items(): if isinstance(v, (list, tuple)): for value in v: @@ -912,18 +924,12 @@ def transform_kwargs(self, split_single_char_options=True, **kwargs): @classmethod def __unpack_args(cls, arg_list): if not isinstance(arg_list, (list, tuple)): - # This is just required for unicode conversion, as subprocess can't handle it - # However, in any other case, passing strings (usually utf-8 encoded) is totally fine - if not PY3 and isinstance(arg_list, unicode): - return [arg_list.encode(defenc)] return [str(arg_list)] outlist = [] for arg in arg_list: if isinstance(arg_list, (list, tuple)): outlist.extend(cls.__unpack_args(arg)) - elif not PY3 and isinstance(arg_list, unicode): - outlist.append(arg_list.encode(defenc)) # END recursion else: outlist.append(str(arg)) @@ -991,9 +997,9 @@ def _call_process(self, method, *args, **kwargs): else: try: index = ext_args.index(insert_after_this_arg) - except ValueError: + except ValueError as err: raise ValueError("Couldn't find argument '%s' in args %s to insert cmd options after" - % (insert_after_this_arg, str(ext_args))) + % (insert_after_this_arg, str(ext_args))) from err # end handle error args = ext_args[:index + 1] + opt_args + ext_args[index + 1:] # end handle opts_kwargs @@ -1041,7 +1047,7 @@ def _prepare_ref(self, ref): if isinstance(ref, bytes): # Assume 40 bytes hexsha - bin-to-ascii for some reason returns bytes, not text refstr = ref.decode('ascii') - elif not isinstance(ref, string_types): + elif not isinstance(ref, str): refstr = str(ref) # could be ref-object if not refstr.endswith("\n"): diff --git a/git/compat.py b/git/compat.py index b63768f3d..a0aea1ac4 100644 --- a/git/compat.py +++ b/git/compat.py @@ -10,304 +10,72 @@ import locale import os import sys -import codecs - -from gitdb.utils.compat import ( - xrange, - MAXSIZE, # @UnusedImport - izip, # @UnusedImport -) from gitdb.utils.encoding import ( - string_types, # @UnusedImport - text_type, # @UnusedImport force_bytes, # @UnusedImport force_text # @UnusedImport ) +# typing -------------------------------------------------------------------- -PY3 = sys.version_info[0] >= 3 -is_win = (os.name == 'nt') -is_posix = (os.name == 'posix') -is_darwin = (os.name == 'darwin') -defenc = sys.getdefaultencoding() - -if PY3: - import io - FileType = io.IOBase - - def byte_ord(b): - return b - - def bchr(n): - return bytes([n]) +from typing import Any, AnyStr, Dict, Optional, Type +from git.types import TBD - def mviter(d): - return d.values() +# --------------------------------------------------------------------------- - range = xrange # @ReservedAssignment - unicode = str - binary_type = bytes -else: - FileType = file # @UndefinedVariable on PY3 - # usually, this is just ascii, which might not enough for our encoding needs - # Unless it's set specifically, we override it to be utf-8 - if defenc == 'ascii': - defenc = 'utf-8' - byte_ord = ord - bchr = chr - unicode = unicode - binary_type = str - range = xrange # @ReservedAssignment - def mviter(d): - return d.itervalues() +is_win = (os.name == 'nt') # type: bool +is_posix = (os.name == 'posix') +is_darwin = (os.name == 'darwin') +defenc = sys.getfilesystemencoding() -def safe_decode(s): +def safe_decode(s: Optional[AnyStr]) -> Optional[str]: """Safely decodes a binary string to unicode""" - if isinstance(s, unicode): + if isinstance(s, str): return s elif isinstance(s, bytes): return s.decode(defenc, 'surrogateescape') - elif s is not None: + elif s is None: + return None + else: raise TypeError('Expected bytes or text, but got %r' % (s,)) -def safe_encode(s): - """Safely decodes a binary string to unicode""" - if isinstance(s, unicode): +def safe_encode(s: Optional[AnyStr]) -> Optional[bytes]: + """Safely encodes a binary string to unicode""" + if isinstance(s, str): return s.encode(defenc) elif isinstance(s, bytes): return s - elif s is not None: + elif s is None: + return None + else: raise TypeError('Expected bytes or text, but got %r' % (s,)) -def win_encode(s): +def win_encode(s: Optional[AnyStr]) -> Optional[bytes]: """Encode unicodes for process arguments on Windows.""" - if isinstance(s, unicode): + if isinstance(s, str): return s.encode(locale.getpreferredencoding(False)) elif isinstance(s, bytes): return s elif s is not None: raise TypeError('Expected bytes or text, but got %r' % (s,)) + return None + -def with_metaclass(meta, *bases): +def with_metaclass(meta: Type[Any], *bases: Any) -> 'metaclass': # type: ignore ## mypy cannot understand dynamic class creation """copied from https://github.com/Byron/bcore/blob/master/src/python/butility/future.py#L15""" - class metaclass(meta): + + class metaclass(meta): # type: ignore __call__ = type.__call__ - __init__ = type.__init__ + __init__ = type.__init__ # type: ignore - def __new__(cls, name, nbases, d): + def __new__(cls, name: str, nbases: Optional[int], d: Dict[str, Any]) -> TBD: if nbases is None: return type.__new__(cls, name, (), d) - # There may be clients who rely on this attribute to be set to a reasonable value, which is why - # we set the __metaclass__ attribute explicitly - if not PY3 and '___metaclass__' not in d: - d['__metaclass__'] = meta return meta(name, bases, d) - return metaclass(meta.__name__ + 'Helper', None, {}) - - -## From https://docs.python.org/3.3/howto/pyporting.html -class UnicodeMixin(object): - - """Mixin class to handle defining the proper __str__/__unicode__ - methods in Python 2 or 3.""" - - if PY3: - def __str__(self): - return self.__unicode__() - else: # Python 2 - def __str__(self): - return self.__unicode__().encode(defenc) - - -""" -This is Victor Stinner's pure-Python implementation of PEP 383: the "surrogateescape" error -handler of Python 3. -Source: misc/python/surrogateescape.py in https://bitbucket.org/haypo/misc -""" - -# This code is released under the Python license and the BSD 2-clause license - - -FS_ERRORS = 'surrogateescape' - -# # -- Python 2/3 compatibility ------------------------------------- -# FS_ERRORS = 'my_surrogateescape' -def u(text): - if PY3: - return text - else: - return text.decode('unicode_escape') - -def b(data): - if PY3: - return data.encode('latin1') - else: - return data - -if PY3: - _unichr = chr - bytes_chr = lambda code: bytes((code,)) -else: - _unichr = unichr - bytes_chr = chr - -def surrogateescape_handler(exc): - """ - Pure Python implementation of the PEP 383: the "surrogateescape" error - handler of Python 3. Undecodable bytes will be replaced by a Unicode - character U+DCxx on decoding, and these are translated into the - original bytes on encoding. - """ - mystring = exc.object[exc.start:exc.end] - - try: - if isinstance(exc, UnicodeDecodeError): - # mystring is a byte-string in this case - decoded = replace_surrogate_decode(mystring) - elif isinstance(exc, UnicodeEncodeError): - # In the case of u'\udcc3'.encode('ascii', - # 'this_surrogateescape_handler'), both Python 2.x and 3.x raise an - # exception anyway after this function is called, even though I think - # it's doing what it should. It seems that the strict encoder is called - # to encode the unicode string that this function returns ... - decoded = replace_surrogate_encode(mystring, exc) - else: - raise exc - except NotASurrogateError: - raise exc - return (decoded, exc.end) - - -class NotASurrogateError(Exception): - pass - - -def replace_surrogate_encode(mystring, exc): - """ - Returns a (unicode) string, not the more logical bytes, because the codecs - register_error functionality expects this. - """ - decoded = [] - for ch in mystring: - # if PY3: - # code = ch - # else: - code = ord(ch) - - # The following magic comes from Py3.3's Python/codecs.c file: - if not 0xD800 <= code <= 0xDCFF: - # Not a surrogate. Fail with the original exception. - raise exc - # mybytes = [0xe0 | (code >> 12), - # 0x80 | ((code >> 6) & 0x3f), - # 0x80 | (code & 0x3f)] - # Is this a good idea? - if 0xDC00 <= code <= 0xDC7F: - decoded.append(_unichr(code - 0xDC00)) - elif code <= 0xDCFF: - decoded.append(_unichr(code - 0xDC00)) - else: - raise NotASurrogateError - return str().join(decoded) - - -def replace_surrogate_decode(mybytes): - """ - Returns a (unicode) string - """ - decoded = [] - for ch in mybytes: - # We may be parsing newbytes (in which case ch is an int) or a native - # str on Py2 - if isinstance(ch, int): - code = ch - else: - code = ord(ch) - if 0x80 <= code <= 0xFF: - decoded.append(_unichr(0xDC00 + code)) - elif code <= 0x7F: - decoded.append(_unichr(code)) - else: - # # It may be a bad byte - # # Try swallowing it. - # continue - # print("RAISE!") - raise NotASurrogateError - return str().join(decoded) - - -def encodefilename(fn): - if FS_ENCODING == 'ascii': - # ASCII encoder of Python 2 expects that the error handler returns a - # Unicode string encodable to ASCII, whereas our surrogateescape error - # handler has to return bytes in 0x80-0xFF range. - encoded = [] - for index, ch in enumerate(fn): - code = ord(ch) - if code < 128: - ch = bytes_chr(code) - elif 0xDC80 <= code <= 0xDCFF: - ch = bytes_chr(code - 0xDC00) - else: - raise UnicodeEncodeError(FS_ENCODING, - fn, index, index+1, - 'ordinal not in range(128)') - encoded.append(ch) - return bytes().join(encoded) - elif FS_ENCODING == 'utf-8': - # UTF-8 encoder of Python 2 encodes surrogates, so U+DC80-U+DCFF - # doesn't go through our error handler - encoded = [] - for index, ch in enumerate(fn): - code = ord(ch) - if 0xD800 <= code <= 0xDFFF: - if 0xDC80 <= code <= 0xDCFF: - ch = bytes_chr(code - 0xDC00) - encoded.append(ch) - else: - raise UnicodeEncodeError( - FS_ENCODING, - fn, index, index+1, 'surrogates not allowed') - else: - ch_utf8 = ch.encode('utf-8') - encoded.append(ch_utf8) - return bytes().join(encoded) - else: - return fn.encode(FS_ENCODING, FS_ERRORS) - -def decodefilename(fn): - return fn.decode(FS_ENCODING, FS_ERRORS) - -FS_ENCODING = 'ascii'; fn = b('[abc\xff]'); encoded = u('[abc\udcff]') -# FS_ENCODING = 'cp932'; fn = b('[abc\x81\x00]'); encoded = u('[abc\udc81\x00]') -# FS_ENCODING = 'UTF-8'; fn = b('[abc\xff]'); encoded = u('[abc\udcff]') - - -# normalize the filesystem encoding name. -# For example, we expect "utf-8", not "UTF8". -FS_ENCODING = codecs.lookup(FS_ENCODING).name - - -def register_surrogateescape(): - """ - Registers the surrogateescape error handler on Python 2 (only) - """ - if PY3: - return - try: - codecs.lookup_error(FS_ERRORS) - except LookupError: - codecs.register_error(FS_ERRORS, surrogateescape_handler) - - -try: - b"100644 \x9f\0aaa".decode(defenc, "surrogateescape") -except Exception: - register_surrogateescape() + return metaclass(meta.__name__ + 'Helper', None, {}) diff --git a/git/config.py b/git/config.py index 68d65ae91..aadb0aac0 100644 --- a/git/config.py +++ b/git/config.py @@ -9,29 +9,26 @@ import abc from functools import wraps import inspect +from io import IOBase import logging import os import re +import fnmatch from collections import OrderedDict +from typing_extensions import Literal + from git.compat import ( - string_types, - FileType, defenc, force_text, with_metaclass, - PY3 + is_win, ) from git.util import LockFile import os.path as osp - -try: - import ConfigParser as cp -except ImportError: - # PY3 - import configparser as cp +import configparser as cp __all__ = ('GitConfigParser', 'SectionConstraint') @@ -40,6 +37,14 @@ log = logging.getLogger('git.config') log.addHandler(logging.NullHandler()) +# invariants +# represents the configuration level of a configuration file +CONFIG_LEVELS = ("system", "user", "global", "repository") + +# Section pattern to detect conditional includes. +# https://git-scm.com/docs/git-config#_conditional_includes +CONDITIONAL_INCLUDE_REGEXP = re.compile(r"(?<=includeIf )\"(gitdir|gitdir/i|onbranch):(.+)\"") + class MetaParserBuilder(abc.ABCMeta): @@ -146,6 +151,71 @@ def __exit__(self, exception_type, exception_value, traceback): self._config.__exit__(exception_type, exception_value, traceback) +class _OMD(OrderedDict): + """Ordered multi-dict.""" + + def __setitem__(self, key, value): + super(_OMD, self).__setitem__(key, [value]) + + def add(self, key, value): + if key not in self: + super(_OMD, self).__setitem__(key, [value]) + return + + super(_OMD, self).__getitem__(key).append(value) + + def setall(self, key, values): + super(_OMD, self).__setitem__(key, values) + + def __getitem__(self, key): + return super(_OMD, self).__getitem__(key)[-1] + + def getlast(self, key): + return super(_OMD, self).__getitem__(key)[-1] + + def setlast(self, key, value): + if key not in self: + super(_OMD, self).__setitem__(key, [value]) + return + + prior = super(_OMD, self).__getitem__(key) + prior[-1] = value + + def get(self, key, default=None): + return super(_OMD, self).get(key, [default])[-1] + + def getall(self, key): + return super(_OMD, self).__getitem__(key) + + def items(self): + """List of (key, last value for key).""" + return [(k, self[k]) for k in self] + + def items_all(self): + """List of (key, list of values for key).""" + return [(k, self.getall(k)) for k in self] + + +def get_config_path(config_level: Literal['system', 'global', 'user', 'repository']) -> str: + + # we do not support an absolute path of the gitconfig on windows , + # use the global config instead + if is_win and config_level == "system": + config_level = "global" + + if config_level == "system": + return "/etc/gitconfig" + elif config_level == "user": + config_home = os.environ.get("XDG_CONFIG_HOME") or osp.join(os.environ.get("HOME", '~'), ".config") + return osp.normpath(osp.expanduser(osp.join(config_home, "git", "config"))) + elif config_level == "global": + return osp.normpath(osp.expanduser("~/.gitconfig")) + elif config_level == "repository": + raise ValueError("No repo to get repository configuration from. Use Repo._get_config_path") + + raise ValueError("Invalid configuration level: %r" % config_level) + + class GitConfigParser(with_metaclass(MetaParserBuilder, cp.RawConfigParser, object)): """Implements specifics required to read git style configuration files. @@ -184,7 +254,7 @@ class GitConfigParser(with_metaclass(MetaParserBuilder, cp.RawConfigParser, obje # list of RawConfigParser methods able to change the instance _mutating_methods_ = ("add_section", "remove_section", "remove_option", "set") - def __init__(self, file_or_files, read_only=True, merge_includes=True): + def __init__(self, file_or_files=None, read_only=True, merge_includes=True, config_level=None, repo=None): """Initialize a configuration reader to read the given file_or_files and to possibly allow changes to it by setting read_only False @@ -199,18 +269,32 @@ def __init__(self, file_or_files, read_only=True, merge_includes=True): :param merge_includes: if True, we will read files mentioned in [include] sections and merge their contents into ours. This makes it impossible to write back an individual configuration file. Thus, if you want to modify a single configuration file, turn this off to leave the original - dataset unaltered when reading it.""" - cp.RawConfigParser.__init__(self, dict_type=OrderedDict) + dataset unaltered when reading it. + :param repo: Reference to repository to use if [includeIf] sections are found in configuration files. + + """ + cp.RawConfigParser.__init__(self, dict_type=_OMD) # Used in python 3, needs to stay in sync with sections for underlying implementation to work if not hasattr(self, '_proxies'): self._proxies = self._dict() - self._file_or_files = file_or_files + if file_or_files is not None: + self._file_or_files = file_or_files + else: + if config_level is None: + if read_only: + self._file_or_files = [get_config_path(f) for f in CONFIG_LEVELS if f != 'repository'] + else: + raise ValueError("No configuration level or configuration files specified") + else: + self._file_or_files = [get_config_path(config_level)] + self._read_only = read_only self._dirty = False self._is_initialized = False self._merge_includes = merge_includes + self._repo = repo self._lock = None self._acquire_lock() @@ -223,7 +307,7 @@ def _acquire_lock(self): # END single file check file_or_files = self._file_or_files - if not isinstance(self._file_or_files, string_types): + if not isinstance(self._file_or_files, str): file_or_files = self._file_or_files.name # END get filename from handle/stream # initialize lock base - we want to write @@ -292,10 +376,7 @@ def string_decode(v): v = v[:-1] # end cut trailing escapes to prevent decode error - if PY3: - return v.encode(defenc).decode('unicode_escape') - else: - return v.decode('string_escape') + return v.encode(defenc).decode('unicode_escape') # end # end @@ -348,7 +429,8 @@ def string_decode(v): is_multi_line = True optval = string_decode(optval[1:]) # end handle multi-line - cursect[optname] = optval + # preserves multiple values for duplicate optnames + cursect.add(optname, optval) else: # check if it's an option with no value - it's just ignored by git if not self.OPTVALUEONLY.match(line): @@ -362,7 +444,8 @@ def string_decode(v): is_multi_line = False line = line[:-1] # end handle quotations - cursect[optname] += string_decode(line) + optval = cursect.getlast(optname) + cursect.setlast(optname, optval + string_decode(line)) # END parse section or option # END while reading @@ -371,7 +454,57 @@ def string_decode(v): raise e def _has_includes(self): - return self._merge_includes and self.has_section('include') + return self._merge_includes and len(self._included_paths()) + + def _included_paths(self): + """Return all paths that must be included to configuration. + """ + paths = [] + + for section in self.sections(): + if section == "include": + paths += self.items(section) + + match = CONDITIONAL_INCLUDE_REGEXP.search(section) + if match is None or self._repo is None: + continue + + keyword = match.group(1) + value = match.group(2).strip() + + if keyword in ["gitdir", "gitdir/i"]: + value = osp.expanduser(value) + + if not any(value.startswith(s) for s in ["./", "/"]): + value = "**/" + value + if value.endswith("/"): + value += "**" + + # Ensure that glob is always case insensitive if required. + if keyword.endswith("/i"): + value = re.sub( + r"[a-zA-Z]", + lambda m: "[{}{}]".format( + m.group().lower(), + m.group().upper() + ), + value + ) + + if fnmatch.fnmatchcase(self._repo.git_dir, value): + paths += self.items(section) + + elif keyword == "onbranch": + try: + branch_name = self._repo.active_branch.name + except TypeError: + # Ignore section if active branch cannot be retrieved. + continue + + if fnmatch.fnmatchcase(branch_name, value): + paths += self.items(section) + + return paths def read(self): """Reads the data stored in the files we have been initialized with. It will @@ -410,7 +543,7 @@ def read(self): # Read includes and append those that we didn't handle yet # We expect all paths to be normalized and absolute (and will assure that is the case) if self._has_includes(): - for _, include_path in self.items('include'): + for _, include_path in self._included_paths(): if include_path.startswith('~'): include_path = osp.expanduser(include_path) if not osp.isabs(include_path): @@ -442,9 +575,12 @@ def _write(self, fp): git compatible format""" def write_section(name, section_dict): fp.write(("[%s]\n" % name).encode(defenc)) - for (key, value) in section_dict.items(): - if key != "__name__": - fp.write(("\t%s = %s\n" % (key, self._value_to_string(value).replace('\n', '\n\t'))).encode(defenc)) + for (key, values) in section_dict.items_all(): + if key == "__name__": + continue + + for v in values: + fp.write(("\t%s = %s\n" % (key, self._value_to_string(v).replace('\n', '\n\t'))).encode(defenc)) # END if key is not __name__ # END section writing @@ -457,6 +593,22 @@ def items(self, section_name): """:return: list((option, value), ...) pairs of all items in the given section""" return [(k, v) for k, v in super(GitConfigParser, self).items(section_name) if k != '__name__'] + def items_all(self, section_name): + """:return: list((option, [values...]), ...) pairs of all items in the given section""" + rv = _OMD(self._defaults) + + for k, vs in self._sections[section_name].items_all(): + if k == '__name__': + continue + + if k in rv and rv.getall(k) == vs: + continue + + for v in vs: + rv.add(k, v) + + return rv.items_all() + @needs_values def write(self): """Write changes to our file, if there are changes at all @@ -481,7 +633,7 @@ def write(self): fp = self._file_or_files # we have a physical file on disk, so get a lock - is_file_lock = isinstance(fp, string_types + (FileType, )) + is_file_lock = isinstance(fp, (str, IOBase)) if is_file_lock: self._lock._obtain_lock() if not hasattr(fp, "seek"): @@ -508,7 +660,11 @@ def read_only(self): return self._read_only def get_value(self, section, option, default=None): - """ + """Get an option's value. + + If multiple values are specified for this option in the section, the + last one specified is returned. + :param default: If not None, the given default value will be returned in case the option did not exist @@ -523,6 +679,31 @@ def get_value(self, section, option, default=None): return default raise + return self._string_to_value(valuestr) + + def get_values(self, section, option, default=None): + """Get an option's values. + + If multiple values are specified for this option in the section, all are + returned. + + :param default: + If not None, a list containing the given default value will be + returned in case the option did not exist + :return: a list of properly typed values, either int, float or string + + :raise TypeError: in case the value could not be understood + Otherwise the exceptions known to the ConfigParser will be raised.""" + try: + lst = self._sections[section].getall(option) + except Exception: + if default is not None: + return [default] + raise + + return [self._string_to_value(valuestr) for valuestr in lst] + + def _string_to_value(self, valuestr): types = (int, float) for numtype in types: try: @@ -544,8 +725,10 @@ def get_value(self, section, option, default=None): if vl == 'true': return True - if not isinstance(valuestr, string_types): - raise TypeError("Invalid value type: only int, long, float and str are allowed", valuestr) + if not isinstance(valuestr, str): + raise TypeError( + "Invalid value type: only int, long, float and str are allowed", + valuestr) return valuestr @@ -572,6 +755,25 @@ def set_value(self, section, option, value): self.set(section, option, self._value_to_string(value)) return self + @needs_values + @set_dirty_and_flush_changes + def add_value(self, section, option, value): + """Adds a value for the given option in section. + It will create the section if required, and will not throw as opposed to the default + ConfigParser 'set' method. The value becomes the new value of the option as returned + by 'get_value', and appends to the list of values returned by 'get_values`'. + + :param section: Name of the section in which the option resides or should reside + :param option: Name of the option + + :param value: Value to add to option. It must be a string or convertible + to a string + :return: this instance""" + if not self.has_section(section): + self.add_section(section) + self._sections[section].add(option, self._value_to_string(value)) + return self + def rename_section(self, section, new_name): """rename the given section to new_name :raise ValueError: if section doesn't exit @@ -584,8 +786,9 @@ def rename_section(self, section, new_name): raise ValueError("Destination section '%s' already exists" % new_name) super(GitConfigParser, self).add_section(new_name) - for k, v in self.items(section): - self.set(new_name, k, self._value_to_string(v)) + new_section = self._sections[new_name] + for k, vs in self.items_all(section): + new_section.setall(k, vs) # end for each value to copy # This call writes back the changes, which is why we don't have the respective decorator diff --git a/git/db.py b/git/db.py index 653fa7daa..dc60c5552 100644 --- a/git/db.py +++ b/git/db.py @@ -7,15 +7,21 @@ from gitdb.db import GitDB # @UnusedImport from gitdb.db import LooseObjectDB -from .exc import ( - GitCommandError, - BadObject -) +from gitdb.exc import BadObject +from git.exc import GitCommandError +# typing------------------------------------------------- -__all__ = ('GitCmdObjectDB', 'GitDB') +from typing import TYPE_CHECKING, AnyStr +from git.types import PathLike + +if TYPE_CHECKING: + from git.cmd import Git + -# class GitCmdObjectDB(CompoundDB, ObjectDBW): +# -------------------------------------------------------- + +__all__ = ('GitCmdObjectDB', 'GitDB') class GitCmdObjectDB(LooseObjectDB): @@ -28,33 +34,33 @@ class GitCmdObjectDB(LooseObjectDB): have packs and the other implementations """ - def __init__(self, root_path, git): + def __init__(self, root_path: PathLike, git: 'Git') -> None: """Initialize this instance with the root and a git command""" super(GitCmdObjectDB, self).__init__(root_path) self._git = git - def info(self, sha): + def info(self, sha: bytes) -> OInfo: hexsha, typename, size = self._git.get_object_header(bin_to_hex(sha)) return OInfo(hex_to_bin(hexsha), typename, size) - def stream(self, sha): + def stream(self, sha: bytes) -> OStream: """For now, all lookup is done by git itself""" hexsha, typename, size, stream = self._git.stream_object_data(bin_to_hex(sha)) return OStream(hex_to_bin(hexsha), typename, size, stream) # { Interface - def partial_to_complete_sha_hex(self, partial_hexsha): + def partial_to_complete_sha_hex(self, partial_hexsha: AnyStr) -> bytes: """:return: Full binary 20 byte sha from the given partial hexsha :raise AmbiguousObjectName: :raise BadObject: :note: currently we only raise BadObject as git does not communicate AmbiguousObjects separately""" try: - hexsha, typename, size = self._git.get_object_header(partial_hexsha) # @UnusedVariable + hexsha, _typename, _size = self._git.get_object_header(partial_hexsha) return hex_to_bin(hexsha) - except (GitCommandError, ValueError): - raise BadObject(partial_hexsha) + except (GitCommandError, ValueError) as e: + raise BadObject(partial_hexsha) from e # END handle exceptions #} END interface diff --git a/git/diff.py b/git/diff.py index c73001270..129223cb3 100644 --- a/git/diff.py +++ b/git/diff.py @@ -3,39 +3,46 @@ # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php -import re +import re from git.cmd import handle_process_output -from git.compat import ( - defenc, - PY3 -) +from git.compat import defenc from git.util import finalize_process, hex_to_bin -from .compat import binary_type from .objects.blob import Blob from .objects.util import mode_str_to_int +# typing ------------------------------------------------------------------ + +from typing import Any, Iterator, List, Match, Optional, Tuple, Type, Union, TYPE_CHECKING +from typing_extensions import Final, Literal +from git.types import TBD + +if TYPE_CHECKING: + from .objects.tree import Tree + from git.repo.base import Repo + +Lit_change_type = Literal['A', 'D', 'M', 'R', 'T'] + +# ------------------------------------------------------------------------ + __all__ = ('Diffable', 'DiffIndex', 'Diff', 'NULL_TREE') # Special object to compare against the empty tree in diffs -NULL_TREE = object() +NULL_TREE = object() # type: Final[object] _octal_byte_re = re.compile(b'\\\\([0-9]{3})') -def _octal_repl(matchobj): +def _octal_repl(matchobj: Match) -> bytes: value = matchobj.group(1) value = int(value, 8) - if PY3: - value = bytes(bytearray((value,))) - else: - value = chr(value) + value = bytes(bytearray((value,))) return value -def decode_path(path, has_ab_prefix=True): +def decode_path(path: bytes, has_ab_prefix: bool = True) -> Optional[bytes]: if path == b'/dev/null': return None @@ -67,7 +74,7 @@ class Diffable(object): class Index(object): pass - def _process_diff_args(self, args): + def _process_diff_args(self, args: List[Union[str, 'Diffable', object]]) -> List[Union[str, 'Diffable', object]]: """ :return: possibly altered version of the given args list. @@ -75,7 +82,9 @@ def _process_diff_args(self, args): Subclasses can use it to alter the behaviour of the superclass""" return args - def diff(self, other=Index, paths=None, create_patch=False, **kwargs): + def diff(self, other: Union[Type[Index], Type['Tree'], object, None, str] = Index, + paths: Union[str, List[str], Tuple[str, ...], None] = None, + create_patch: bool = False, **kwargs: Any) -> 'DiffIndex': """Creates diffs between two items being trees, trees and index or an index and the working tree. It will detect renames automatically. @@ -106,7 +115,7 @@ def diff(self, other=Index, paths=None, create_patch=False, **kwargs): :note: On a bare repository, 'other' needs to be provided as Index or as as Tree/Commit, or a git command error will occur""" - args = [] + args = [] # type: List[Union[str, Diffable, object]] args.append("--abbrev=40") # we need full shas args.append("--full-index") # get full index paths, not only filenames @@ -115,6 +124,7 @@ def diff(self, other=Index, paths=None, create_patch=False, **kwargs): args.append("-p") else: args.append("--raw") + args.append("-z") # in any way, assure we don't see colored output, # fixes https://github.com/gitpython-developers/GitPython/issues/172 @@ -123,6 +133,9 @@ def diff(self, other=Index, paths=None, create_patch=False, **kwargs): if paths is not None and not isinstance(paths, (tuple, list)): paths = [paths] + if hasattr(self, 'repo'): # else raise Error? + self.repo = self.repo # type: 'Repo' + diff_cmd = self.repo.git.diff if other is self.Index: args.insert(0, '--cached') @@ -167,9 +180,9 @@ class DiffIndex(list): # R = Renamed # M = Modified # T = Changed in the type - change_type = ("A", "D", "R", "M", "T") + change_type = ("A", "C", "D", "R", "M", "T") - def iter_change_type(self, change_type): + def iter_change_type(self, change_type: Lit_change_type) -> Iterator['Diff']: """ :return: iterator yielding Diff instances that match the given change_type @@ -186,13 +199,15 @@ def iter_change_type(self, change_type): if change_type not in self.change_type: raise ValueError("Invalid change type: %s" % change_type) - for diff in self: + for diff in self: # type: 'Diff' if diff.change_type == change_type: yield diff elif change_type == "A" and diff.new_file: yield diff elif change_type == "D" and diff.deleted_file: yield diff + elif change_type == "C" and diff.copied_file: + yield diff elif change_type == "R" and diff.renamed: yield diff elif change_type == "M" and diff.a_blob and diff.b_blob and diff.a_blob != diff.b_blob: @@ -235,7 +250,7 @@ class Diff(object): # precompiled regex re_header = re.compile(br""" ^diff[ ]--git - [ ](?P"?a/.+?"?)[ ](?P"?b/.+?"?)\n + [ ](?P"?[ab]/.+?"?)[ ](?P"?[ab]/.+?"?)\n (?:^old[ ]mode[ ](?P\d+)\n ^new[ ]mode[ ](?P\d+)(?:\n|$))? (?:^similarity[ ]index[ ]\d+%\n @@ -243,6 +258,9 @@ class Diff(object): ^rename[ ]to[ ](?P.*)(?:\n|$))? (?:^new[ ]file[ ]mode[ ](?P.+)(?:\n|$))? (?:^deleted[ ]file[ ]mode[ ](?P.+)(?:\n|$))? + (?:^similarity[ ]index[ ]\d+%\n + ^copy[ ]from[ ].*\n + ^copy[ ]to[ ](?P.*)(?:\n|$))? (?:^index[ ](?P[0-9A-Fa-f]+) \.\.(?P[0-9A-Fa-f]+)[ ]?(?P.+)?(?:\n|$))? (?:^---[ ](?P[^\t\n\r\f\v]*)[\t\r\f\v]*(?:\n|$))? @@ -253,25 +271,33 @@ class Diff(object): NULL_BIN_SHA = b"\0" * 20 __slots__ = ("a_blob", "b_blob", "a_mode", "b_mode", "a_rawpath", "b_rawpath", - "new_file", "deleted_file", "raw_rename_from", "raw_rename_to", - "diff", "change_type", "score") - - def __init__(self, repo, a_rawpath, b_rawpath, a_blob_id, b_blob_id, a_mode, - b_mode, new_file, deleted_file, raw_rename_from, - raw_rename_to, diff, change_type, score): - - self.a_mode = a_mode - self.b_mode = b_mode - - assert a_rawpath is None or isinstance(a_rawpath, binary_type) - assert b_rawpath is None or isinstance(b_rawpath, binary_type) + "new_file", "deleted_file", "copied_file", "raw_rename_from", + "raw_rename_to", "diff", "change_type", "score") + + def __init__(self, repo: 'Repo', + a_rawpath: Optional[bytes], b_rawpath: Optional[bytes], + a_blob_id: Union[str, bytes, None], b_blob_id: Union[str, bytes, None], + a_mode: Union[bytes, str, None], b_mode: Union[bytes, str, None], + new_file: bool, deleted_file: bool, copied_file: bool, + raw_rename_from: Optional[bytes], raw_rename_to: Optional[bytes], + diff: Union[str, bytes, None], change_type: Optional[str], score: Optional[int]) -> None: + + assert a_rawpath is None or isinstance(a_rawpath, bytes) + assert b_rawpath is None or isinstance(b_rawpath, bytes) self.a_rawpath = a_rawpath self.b_rawpath = b_rawpath - if self.a_mode: - self.a_mode = mode_str_to_int(self.a_mode) - if self.b_mode: - self.b_mode = mode_str_to_int(self.b_mode) + self.a_mode = mode_str_to_int(a_mode) if a_mode else None + self.b_mode = mode_str_to_int(b_mode) if b_mode else None + + # Determine whether this diff references a submodule, if it does then + # we need to overwrite "repo" to the corresponding submodule's repo instead + if repo and a_rawpath: + for submodule in repo.submodules: + if submodule.path == a_rawpath.decode(defenc, 'replace'): + if submodule.module_exists(): + repo = submodule.module() + break if a_blob_id is None or a_blob_id == self.NULL_HEX_SHA: self.a_blob = None @@ -285,10 +311,11 @@ def __init__(self, repo, a_rawpath, b_rawpath, a_blob_id, b_blob_id, a_mode, self.new_file = new_file self.deleted_file = deleted_file + self.copied_file = copied_file # be clear and use None instead of empty strings - assert raw_rename_from is None or isinstance(raw_rename_from, binary_type) - assert raw_rename_to is None or isinstance(raw_rename_to, binary_type) + assert raw_rename_from is None or isinstance(raw_rename_from, bytes) + assert raw_rename_to is None or isinstance(raw_rename_to, bytes) self.raw_rename_from = raw_rename_from or None self.raw_rename_to = raw_rename_to or None @@ -296,27 +323,27 @@ def __init__(self, repo, a_rawpath, b_rawpath, a_blob_id, b_blob_id, a_mode, self.change_type = change_type self.score = score - def __eq__(self, other): + def __eq__(self, other: object) -> bool: for name in self.__slots__: if getattr(self, name) != getattr(other, name): return False # END for each name return True - def __ne__(self, other): + def __ne__(self, other: object) -> bool: return not (self == other) - def __hash__(self): + def __hash__(self) -> int: return hash(tuple(getattr(self, n) for n in self.__slots__)) - def __str__(self): - h = "%s" + def __str__(self) -> str: + h = "%s" # type: str if self.a_blob: h %= self.a_blob.path elif self.b_blob: h %= self.b_blob.path - msg = '' + msg = '' # type: str line = None # temp line line_length = 0 # line length for b, n in zip((self.a_blob, self.b_blob), ('lhs', 'rhs')): @@ -336,6 +363,8 @@ def __str__(self): msg += '\nfile deleted in rhs' if self.new_file: msg += '\nfile added in rhs' + if self.copied_file: + msg += '\nfile %r copied from %r' % (self.b_path, self.a_path) if self.rename_from: msg += '\nfile renamed from %r' % self.rename_from if self.rename_to: @@ -343,7 +372,7 @@ def __str__(self): if self.diff: msg += '\n---' try: - msg += self.diff.decode(defenc) + msg += self.diff.decode(defenc) if isinstance(self.diff, bytes) else self.diff except UnicodeDecodeError: msg += 'OMITTED BINARY DATA' # end handle encoding @@ -353,43 +382,40 @@ def __str__(self): # Python2 silliness: have to assure we convert our likely to be unicode object to a string with the # right encoding. Otherwise it tries to convert it using ascii, which may fail ungracefully res = h + msg - if not PY3: - res = res.encode(defenc) # end return res @property - def a_path(self): + def a_path(self) -> Optional[str]: return self.a_rawpath.decode(defenc, 'replace') if self.a_rawpath else None @property - def b_path(self): + def b_path(self) -> Optional[str]: return self.b_rawpath.decode(defenc, 'replace') if self.b_rawpath else None @property - def rename_from(self): + def rename_from(self) -> Optional[str]: return self.raw_rename_from.decode(defenc, 'replace') if self.raw_rename_from else None @property - def rename_to(self): + def rename_to(self) -> Optional[str]: return self.raw_rename_to.decode(defenc, 'replace') if self.raw_rename_to else None @property - def renamed(self): + def renamed(self) -> bool: """:returns: True if the blob of our diff has been renamed :note: This property is deprecated, please use ``renamed_file`` instead. """ return self.renamed_file @property - def renamed_file(self): + def renamed_file(self) -> bool: """:returns: True if the blob of our diff has been renamed - :note: This property is deprecated, please use ``renamed_file`` instead. """ return self.rename_from != self.rename_to @classmethod - def _pick_best_path(cls, path_match, rename_match, path_fallback_match): + def _pick_best_path(cls, path_match: bytes, rename_match: bytes, path_fallback_match: bytes) -> Optional[bytes]: if path_match: return decode_path(path_match) @@ -402,29 +428,33 @@ def _pick_best_path(cls, path_match, rename_match, path_fallback_match): return None @classmethod - def _index_from_patch_format(cls, repo, proc): + def _index_from_patch_format(cls, repo: 'Repo', proc: TBD) -> DiffIndex: """Create a new DiffIndex from the given text which must be in patch format :param repo: is the repository we are operating on - it is required :param stream: result of 'git diff' as a stream (supporting file protocol) :return: git.DiffIndex """ ## FIXME: Here SLURPING raw, need to re-phrase header-regexes linewise. - text = [] - handle_process_output(proc, text.append, None, finalize_process, decode_streams=False) + text_list = [] # type: List[bytes] + handle_process_output(proc, text_list.append, None, finalize_process, decode_streams=False) # for now, we have to bake the stream - text = b''.join(text) + text = b''.join(text_list) index = DiffIndex() previous_header = None - for header in cls.re_header.finditer(text): + header = None + a_path, b_path = None, None # for mypy + a_mode, b_mode = None, None # for mypy + for _header in cls.re_header.finditer(text): a_path_fallback, b_path_fallback, \ old_mode, new_mode, \ rename_from, rename_to, \ - new_file_mode, deleted_file_mode, \ + new_file_mode, deleted_file_mode, copied_file_name, \ a_blob_id, b_blob_id, b_mode, \ - a_path, b_path = header.groups() + a_path, b_path = _header.groups() - new_file, deleted_file = bool(new_file_mode), bool(deleted_file_mode) + new_file, deleted_file, copied_file = \ + bool(new_file_mode), bool(deleted_file_mode), bool(copied_file_name) a_path = cls._pick_best_path(a_path, rename_from, a_path_fallback) b_path = cls._pick_best_path(b_path, rename_to, b_path_fallback) @@ -432,7 +462,7 @@ def _index_from_patch_format(cls, repo, proc): # Our only means to find the actual text is to see what has not been matched by our regex, # and then retro-actively assign it to our index if previous_header is not None: - index[-1].diff = text[previous_header.end():header.start()] + index[-1].diff = text[previous_header.end():_header.start()] # end assign actual diff # Make sure the mode is set if the path is set. Otherwise the resulting blob is invalid @@ -446,21 +476,22 @@ def _index_from_patch_format(cls, repo, proc): b_blob_id and b_blob_id.decode(defenc), a_mode and a_mode.decode(defenc), b_mode and b_mode.decode(defenc), - new_file, deleted_file, + new_file, deleted_file, copied_file, rename_from, rename_to, None, None, None)) - previous_header = header + previous_header = _header + header = _header # end for each header we parse - if index: + if index and header: index[-1].diff = text[header.end():] # end assign last diff return index @classmethod - def _index_from_raw_format(cls, repo, proc): + def _index_from_raw_format(cls, repo: 'Repo', proc: TBD) -> DiffIndex: """Create a new DiffIndex from the given stream which must be in raw format. :return: git.DiffIndex""" # handles @@ -468,49 +499,56 @@ def _index_from_raw_format(cls, repo, proc): index = DiffIndex() - def handle_diff_line(line): - line = line.decode(defenc) - if not line.startswith(":"): - return - - meta, _, path = line[1:].partition('\t') - old_mode, new_mode, a_blob_id, b_blob_id, _change_type = meta.split(None, 4) - # Change type can be R100 - # R: status letter - # 100: score (in case of copy and rename) - change_type = _change_type[0] - score_str = ''.join(_change_type[1:]) - score = int(score_str) if score_str.isdigit() else None - path = path.strip() - a_path = path.encode(defenc) - b_path = path.encode(defenc) - deleted_file = False - new_file = False - rename_from = None - rename_to = None - - # NOTE: We cannot conclude from the existence of a blob to change type - # as diffs with the working do not have blobs yet - if change_type == 'D': - b_blob_id = None - deleted_file = True - elif change_type == 'A': - a_blob_id = None - new_file = True - elif change_type == 'R': - a_path, b_path = path.split('\t', 1) - a_path = a_path.encode(defenc) - b_path = b_path.encode(defenc) - rename_from, rename_to = a_path, b_path - elif change_type == 'T': - # Nothing to do - pass - # END add/remove handling - - diff = Diff(repo, a_path, b_path, a_blob_id, b_blob_id, old_mode, new_mode, - new_file, deleted_file, rename_from, rename_to, '', - change_type, score) - index.append(diff) + def handle_diff_line(lines_bytes: bytes) -> None: + lines = lines_bytes.decode(defenc) + + for line in lines.split(':')[1:]: + meta, _, path = line.partition('\x00') + path = path.rstrip('\x00') + a_blob_id, b_blob_id = None, None # Type: Optional[str] + old_mode, new_mode, a_blob_id, b_blob_id, _change_type = meta.split(None, 4) + # Change type can be R100 + # R: status letter + # 100: score (in case of copy and rename) + change_type = _change_type[0] + score_str = ''.join(_change_type[1:]) + score = int(score_str) if score_str.isdigit() else None + path = path.strip() + a_path = path.encode(defenc) + b_path = path.encode(defenc) + deleted_file = False + new_file = False + copied_file = False + rename_from = None + rename_to = None + + # NOTE: We cannot conclude from the existence of a blob to change type + # as diffs with the working do not have blobs yet + if change_type == 'D': + b_blob_id = None # Optional[str] + deleted_file = True + elif change_type == 'A': + a_blob_id = None + new_file = True + elif change_type == 'C': + copied_file = True + a_path_str, b_path_str = path.split('\x00', 1) + a_path = a_path_str.encode(defenc) + b_path = b_path_str.encode(defenc) + elif change_type == 'R': + a_path_str, b_path_str = path.split('\x00', 1) + a_path = a_path_str.encode(defenc) + b_path = b_path_str.encode(defenc) + rename_from, rename_to = a_path, b_path + elif change_type == 'T': + # Nothing to do + pass + # END add/remove handling + + diff = Diff(repo, a_path, b_path, a_blob_id, b_blob_id, old_mode, new_mode, + new_file, deleted_file, copied_file, rename_from, rename_to, + '', change_type, score) + index.append(diff) handle_process_output(proc, handle_diff_line, None, finalize_process, decode_streams=False) diff --git a/git/exc.py b/git/exc.py index 4865da944..c066e5e2f 100644 --- a/git/exc.py +++ b/git/exc.py @@ -5,8 +5,18 @@ # the BSD License: http://www.opensource.org/licenses/bsd-license.php """ Module containing all exceptions thrown throughout the git package, """ -from gitdb.exc import * # NOQA @UnusedWildImport -from git.compat import UnicodeMixin, safe_decode, string_types +from gitdb.exc import * # NOQA @UnusedWildImport skipcq: PYL-W0401, PYL-W0614 +from git.compat import safe_decode + +# typing ---------------------------------------------------- + +from typing import IO, List, Optional, Tuple, Union, TYPE_CHECKING +from git.types import PathLike + +if TYPE_CHECKING: + from git.repo.base import Repo + +# ------------------------------------------------------------------ class GitError(Exception): @@ -25,7 +35,7 @@ class NoSuchPathError(GitError, OSError): """ Thrown if a path could not be access by the system. """ -class CommandError(UnicodeMixin, GitError): +class CommandError(GitError): """Base class for exceptions thrown at every stage of `Popen()` execution. :param command: @@ -34,31 +44,33 @@ class CommandError(UnicodeMixin, GitError): #: A unicode print-format with 2 `%s for `` and the rest, #: e.g. - #: u"'%s' failed%s" - _msg = u"Cmd('%s') failed%s" + #: "'%s' failed%s" + _msg = "Cmd('%s') failed%s" - def __init__(self, command, status=None, stderr=None, stdout=None): + def __init__(self, command: Union[List[str], Tuple[str, ...], str], + status: Union[str, None, Exception] = None, + stderr: Optional[IO[str]] = None, stdout: Optional[IO[str]] = None) -> None: if not isinstance(command, (tuple, list)): command = command.split() self.command = command self.status = status if status: if isinstance(status, Exception): - status = u"%s('%s')" % (type(status).__name__, safe_decode(str(status))) + status = "%s('%s')" % (type(status).__name__, safe_decode(str(status))) else: try: - status = u'exit code(%s)' % int(status) + status = 'exit code(%s)' % int(status) except (ValueError, TypeError): s = safe_decode(str(status)) - status = u"'%s'" % s if isinstance(status, string_types) else s + status = "'%s'" % s if isinstance(status, str) else s self._cmd = safe_decode(command[0]) - self._cmdline = u' '.join(safe_decode(i) for i in command) - self._cause = status and u" due to: %s" % status or "!" - self.stdout = stdout and u"\n stdout: '%s'" % safe_decode(stdout) or '' - self.stderr = stderr and u"\n stderr: '%s'" % safe_decode(stderr) or '' + self._cmdline = ' '.join(str(safe_decode(i)) for i in command) + self._cause = status and " due to: %s" % status or "!" + self.stdout = stdout and "\n stdout: '%s'" % safe_decode(str(stdout)) or '' + self.stderr = stderr and "\n stderr: '%s'" % safe_decode(str(stderr)) or '' - def __unicode__(self): + def __str__(self) -> str: return (self._msg + "\n cmdline: %s%s%s") % ( self._cmd, self._cause, self._cmdline, self.stdout, self.stderr) @@ -66,15 +78,20 @@ def __unicode__(self): class GitCommandNotFound(CommandError): """Thrown if we cannot find the `git` executable in the PATH or at the path given by the GIT_PYTHON_GIT_EXECUTABLE environment variable""" - def __init__(self, command, cause): + + def __init__(self, command: Union[List[str], Tuple[str], str], cause: Union[str, Exception]) -> None: super(GitCommandNotFound, self).__init__(command, cause) - self._msg = u"Cmd('%s') not found%s" + self._msg = "Cmd('%s') not found%s" class GitCommandError(CommandError): """ Thrown if execution of the git command fails with non-zero status code. """ - def __init__(self, command, status, stderr=None, stdout=None): + def __init__(self, command: Union[List[str], Tuple[str, ...], str], + status: Union[str, None, Exception] = None, + stderr: Optional[IO[str]] = None, + stdout: Optional[IO[str]] = None, + ) -> None: super(GitCommandError, self).__init__(command, status, stderr, stdout) @@ -92,13 +109,15 @@ class CheckoutError(GitError): were checked out successfully and hence match the version stored in the index""" - def __init__(self, message, failed_files, valid_files, failed_reasons): + def __init__(self, message: str, failed_files: List[PathLike], valid_files: List[PathLike], + failed_reasons: List[str]) -> None: + Exception.__init__(self, message) self.failed_files = failed_files self.failed_reasons = failed_reasons self.valid_files = valid_files - def __str__(self): + def __str__(self) -> str: return Exception.__str__(self) + ":%s" % self.failed_files @@ -116,17 +135,18 @@ class HookExecutionError(CommandError): """Thrown if a hook exits with a non-zero exit code. It provides access to the exit code and the string returned via standard output""" - def __init__(self, command, status, stderr=None, stdout=None): + def __init__(self, command: Union[List[str], Tuple[str, ...], str], status: Optional[str], + stderr: Optional[IO[str]] = None, stdout: Optional[IO[str]] = None) -> None: super(HookExecutionError, self).__init__(command, status, stderr, stdout) - self._msg = u"Hook('%s') failed%s" + self._msg = "Hook('%s') failed%s" class RepositoryDirtyError(GitError): """Thrown whenever an operation on a repository fails as it has uncommitted changes that would be overwritten""" - def __init__(self, repo, message): + def __init__(self, repo: 'Repo', message: str) -> None: self.repo = repo self.message = message - def __str__(self): + def __str__(self) -> str: return "Operation cannot be performed on %r: %s" % (self.repo, self.message) diff --git a/git/ext/gitdb b/git/ext/gitdb index 3e7183304..e45fd0792 160000 --- a/git/ext/gitdb +++ b/git/ext/gitdb @@ -1 +1 @@ -Subproject commit 3e71833044718f60be36ac47494668469a2a235a +Subproject commit e45fd0792ee9a987a4df26e3139f5c3b107f0092 diff --git a/git/index/base.py b/git/index/base.py index 04a3934d6..5b3667ace 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -11,12 +11,8 @@ import tempfile from git.compat import ( - izip, - xrange, - string_types, force_bytes, defenc, - mviter, ) from git.exc import ( GitCommandError, @@ -158,7 +154,7 @@ def _delete_entries_cache(self): def _deserialize(self, stream): """Initialize this instance with index values read from the given stream""" - self.version, self.entries, self._extension_data, conten_sha = read_cache(stream) # @UnusedVariable + self.version, self.entries, self._extension_data, _conten_sha = read_cache(stream) return self def _entries_sorted(self): @@ -223,7 +219,7 @@ def merge_tree(self, rhs, base=None): """Merge the given rhs treeish into the current index, possibly taking a common base treeish into account. - As opposed to the from_tree_ method, this allows you to use an already + As opposed to the :func:`IndexFile.from_tree` method, this allows you to use an already existing tree as the left side of the merge :param rhs: @@ -272,8 +268,8 @@ def new(cls, repo, *tree_sha): inst = cls(repo) # convert to entries dict - entries = dict(izip(((e.path, e.stage) for e in base_entries), - (IndexEntry.from_base(e) for e in base_entries))) + entries = dict(zip(((e.path, e.stage) for e in base_entries), + (IndexEntry.from_base(e) for e in base_entries))) inst.entries = entries return inst @@ -377,8 +373,8 @@ def raise_exc(e): continue # end check symlink - # resolve globs if possible - if '?' in path or '*' in path or '[' in path: + # if the path is not already pointing to an existing file, resolve globs if possible + if not os.path.exists(path) and ('?' in path or '*' in path or '[' in path): resolved_paths = glob.glob(abs_path) # not abs_path in resolved_paths: # a glob() resolving to the same path we are feeding it with @@ -392,7 +388,7 @@ def raise_exc(e): continue # END glob handling try: - for root, dirs, files in os.walk(abs_path, onerror=raise_exc): # @UnusedVariable + for root, _dirs, files in os.walk(abs_path, onerror=raise_exc): for rela_file in files: # add relative paths only yield osp.join(root.replace(rs, ''), rela_file) @@ -424,9 +420,9 @@ def _write_path_to_stdin(self, proc, filepath, item, fmakeexc, fprogress, rval = None try: proc.stdin.write(("%s\n" % filepath).encode(defenc)) - except IOError: + except IOError as e: # pipe broke, usually because some error happened - raise fmakeexc() + raise fmakeexc() from e # END write exception handling proc.stdin.flush() if read_from_stdout: @@ -442,7 +438,7 @@ def iter_blobs(self, predicate=lambda t: True): Function(t) returning True if tuple(stage, Blob) should be yielded by the iterator. A default filter, the BlobFilter, allows you to yield blobs only if they match a given list of paths. """ - for entry in mviter(self.entries): + for entry in self.entries.values(): blob = entry.to_blob(self.repo) blob.size = entry.size output = (entry.stage, blob) @@ -467,8 +463,8 @@ def unmerged_blobs(self): for stage, blob in self.iter_blobs(is_unmerged_blob): path_map.setdefault(blob.path, []).append((stage, blob)) # END for each unmerged blob - for l in mviter(path_map): - l.sort() + for line in path_map.values(): + line.sort() return path_map @classmethod @@ -569,9 +565,12 @@ def _preprocess_add_items(self, items): """ Split the items into two lists of path strings and BaseEntries. """ paths = [] entries = [] + # if it is a string put in list + if isinstance(items, str): + items = [items] for item in items: - if isinstance(item, string_types): + if isinstance(item, str): paths.append(self._to_relative_path(item)) elif isinstance(item, (Blob, Submodule)): entries.append(BaseIndexEntry.from_blob(item)) @@ -580,7 +579,7 @@ def _preprocess_add_items(self, items): else: raise TypeError("Invalid Type: %r" % item) # END for each item - return (paths, entries) + return paths, entries def _store_path(self, filepath, fprogress): """Store file at filepath in the database and return the base index entry @@ -801,10 +800,14 @@ def _items_to_rela_paths(self, items): """Returns a list of repo-relative paths from the given items which may be absolute or relative paths, entries or blobs""" paths = [] + # if string put in list + if isinstance(items, str): + items = [items] + for item in items: if isinstance(item, (BaseIndexEntry, (Blob, Submodule))): paths.append(self._to_relative_path(item.path)) - elif isinstance(item, string_types): + elif isinstance(item, str): paths.append(self._to_relative_path(item)) else: raise TypeError("Invalid item type: %r" % item) @@ -827,7 +830,7 @@ def remove(self, items, working_tree=False, **kwargs): to a path relative to the git repository directory containing the working tree - The path string may include globs, such as *.c. + The path string may include globs, such as \\*.c. - Blob Object Only the path portion is used in this case. @@ -906,7 +909,7 @@ def move(self, items, skip_errors=False, **kwargs): # parse result - first 0:n/2 lines are 'checking ', the remaining ones # are the 'renaming' ones which we parse - for ln in xrange(int(len(mvlines) / 2), len(mvlines)): + for ln in range(int(len(mvlines) / 2), len(mvlines)): tokens = mvlines[ln].split(' to ') assert len(tokens) == 2, "Too many tokens in %s" % mvlines[ln] @@ -951,7 +954,7 @@ def commit(self, message, parent_commits=None, head=True, author=None, if not skip_hooks: run_commit_hook('post-commit', self) return rval - + def _write_commit_editmsg(self, message): with open(self._commit_editmsg_filepath(), "wb") as commit_editmsg_file: commit_editmsg_file.write(message.encode(defenc)) @@ -995,7 +998,7 @@ def checkout(self, paths=None, force=False, fprogress=lambda *args: None, **kwar If False, these will trigger a CheckoutError. :param fprogress: - see Index.add_ for signature and explanation. + see :func:`IndexFile.add` for signature and explanation. The provided progress information will contain None as path and item if no explicit paths are given. Otherwise progress information will be send prior and after a file has been checked out @@ -1007,7 +1010,7 @@ def checkout(self, paths=None, force=False, fprogress=lambda *args: None, **kwar iterable yielding paths to files which have been checked out and are guaranteed to match the version stored in the index - :raise CheckoutError: + :raise exc.CheckoutError: If at least one file failed to be checked out. This is a summary, hence it will checkout as many files as it can anyway. If one of files or directories do not exist in the index @@ -1025,6 +1028,10 @@ def checkout(self, paths=None, force=False, fprogress=lambda *args: None, **kwar if force: args.append("--force") + failed_files = [] + failed_reasons = [] + unknown_lines = [] + def handle_stderr(proc, iter_checked_out_files): stderr = proc.stderr.read() if not stderr: @@ -1032,9 +1039,6 @@ def handle_stderr(proc, iter_checked_out_files): # line contents: stderr = stderr.decode(defenc) # git-checkout-index: this already exists - failed_files = [] - failed_reasons = [] - unknown_lines = [] endings = (' already exists', ' is not in the cache', ' does not exist at stage', ' is unmerged') for line in stderr.splitlines(): if not line.startswith("git checkout-index: ") and not line.startswith("git-checkout-index: "): @@ -1079,11 +1083,11 @@ def handle_stderr(proc, iter_checked_out_files): proc = self.repo.git.checkout_index(*args, **kwargs) proc.wait() fprogress(None, True, None) - rval_iter = (e.path for e in mviter(self.entries)) + rval_iter = (e.path for e in self.entries.values()) handle_stderr(proc, rval_iter) return rval_iter else: - if isinstance(paths, string_types): + if isinstance(paths, str): paths = [paths] # make sure we have our entries loaded before we start checkout_index @@ -1110,7 +1114,7 @@ def handle_stderr(proc, iter_checked_out_files): folder = co_path if not folder.endswith('/'): folder += '/' - for entry in mviter(self.entries): + for entry in self.entries.values(): if entry.path.startswith(folder): p = entry.path self._write_path_to_stdin(proc, p, p, make_exc, @@ -1127,7 +1131,13 @@ def handle_stderr(proc, iter_checked_out_files): checked_out_files.append(co_path) # END path is a file # END for each path - self._flush_stdin_and_wait(proc, ignore_stdout=True) + try: + self._flush_stdin_and_wait(proc, ignore_stdout=True) + except GitCommandError: + # Without parsing stdout we don't know what failed. + raise CheckoutError( + "Some files could not be checked out from the index, probably because they didn't exist.", + failed_files, [], failed_reasons) handle_stderr(proc, checked_out_files) return checked_out_files @@ -1220,7 +1230,7 @@ def diff(self, other=diff.Diffable.Index, paths=None, create_patch=False, **kwar # index against anything but None is a reverse diff with the respective # item. Handle existing -R flags properly. Transform strings to the object # so that we can call diff on it - if isinstance(other, string_types): + if isinstance(other, str): other = self.repo.rev_parse(other) # END object conversion diff --git a/git/index/fun.py b/git/index/fun.py index c8912dd23..e92e8e381 100644 --- a/git/index/fun.py +++ b/git/index/fun.py @@ -15,12 +15,10 @@ from git.cmd import PROC_CREATIONFLAGS, handle_process_output from git.compat import ( - PY3, defenc, force_text, force_bytes, is_posix, - safe_encode, safe_decode, ) from git.exc import ( @@ -73,7 +71,7 @@ def run_commit_hook(name, index, *args): return env = os.environ.copy() - env['GIT_INDEX_FILE'] = safe_decode(index.path) if PY3 else safe_encode(index.path) + env['GIT_INDEX_FILE'] = safe_decode(index.path) env['GIT_EDITOR'] = ':' try: cmd = subprocess.Popen([hp] + list(args), @@ -84,7 +82,7 @@ def run_commit_hook(name, index, *args): close_fds=is_posix, creationflags=PROC_CREATIONFLAGS,) except Exception as ex: - raise HookExecutionError(hp, ex) + raise HookExecutionError(hp, ex) from ex else: stdout = [] stderr = [] @@ -173,8 +171,7 @@ def entry_key(*entry): :param entry: One instance of type BaseIndexEntry or the path and the stage""" if len(entry) == 1: return (entry[0].path, entry[0].stage) - else: - return tuple(entry) + return tuple(entry) # END handle entry @@ -265,7 +262,7 @@ def write_tree_from_cache(entries, odb, sl, si=0): # enter recursion # ci - 1 as we want to count our current item as well - sha, tree_entry_list = write_tree_from_cache(entries, odb, slice(ci - 1, xi), rbound + 1) # @UnusedVariable + sha, _tree_entry_list = write_tree_from_cache(entries, odb, slice(ci - 1, xi), rbound + 1) tree_items_append((sha, S_IFDIR, base)) # skip ahead diff --git a/git/objects/commit.py b/git/objects/commit.py index b7d27d92c..45e6d772c 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -24,7 +24,6 @@ parse_actor_and_date, from_timestamp, ) -from git.compat import text_type from time import ( time, @@ -81,7 +80,7 @@ def __init__(self, repo, binsha, tree=None, author=None, authored_date=None, aut :param tree: Tree Tree object :param author: Actor - is the author string ( will be implicitly converted into an Actor object ) + is the author Actor object :param authored_date: int_seconds_since_epoch is the authored DateTime - use time.gmtime() to convert it into a different format @@ -137,10 +136,45 @@ def __init__(self, repo, binsha, tree=None, author=None, authored_date=None, aut def _get_intermediate_items(cls, commit): return commit.parents + @classmethod + def _calculate_sha_(cls, repo, commit): + '''Calculate the sha of a commit. + + :param repo: Repo object the commit should be part of + :param commit: Commit object for which to generate the sha + ''' + + stream = BytesIO() + commit._serialize(stream) + streamlen = stream.tell() + stream.seek(0) + + istream = repo.odb.store(IStream(cls.type, streamlen, stream)) + return istream.binsha + + def replace(self, **kwargs): + '''Create new commit object from existing commit object. + + Any values provided as keyword arguments will replace the + corresponding attribute in the new object. + ''' + + attrs = {k: getattr(self, k) for k in self.__slots__} + + for attrname in kwargs: + if attrname not in self.__slots__: + raise ValueError('invalid attribute name') + + attrs.update(kwargs) + new_commit = self.__class__(self.repo, self.NULL_BIN_SHA, **attrs) + new_commit.binsha = self._calculate_sha_(self.repo, new_commit) + + return new_commit + def _set_cache_(self, attr): if attr in Commit.__slots__: # read the data in a chunk, its faster - then provide a file wrapper - binsha, typename, self.size, stream = self.repo.odb.stream(self.binsha) # @UnusedVariable + _binsha, _typename, self.size, stream = self.repo.odb.stream(self.binsha) self._deserialize(BytesIO(stream.read())) else: super(Commit, self)._set_cache_(attr) @@ -174,8 +208,7 @@ def count(self, paths='', **kwargs): # as the empty paths version will ignore merge commits for some reason. if paths: return len(self.repo.git.rev_list(self.hexsha, '--', paths, **kwargs).splitlines()) - else: - return len(self.repo.git.rev_list(self.hexsha, **kwargs).splitlines()) + return len(self.repo.git.rev_list(self.hexsha, **kwargs).splitlines()) @property def name_rev(self): @@ -271,7 +304,7 @@ def _iter_from_process_or_stream(cls, repo, proc_or_stream): # END handle extra info assert len(hexsha) == 40, "Invalid line: %s" % hexsha - yield Commit(repo, hex_to_bin(hexsha)) + yield cls(repo, hex_to_bin(hexsha)) # END for each line in stream # TODO: Review this - it seems process handling got a bit out of control # due to many developers trying to fix the open file handles issue @@ -377,13 +410,7 @@ def create_from_tree(cls, repo, tree, message, parent_commits=None, head=False, committer, committer_time, committer_offset, message, parent_commits, conf_encoding) - stream = BytesIO() - new_commit._serialize(stream) - streamlen = stream.tell() - stream.seek(0) - - istream = repo.odb.store(IStream(cls.type, streamlen, stream)) - new_commit.binsha = istream.binsha + new_commit.binsha = cls._calculate_sha_(repo, new_commit) if head: # need late import here, importing git at the very beginning throws @@ -437,7 +464,7 @@ def _serialize(self, stream): write(b"\n") # write plain bytes, be sure its encoded according to our encoding - if isinstance(self.message, text_type): + if isinstance(self.message, str): write(self.message.encode(self.encoding)) else: write(self.message) @@ -484,7 +511,8 @@ def _deserialize(self, stream): buf = enc.strip() while buf: if buf[0:10] == b"encoding ": - self.encoding = buf[buf.find(' ') + 1:].decode('ascii') + self.encoding = buf[buf.find(' ') + 1:].decode( + self.encoding, 'ignore') elif buf[0:7] == b"gpgsig ": sig = buf[buf.find(b' ') + 1:] + b"\n" is_next_header = False @@ -498,7 +526,7 @@ def _deserialize(self, stream): break sig += sigbuf[1:] # end read all signature - self.gpgsig = sig.rstrip(b"\n").decode('ascii') + self.gpgsig = sig.rstrip(b"\n").decode(self.encoding, 'ignore') if is_next_header: continue buf = readline().strip() diff --git a/git/objects/fun.py b/git/objects/fun.py index 38dce0a5d..9b36712e1 100644 --- a/git/objects/fun.py +++ b/git/objects/fun.py @@ -1,12 +1,8 @@ """Module with functions which are supposed to be as fast as possible""" from stat import S_ISDIR from git.compat import ( - byte_ord, safe_decode, - defenc, - xrange, - text_type, - bchr + defenc ) __all__ = ('tree_to_stream', 'tree_entries_from_data', 'traverse_trees_recursive', @@ -22,12 +18,12 @@ def tree_to_stream(entries, write): for binsha, mode, name in entries: mode_str = b'' - for i in xrange(6): - mode_str = bchr(((mode >> (i * 3)) & bit_mask) + ord_zero) + mode_str + for i in range(6): + mode_str = bytes([((mode >> (i * 3)) & bit_mask) + ord_zero]) + mode_str # END for each 8 octal value # git slices away the first octal if its zero - if byte_ord(mode_str[0]) == ord_zero: + if mode_str[0] == ord_zero: mode_str = mode_str[1:] # END save a byte @@ -36,7 +32,7 @@ def tree_to_stream(entries, write): # hence we must convert to an utf8 string for it to work properly. # According to my tests, this is exactly what git does, that is it just # takes the input literally, which appears to be utf8 on linux. - if isinstance(name, text_type): + if isinstance(name, str): name = name.encode(defenc) write(b''.join((mode_str, b' ', name, b'\0', binsha))) # END for each item @@ -57,10 +53,10 @@ def tree_entries_from_data(data): # read mode # Some git versions truncate the leading 0, some don't # The type will be extracted from the mode later - while byte_ord(data[i]) != space_ord: + while data[i] != space_ord: # move existing mode integer up one level being 3 bits # and add the actual ordinal value of the character - mode = (mode << 3) + (byte_ord(data[i]) - ord_zero) + mode = (mode << 3) + (data[i] - ord_zero) i += 1 # END while reading mode @@ -70,7 +66,7 @@ def tree_entries_from_data(data): # parse name, it is NULL separated ns = i - while byte_ord(data[i]) != 0: + while data[i] != 0: i += 1 # END while not reached NULL @@ -156,7 +152,7 @@ def traverse_trees_recursive(odb, tree_shas, path_prefix): # END skip already done items entries = [None for _ in range(nt)] entries[ti] = item - sha, mode, name = item # its faster to unpack @UnusedVariable + _sha, mode, name = item is_dir = S_ISDIR(mode) # type mode bits # find this item in all other tree data items diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index f37da34aa..e3be1a728 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -9,7 +9,6 @@ import git from git.cmd import Git from git.compat import ( - string_types, defenc, is_win, ) @@ -21,7 +20,8 @@ from git.exc import ( InvalidGitRepositoryError, NoSuchPathError, - RepositoryDirtyError + RepositoryDirtyError, + BadName ) from git.objects.base import IndexObject, Object from git.objects.util import Traversable @@ -110,7 +110,7 @@ def __init__(self, repo, binsha, mode=None, path=None, name=None, parent_commit= if url is not None: self._url = url if branch_path is not None: - assert isinstance(branch_path, string_types) + assert isinstance(branch_path, str) self._branch_path = branch_path if name is not None: self._name = name @@ -121,9 +121,9 @@ def _set_cache_(self, attr): # default submodule values try: self.path = reader.get('path') - except cp.NoSectionError: + except cp.NoSectionError as e: raise ValueError("This submodule instance does not exist anymore in '%s' file" - % osp.join(self.repo.working_tree_dir, '.gitmodules')) + % osp.join(self.repo.working_tree_dir, '.gitmodules')) from e # end self._url = reader.get('url') # git-python extension values - optional @@ -189,9 +189,9 @@ def _config_parser(cls, repo, parent_commit, read_only): assert parent_commit is not None, "need valid parent_commit in bare repositories" try: fp_module = cls._sio_modules(parent_commit) - except KeyError: + except KeyError as e: raise IOError("Could not find %s file in the tree of parent commit %s" % - (cls.k_modules_file, parent_commit)) + (cls.k_modules_file, parent_commit)) from e # END handle exceptions # END handle non-bare working tree @@ -233,8 +233,7 @@ def _config_parser_constrained(self, read_only): def _module_abspath(cls, parent_repo, path, name): if cls._need_gitfile_submodules(parent_repo.git): return osp.join(parent_repo.git_dir, 'modules', name) - else: - return osp.join(parent_repo.working_tree_dir, path) + return osp.join(parent_repo.working_tree_dir, path) # end @classmethod @@ -310,7 +309,7 @@ def _write_git_file_and_module_config(cls, working_tree_dir, module_abspath): #{ Edit Interface @classmethod - def add(cls, repo, name, path, url=None, branch=None, no_checkout=False): + def add(cls, repo, name, path, url=None, branch=None, no_checkout=False, depth=None, env=None): """Add a new submodule to the given repository. This will alter the index as well as the .gitmodules file, but will not create a new commit. If the submodule already exists, no matter if the configuration differs @@ -335,6 +334,14 @@ def add(cls, repo, name, path, url=None, branch=None, no_checkout=False): Examples are 'master' or 'feature/new' :param no_checkout: if True, and if the repository has to be cloned manually, no checkout will be performed + :param depth: Create a shallow clone with a history truncated to the + specified number of commits. + :param env: Optional dictionary containing the desired environment variables. + Note: Provided variables will be used to update the execution + environment for `git`. If some variable is not specified in `env` + and is defined in `os.environ`, value from `os.environ` will be used. + If you want to unset some variable, consider providing empty string + as its value. :return: The newly created submodule instance :note: works atomically, such that no change will be done if the repository update fails for instance""" @@ -396,8 +403,14 @@ def add(cls, repo, name, path, url=None, branch=None, no_checkout=False): kwargs['b'] = br.name # END setup checkout-branch + if depth: + if isinstance(depth, int): + kwargs['depth'] = depth + else: + raise ValueError("depth should be an integer") + # _clone_repo(cls, repo, url, path, name, **kwargs): - mrepo = cls._clone_repo(repo, url, path, name, **kwargs) + mrepo = cls._clone_repo(repo, url, path, name, env=env, **kwargs) # END verify url ## See #525 for ensuring git urls in config-files valid under Windows. @@ -429,7 +442,7 @@ def add(cls, repo, name, path, url=None, branch=None, no_checkout=False): return sm def update(self, recursive=False, init=True, to_latest_revision=False, progress=None, dry_run=False, - force=False, keep_going=False): + force=False, keep_going=False, env=None): """Update the repository of this submodule to point to the checkout we point at with the binsha of this instance. @@ -454,6 +467,12 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress= Unless dry_run is set as well, keep_going could cause subsequent/inherited errors you wouldn't see otherwise. In conjunction with dry_run, it can be useful to anticipate all errors when updating submodules + :param env: Optional dictionary containing the desired environment variables. + Note: Provided variables will be used to update the execution + environment for `git`. If some variable is not specified in `env` + and is defined in `os.environ`, value from `os.environ` will be used. + If you want to unset some variable, consider providing empty string + as its value. :note: does nothing in bare repositories :note: method is definitely not atomic if recurisve is True :return: self""" @@ -509,9 +528,9 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress= if not dry_run and osp.isdir(checkout_module_abspath): try: os.rmdir(checkout_module_abspath) - except OSError: + except OSError as e: raise OSError("Module directory at %r does already exist and is non-empty" - % checkout_module_abspath) + % checkout_module_abspath) from e # END handle OSError # END handle directory removal @@ -520,7 +539,7 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress= progress.update(BEGIN | CLONE, 0, 1, prefix + "Cloning url '%s' to '%s' in submodule %r" % (self.url, checkout_module_abspath, self.name)) if not dry_run: - mrepo = self._clone_repo(self.repo, self.url, self.path, self.name, n=True) + mrepo = self._clone_repo(self.repo, self.url, self.path, self.name, n=True, env=env) # END handle dry-run progress.update(END | CLONE, 0, 1, prefix + "Done cloning to %s" % checkout_module_abspath) @@ -540,7 +559,7 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress= mrepo.head.set_reference(local_branch, logmsg="submodule: attaching head to %s" % local_branch) mrepo.head.ref.set_tracking_branch(remote_branch) except (IndexError, InvalidGitRepositoryError): - log.warn("Failed to checkout tracking branch %s", self.branch_path) + log.warning("Failed to checkout tracking branch %s", self.branch_path) # END handle tracking branch # NOTE: Have to write the repo config file as well, otherwise @@ -730,8 +749,8 @@ def move(self, module_path, configuration=True, module=True): del(index.entries[ekey]) nentry = git.IndexEntry(entry[:3] + (module_checkout_path,) + entry[4:]) index.entries[tekey] = nentry - except KeyError: - raise InvalidGitRepositoryError("Submodule's entry at %r did not exist" % (self.path)) + except KeyError as e: + raise InvalidGitRepositoryError("Submodule's entry at %r did not exist" % (self.path)) from e # END handle submodule doesn't exist # update configuration @@ -847,7 +866,7 @@ def remove(self, module=True, force=False, configuration=True, dry_run=False): # have to manually delete references as python's scoping is # not existing, they could keep handles open ( on windows this is a problem ) if len(rrefs): - del(rref) + del(rref) # skipcq: PYL-W0631 # END handle remotes del(rrefs) del(remote) @@ -864,9 +883,8 @@ def remove(self, module=True, force=False, configuration=True, dry_run=False): rmtree(wtd) except Exception as ex: if HIDE_WINDOWS_KNOWN_ERRORS: - raise SkipTest("FIXME: fails with: PermissionError\n %s", ex) - else: - raise + raise SkipTest("FIXME: fails with: PermissionError\n {}".format(ex)) from ex + raise # END delete tree if possible # END handle force @@ -876,7 +894,7 @@ def remove(self, module=True, force=False, configuration=True, dry_run=False): rmtree(git_dir) except Exception as ex: if HIDE_WINDOWS_KNOWN_ERRORS: - raise SkipTest("FIXME: fails with: PermissionError\n %s", ex) + raise SkipTest("FIXME: fails with: PermissionError\n %s", ex) from ex else: raise # end handle separate bare repository @@ -959,7 +977,7 @@ def set_parent_commit(self, commit, check=True): @unbare_repo def config_writer(self, index=None, write=True): """:return: a config writer instance allowing you to read and write the data - belonging to this submodule into the .gitmodules file. + belonging to this submodule into the .gitmodules file. :param index: if not None, an IndexFile instance which should be written. defaults to the index of the Submodule's parent repository. @@ -1040,8 +1058,8 @@ def module(self): if repo != self.repo: return repo # END handle repo uninitialized - except (InvalidGitRepositoryError, NoSuchPathError): - raise InvalidGitRepositoryError("No valid repository at %s" % module_checkout_abspath) + except (InvalidGitRepositoryError, NoSuchPathError) as e: + raise InvalidGitRepositoryError("No valid repository at %s" % module_checkout_abspath) from e else: raise InvalidGitRepositoryError("Repository at %r was not yet checked out" % module_checkout_abspath) # END handle exceptions @@ -1156,11 +1174,11 @@ def children(self): @classmethod def iter_items(cls, repo, parent_commit='HEAD'): """:return: iterator yielding Submodule instances available in the given repository""" - pc = repo.commit(parent_commit) # parent commit instance try: + pc = repo.commit(parent_commit) # parent commit instance parser = cls._config_parser(repo, pc, read_only=True) - except IOError: - raise StopIteration + except (IOError, BadName): + return # END handle empty iterator rt = pc.tree # root tree @@ -1184,8 +1202,9 @@ def iter_items(cls, repo, parent_commit='HEAD'): entry = index.entries[index.entry_key(p, 0)] sm = Submodule(repo, entry.binsha, entry.mode, entry.path) except KeyError: - raise InvalidGitRepositoryError( - "Gitmodule path %r did not exist in revision of parent commit %s" % (p, parent_commit)) + # The submodule doesn't exist, probably it wasn't + # removed from the .gitmodules file. + continue # END handle keyerror # END handle critical error diff --git a/git/objects/submodule/root.py b/git/objects/submodule/root.py index f2035e5b2..0af487100 100644 --- a/git/objects/submodule/root.py +++ b/git/objects/submodule/root.py @@ -265,7 +265,7 @@ def update(self, previous_commit=None, recursive=True, force_remove=False, init= # this way, it will be checked out in the next step # This will change the submodule relative to us, so # the user will be able to commit the change easily - log.warn("Current sha %s was not contained in the tracking\ + log.warning("Current sha %s was not contained in the tracking\ branch at the new remote, setting it the the remote's tracking branch", sm.hexsha) sm.binsha = rref.commit.binsha # END reset binsha diff --git a/git/objects/tag.py b/git/objects/tag.py index 19cb04bf2..b9bc6c248 100644 --- a/git/objects/tag.py +++ b/git/objects/tag.py @@ -50,17 +50,18 @@ def _set_cache_(self, attr): """Cache all our attributes at once""" if attr in TagObject.__slots__: ostream = self.repo.odb.stream(self.binsha) - lines = ostream.read().decode(defenc).splitlines() + lines = ostream.read().decode(defenc, 'replace').splitlines() - obj, hexsha = lines[0].split(" ") # object @UnusedVariable - type_token, type_name = lines[1].split(" ") # type @UnusedVariable + _obj, hexsha = lines[0].split(" ") + _type_token, type_name = lines[1].split(" ") self.object = \ get_object_type_by_name(type_name.encode('ascii'))(self.repo, hex_to_bin(hexsha)) self.tag = lines[2][4:] # tag - tagger_info = lines[3] # tagger - self.tagger, self.tagged_date, self.tagger_tz_offset = parse_actor_and_date(tagger_info) + if len(lines) > 3: + tagger_info = lines[3] # tagger + self.tagger, self.tagged_date, self.tagger_tz_offset = parse_actor_and_date(tagger_info) # line 4 empty - it could mark the beginning of the next header # in case there really is no message, it would not exist. Otherwise diff --git a/git/objects/tree.py b/git/objects/tree.py index d6134e308..68e98329b 100644 --- a/git/objects/tree.py +++ b/git/objects/tree.py @@ -11,17 +11,13 @@ from .base import IndexObject from .blob import Blob from .submodule.base import Submodule -from git.compat import string_types from .fun import ( tree_entries_from_data, tree_to_stream ) -from git.compat import PY3 - -if PY3: - cmp = lambda a, b: (a > b) - (a < b) +cmp = lambda a, b: (a > b) - (a < b) __all__ = ("TreeModifier", "Tree") @@ -207,8 +203,8 @@ def _iter_convert_to_object(self, iterable): path = join_path(self.path, name) try: yield self._map_id_to_type[mode >> 12](self.repo, binsha, mode, path) - except KeyError: - raise TypeError("Unknown mode %o found in tree data for path '%s'" % (mode, path)) + except KeyError as e: + raise TypeError("Unknown mode %o found in tree data for path '%s'" % (mode, path)) from e # END for each item def join(self, file): @@ -293,7 +289,7 @@ def __getitem__(self, item): info = self._cache[item] return self._map_id_to_type[info[1] >> 12](self.repo, info[0], info[1], join_path(self.path, info[2])) - if isinstance(item, string_types): + if isinstance(item, str): # compatibility return self.join(item) # END index is basestring diff --git a/git/objects/util.py b/git/objects/util.py index 7b6a27631..d15d83c35 100644 --- a/git/objects/util.py +++ b/git/objects/util.py @@ -105,6 +105,9 @@ def __init__(self, secs_west_of_utc, name=None): self._offset = timedelta(seconds=-secs_west_of_utc) self._name = name or 'fixed' + def __reduce__(self): + return tzoffset, (-self._offset.total_seconds(), self._name) + def utcoffset(self, dt): return self._offset @@ -132,6 +135,7 @@ def parse_date(string_date): """ Parse the given date as one of the following + * aware datetime instance * Git internal format: timestamp offset * RFC 2822: Thu, 07 Apr 2005 22:13:13 +0200. * ISO 8601 2005-04-07T22:13:13 @@ -141,10 +145,16 @@ def parse_date(string_date): :raise ValueError: If the format could not be understood :note: Date can also be YYYY.MM.DD, MM/DD/YYYY and DD.MM.YYYY. """ + if isinstance(string_date, datetime) and string_date.tzinfo: + offset = -int(string_date.utcoffset().total_seconds()) + return int(string_date.astimezone(utc).timestamp()), offset + # git time try: if string_date.count(' ') == 1 and string_date.rfind(':') == -1: timestamp, offset = string_date.split() + if timestamp.startswith('@'): + timestamp = timestamp[1:] timestamp = int(timestamp) return timestamp, utctz_to_altz(verify_utctz(offset)) else: @@ -198,8 +208,8 @@ def parse_date(string_date): # still here ? fail raise ValueError("no format matched") # END handle format - except Exception: - raise ValueError("Unsupported date format: %s" % string_date) + except Exception as e: + raise ValueError("Unsupported date format: %s" % string_date) from e # END handle exceptions diff --git a/git/test/fixtures/ls_tree_empty b/git/py.typed similarity index 100% rename from git/test/fixtures/ls_tree_empty rename to git/py.typed diff --git a/git/refs/head.py b/git/refs/head.py index 4b0abb062..cc8385908 100644 --- a/git/refs/head.py +++ b/git/refs/head.py @@ -219,8 +219,7 @@ def checkout(self, force=False, **kwargs): self.repo.git.checkout(self, **kwargs) if self.repo.head.is_detached: return self.repo.head - else: - return self.repo.active_branch + return self.repo.active_branch #{ Configuration def _config_parser(self, read_only): diff --git a/git/refs/log.py b/git/refs/log.py index fc962680c..fcd2c23cf 100644 --- a/git/refs/log.py +++ b/git/refs/log.py @@ -1,12 +1,7 @@ import re import time -from git.compat import ( - PY3, - xrange, - string_types, - defenc -) +from git.compat import defenc from git.objects.util import ( parse_date, Serializable, @@ -36,25 +31,19 @@ class RefLogEntry(tuple): def __repr__(self): """Representation of ourselves in git reflog format""" - res = self.format() - if PY3: - return res - else: - # repr must return a string, which it will auto-encode from unicode using the default encoding. - # This usually fails, so we encode ourselves - return res.encode(defenc) + return self.format() def format(self): """:return: a string suitable to be placed in a reflog file""" act = self.actor time = self.time - return u"{} {} {} <{}> {!s} {}\t{}\n".format(self.oldhexsha, - self.newhexsha, - act.name, - act.email, - time[0], - altz_to_utctz_str(time[1]), - self.message) + return "{} {} {} <{}> {!s} {}\t{}\n".format(self.oldhexsha, + self.newhexsha, + act.name, + act.email, + time[0], + altz_to_utctz_str(time[1]), + self.message) @property def oldhexsha(self): @@ -85,7 +74,7 @@ def message(self): return self[4] @classmethod - def new(self, oldhexsha, newhexsha, actor, time, tz_offset, message): + def new(cls, oldhexsha, newhexsha, actor, time, tz_offset, message): # skipcq: PYL-W0621 """:return: New instance of a RefLogEntry""" if not isinstance(actor, Actor): raise ValueError("Need actor instance, got %s" % actor) @@ -122,7 +111,7 @@ def from_line(cls, line): # END handle missing end brace actor = Actor._from_string(info[82:email_end + 1]) - time, tz_offset = parse_date(info[email_end + 2:]) + time, tz_offset = parse_date(info[email_end + 2:]) # skipcq: PYL-W0621 return RefLogEntry((oldhexsha, newhexsha, actor, (time, tz_offset), msg)) @@ -193,7 +182,7 @@ def iter_entries(cls, stream): :param stream: file-like object containing the revlog in its native format or basestring instance pointing to a file to read""" new_entry = RefLogEntry.from_line - if isinstance(stream, string_types): + if isinstance(stream, str): stream = file_contents_ro_filepath(stream) # END handle stream type while True: @@ -217,19 +206,18 @@ def entry_at(cls, filepath, index): all other lines. Nonetheless, the whole file has to be read if the index is negative """ - fp = open(filepath, 'rb') - if index < 0: - return RefLogEntry.from_line(fp.readlines()[index].strip()) - else: + with open(filepath, 'rb') as fp: + if index < 0: + return RefLogEntry.from_line(fp.readlines()[index].strip()) # read until index is reached - for i in xrange(index + 1): + for i in range(index + 1): line = fp.readline() if not line: break # END abort on eof # END handle runup - if i != index or not line: + if i != index or not line: # skipcq:PYL-W0631 raise IndexError # END handle exception diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py index a8ca6538f..22d9c1d51 100644 --- a/git/refs/symbolic.py +++ b/git/refs/symbolic.py @@ -1,9 +1,6 @@ import os -from git.compat import ( - string_types, - defenc -) +from git.compat import defenc from git.objects import Object, Commit from git.util import ( join_path, @@ -90,7 +87,7 @@ def _iter_packed_refs(cls, repo): """Returns an iterator yielding pairs of sha1/path pairs (as bytes) for the corresponding refs. :note: The packed refs file will be kept open as long as we iterate""" try: - with open(cls._get_packed_refs_path(repo), 'rt') as fp: + with open(cls._get_packed_refs_path(repo), 'rt', encoding='UTF-8') as fp: for line in fp: line = line.strip() if not line: @@ -145,7 +142,7 @@ def _get_ref_info_helper(cls, repo, ref_path): tokens = None repodir = _git_dir(repo, ref_path) try: - with open(osp.join(repodir, ref_path), 'rt') as fp: + with open(osp.join(repodir, ref_path), 'rt', encoding='UTF-8') as fp: value = fp.read().rstrip() # Don't only split on spaces, but on whitespace, which allows to parse lines like # 60b64ef992065e2600bfef6187a97f92398a9144 branch 'master' of git-server:/path/to/repo @@ -222,8 +219,8 @@ def set_commit(self, commit, logmsg=None): else: try: invalid_type = self.repo.rev_parse(commit).type != Commit.type - except (BadObject, BadName): - raise ValueError("Invalid object: %s" % commit) + except (BadObject, BadName) as e: + raise ValueError("Invalid object: %s" % commit) from e # END handle exception # END verify type @@ -300,12 +297,12 @@ def set_reference(self, ref, logmsg=None): elif isinstance(ref, Object): obj = ref write_value = ref.hexsha - elif isinstance(ref, string_types): + elif isinstance(ref, str): try: obj = self.repo.rev_parse(ref + "^{}") # optionally deref tags write_value = obj.hexsha - except (BadObject, BadName): - raise ValueError("Could not extract object from %s" % ref) + except (BadObject, BadName) as e: + raise ValueError("Could not extract object from %s" % ref) from e # END end try string else: raise ValueError("Unrecognized Value: %r" % ref) @@ -448,12 +445,14 @@ def delete(cls, repo, path): made_change = False dropped_last_line = False for line in reader: + line = line.decode(defenc) + _, _, line_ref = line.partition(' ') + line_ref = line_ref.strip() # keep line if it is a comment or if the ref to delete is not # in the line # If we deleted the last line and this one is a tag-reference object, # we drop it as well - line = line.decode(defenc) - if (line.startswith('#') or full_ref_path not in line) and \ + if (line.startswith('#') or full_ref_path != line_ref) and \ (not dropped_last_line or dropped_last_line and not line.startswith('^')): new_lines.append(line) dropped_last_line = False @@ -469,7 +468,7 @@ def delete(cls, repo, path): # write-binary is required, otherwise windows will # open the file in text mode and change LF to CRLF ! with open(pack_file_path, 'wb') as fd: - fd.writelines(l.encode(defenc) for l in new_lines) + fd.writelines(line.encode(defenc) for line in new_lines) except (OSError, IOError): pass # it didn't exist at all @@ -514,7 +513,7 @@ def _create(cls, repo, path, resolve, reference, force, logmsg=None): return ref @classmethod - def create(cls, repo, path, reference='HEAD', force=False, logmsg=None): + def create(cls, repo, path, reference='HEAD', force=False, logmsg=None, **kwargs): """Create a new symbolic reference, hence a reference pointing to another reference. :param repo: @@ -614,7 +613,7 @@ def _iter_items(cls, repo, common_path=None): # END for each directory to walk # read packed refs - for sha, rela_path in cls._iter_packed_refs(repo): # @UnusedVariable + for _sha, rela_path in cls._iter_packed_refs(repo): if rela_path.startswith(common_path): rela_paths.add(rela_path) # END relative path matches common path diff --git a/git/remote.py b/git/remote.py index 8aec68e15..4194af1f0 100644 --- a/git/remote.py +++ b/git/remote.py @@ -22,8 +22,6 @@ join_path, ) -import os.path as osp - from .config import ( SectionConstraint, cp, @@ -36,6 +34,14 @@ TagReference ) +# typing------------------------------------------------------- + +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from git.repo.base import Repo + +# ------------------------------------------------------------- log = logging.getLogger('git.remote') log.addHandler(logging.NullHandler()) @@ -75,8 +81,7 @@ def to_progress_instance(progress): return RemoteProgress() # assume its the old API with an instance of RemoteProgress. - else: - return progress + return progress class PushInfo(object): @@ -147,8 +152,8 @@ def _from_line(cls, remote, line): # control character handling try: flags |= cls._flag_map[control_character] - except KeyError: - raise ValueError("Control character %r unknown as parsed from line %r" % (control_character, line)) + except KeyError as e: + raise ValueError("Control character %r unknown as parsed from line %r" % (control_character, line)) from e # END handle control character # from_to handling @@ -156,7 +161,10 @@ def _from_line(cls, remote, line): if flags & cls.DELETED: from_ref = None else: - from_ref = Reference.from_path(remote.repo, from_ref_string) + if from_ref_string == "(delete)": + from_ref = None + else: + from_ref = Reference.from_path(remote.repo, from_ref_string) # commit handling, could be message or commit info old_commit = None @@ -180,7 +188,7 @@ def _from_line(cls, remote, line): split_token = "..." if control_character == " ": split_token = ".." - old_sha, new_sha = summary.split(' ')[0].split(split_token) # @UnusedVariable + old_sha, _new_sha = summary.split(' ')[0].split(split_token) # have to use constructor here as the sha usually is abbreviated old_commit = old_sha # END message handling @@ -292,17 +300,17 @@ def _from_line(cls, repo, line, fetch_line): # parse lines control_character, operation, local_remote_ref, remote_local_ref, note = match.groups() try: - new_hex_sha, fetch_operation, fetch_note = fetch_line.split("\t") # @UnusedVariable + _new_hex_sha, _fetch_operation, fetch_note = fetch_line.split("\t") ref_type_name, fetch_note = fetch_note.split(' ', 1) - except ValueError: # unpack error - raise ValueError("Failed to parse FETCH_HEAD line: %r" % fetch_line) + except ValueError as e: # unpack error + raise ValueError("Failed to parse FETCH_HEAD line: %r" % fetch_line) from e # parse flags from control_character flags = 0 try: flags |= cls._flag_map[control_character] - except KeyError: - raise ValueError("Control character %r unknown as parsed from line %r" % (control_character, line)) + except KeyError as e: + raise ValueError("Control character %r unknown as parsed from line %r" % (control_character, line)) from e # END control char exception handling # parse operation string for more info - makes no sense for symbolic refs, but we parse it anyway @@ -403,7 +411,7 @@ def __init__(self, repo, name): :param repo: The repository we are a remote of :param name: the name of the remote, i.e. 'origin'""" - self.repo = repo + self.repo = repo # type: 'Repo' self.name = name if is_win: @@ -448,7 +456,7 @@ def __repr__(self): return '' % (self.__class__.__name__, self.name) def __eq__(self, other): - return self.name == other.name + return isinstance(other, type(self)) and self.name == other.name def __ne__(self, other): return not (self == other) @@ -544,10 +552,9 @@ def urls(self): except GitCommandError as ex: if any(msg in str(ex) for msg in ['correct access rights', 'cannot run ssh']): # If ssh is not setup to access this repository, see issue 694 - result = Git().execute( - ['git', 'config', '--get', 'remote.%s.url' % self.name] - ) - yield result + remote_details = self.repo.git.config('--get-all', 'remote.%s.url' % self.name) + for line in remote_details.split('\n'): + yield line else: raise ex else: @@ -684,8 +691,9 @@ def _get_fetch_info_from_stderr(self, proc, progress): continue # read head information - with open(osp.join(self.repo.common_dir, 'FETCH_HEAD'), 'rb') as fp: - fetch_head_info = [l.decode(defenc) for l in fp.readlines()] + fetch_head = SymbolicReference(self.repo, "FETCH_HEAD") + with open(fetch_head.abspath, 'rb') as fp: + fetch_head_info = [line.decode(defenc) for line in fp.readlines()] l_fil = len(fetch_info_lines) l_fhi = len(fetch_head_info) @@ -695,6 +703,8 @@ def _get_fetch_info_from_stderr(self, proc, progress): msg += "Will ignore extra progress lines or fetch head lines." msg %= (l_fil, l_fhi) log.debug(msg) + log.debug("info lines: " + str(fetch_info_lines)) + log.debug("head info : " + str(fetch_head_info)) if l_fil < l_fhi: fetch_head_info = fetch_head_info[:l_fil] else: @@ -702,8 +712,12 @@ def _get_fetch_info_from_stderr(self, proc, progress): # end truncate correct list # end sanity check + sanitization - output.extend(FetchInfo._from_line(self.repo, err_line, fetch_line) - for err_line, fetch_line in zip(fetch_info_lines, fetch_head_info)) + for err_line, fetch_line in zip(fetch_info_lines, fetch_head_info): + try: + output.append(FetchInfo._from_line(self.repo, err_line, fetch_line)) + except ValueError as exc: + log.debug("Caught error while parsing line: %s", exc) + log.warning("Git informed while fetching: %s", err_line.strip()) return output def _get_push_info(self, proc, progress): @@ -714,7 +728,7 @@ def _get_push_info(self, proc, progress): # read the lines manually as it will use carriage returns between the messages # to override the previous one. This is why we read the bytes manually progress_handler = progress.new_message_handler() - output = IterableList('name') + output = [] def stdout_handler(line): try: @@ -748,7 +762,7 @@ def _assert_refspec(self): finally: config.release() - def fetch(self, refspec=None, progress=None, **kwargs): + def fetch(self, refspec=None, progress=None, verbose=True, **kwargs): """Fetch the latest changes for this remote :param refspec: @@ -767,6 +781,7 @@ def fetch(self, refspec=None, progress=None, **kwargs): underlying git-fetch does) - supplying a list rather than a string for 'refspec' will make use of this facility. :param progress: See 'push' method + :param verbose: Boolean for verbose output :param kwargs: Additional arguments to be passed to git-fetch :return: IterableList(FetchInfo, ...) list of FetchInfo instances providing detailed @@ -785,7 +800,7 @@ def fetch(self, refspec=None, progress=None, **kwargs): args = [refspec] proc = self.repo.git.fetch(self, *args, as_process=True, with_stdout=False, - universal_newlines=True, v=True, **kwargs) + universal_newlines=True, v=verbose, **kwargs) res = self._get_fetch_info_from_stderr(proc, progress) if hasattr(self.repo.odb, 'update_cache'): self.repo.odb.update_cache() @@ -819,10 +834,8 @@ def push(self, refspec=None, progress=None, **kwargs): * None to discard progress information * A function (callable) that is called with the progress information. - Signature: ``progress(op_code, cur_count, max_count=None, message='')``. - - `Click here `_ for a description of all arguments + `Click here `__ for a description of all arguments given to the function. * An instance of a class derived from ``git.RemoteProgress`` that overrides the ``update()`` function. @@ -830,13 +843,13 @@ def push(self, refspec=None, progress=None, **kwargs): :note: No further progress information is returned after push returns. :param kwargs: Additional arguments to be passed to git-push :return: - IterableList(PushInfo, ...) iterable list of PushInfo instances, each + list(PushInfo, ...) list of PushInfo instances, each one informing about an individual head which had been updated on the remote side. If the push contains rejected heads, these will have the PushInfo.ERROR bit set in their flags. If the operation fails completely, the length of the returned IterableList will - be null.""" + be 0.""" kwargs = add_progress(kwargs, self.repo.git, progress) proc = self.repo.git.push(self, refspec, porcelain=True, as_process=True, universal_newlines=True, **kwargs) diff --git a/git/repo/base.py b/git/repo/base.py index 023582b56..a28c9d289 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -4,7 +4,6 @@ # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php -from collections import namedtuple import logging import os import re @@ -15,11 +14,8 @@ handle_process_output ) from git.compat import ( - text_type, defenc, - PY3, safe_decode, - range, is_win, ) from git.config import GitConfigParser @@ -29,27 +25,44 @@ from git.objects import Submodule, RootModule, Commit from git.refs import HEAD, Head, Reference, TagReference from git.remote import Remote, add_progress, to_progress_instance -from git.util import Actor, finalize_process, decygpath, hex_to_bin, expand_path +from git.util import Actor, finalize_process, decygpath, hex_to_bin, expand_path, remove_password_if_present import os.path as osp from .fun import rev_parse, is_git_dir, find_submodule_git_dir, touch, find_worktree_git_dir import gc import gitdb -try: - import pathlib -except ImportError: - pathlib = None +# typing ------------------------------------------------------ +from git.types import TBD, PathLike +from typing_extensions import Literal +from typing import (Any, BinaryIO, Callable, Dict, + Iterator, List, Mapping, Optional, + TextIO, Tuple, Type, Union, + NamedTuple, cast, TYPE_CHECKING) -log = logging.getLogger(__name__) +if TYPE_CHECKING: # only needed for types + from git.util import IterableList + from git.refs.symbolic import SymbolicReference + from git.objects import TagObject, Blob, Tree # NOQA: F401 + +Lit_config_levels = Literal['system', 'global', 'user', 'repository'] -BlameEntry = namedtuple('BlameEntry', ['commit', 'linenos', 'orig_path', 'orig_linenos']) +# ----------------------------------------------------------- +log = logging.getLogger(__name__) __all__ = ('Repo',) +BlameEntry = NamedTuple('BlameEntry', [ + ('commit', Dict[str, TBD]), + ('linenos', range), + ('orig_path', Optional[str]), + ('orig_linenos', range)] +) + + class Repo(object): """Represents a git repository and allows you to query references, gather commit information, generate diffs, create and clone repositories query @@ -66,28 +79,30 @@ class Repo(object): 'git_dir' is the .git repository directory, which is always set.""" DAEMON_EXPORT_FILE = 'git-daemon-export-ok' - git = None # Must exist, or __del__ will fail in case we raise on `__init__()` - working_dir = None - _working_tree_dir = None - git_dir = None - _common_dir = None + git = cast('Git', None) # Must exist, or __del__ will fail in case we raise on `__init__()` + working_dir = None # type: Optional[PathLike] + _working_tree_dir = None # type: Optional[PathLike] + git_dir = None # type: Optional[PathLike] + _common_dir = None # type: Optional[PathLike] # precompiled regex re_whitespace = re.compile(r'\s+') re_hexsha_only = re.compile('^[0-9A-Fa-f]{40}$') re_hexsha_shortened = re.compile('^[0-9A-Fa-f]{4,40}$') + re_envvars = re.compile(r'(\$(\{\s?)?[a-zA-Z_]\w*(\}\s?)?|%\s?[a-zA-Z_]\w*\s?%)') re_author_committer_start = re.compile(r'^(author|committer)') re_tab_full_line = re.compile(r'^\t(.*)$') # invariants # represents the configuration level of a configuration file - config_level = ("system", "user", "global", "repository") + config_level = ("system", "user", "global", "repository") # type: Tuple[Lit_config_levels, ...] # Subclass configuration # Subclasses may easily bring in their own custom types by placing a constructor or type here GitCommandWrapperType = Git - def __init__(self, path=None, odbt=GitCmdObjectDB, search_parent_directories=False, expand_vars=True): + def __init__(self, path: Optional[PathLike] = None, odbt: Type[GitCmdObjectDB] = GitCmdObjectDB, + search_parent_directories: bool = False, expand_vars: bool = True) -> None: """Create a new Repo instance :param path: @@ -97,6 +112,7 @@ def __init__(self, path=None, odbt=GitCmdObjectDB, search_parent_directories=Fal repo = Repo("/Users/mtrier/Development/git-python.git") repo = Repo("~/Development/git-python.git") repo = Repo("$REPOSITORIES/Development/git-python.git") + repo = Repo("C:\\Users\\mtrier\\Development\\git-python\\.git") - In *Cygwin*, path may be a `'cygdrive/...'` prefixed path. - If it evaluates to false, :envvar:`GIT_DIR` is used, and if this also evals to false, @@ -123,12 +139,13 @@ def __init__(self, path=None, odbt=GitCmdObjectDB, search_parent_directories=Fal epath = epath or path or os.getcwd() if not isinstance(epath, str): epath = str(epath) - if expand_vars and ("%" in epath or "$" in epath): + if expand_vars and re.search(self.re_envvars, epath): warnings.warn("The use of environment variables in paths is deprecated" + "\nfor security reasons and may be removed in the future!!") epath = expand_path(epath, expand_vars) - if not os.path.exists(epath): - raise NoSuchPathError(epath) + if epath is not None: + if not os.path.exists(epath): + raise NoSuchPathError(epath) ## Walk up the path to find the `.git` dir. # @@ -140,7 +157,21 @@ def __init__(self, path=None, odbt=GitCmdObjectDB, search_parent_directories=Fal # removed. It's just cleaner. if is_git_dir(curpath): self.git_dir = curpath - self._working_tree_dir = os.getenv('GIT_WORK_TREE', os.path.dirname(self.git_dir)) + # from man git-config : core.worktree + # Set the path to the root of the working tree. If GIT_COMMON_DIR environment + # variable is set, core.worktree is ignored and not used for determining the + # root of working tree. This can be overridden by the GIT_WORK_TREE environment + # variable. The value can be an absolute path or relative to the path to the .git + # directory, which is either specified by GIT_DIR, or automatically discovered. + # If GIT_DIR is specified but none of GIT_WORK_TREE and core.worktree is specified, + # the current working directory is regarded as the top level of your working tree. + self._working_tree_dir = os.path.dirname(self.git_dir) + if os.environ.get('GIT_COMMON_DIR') is None: + gitconf = self.config_reader("repository") + if gitconf.has_option('core', 'worktree'): + self._working_tree_dir = gitconf.get('core', 'worktree') + if 'GIT_WORK_TREE' in os.environ: + self._working_tree_dir = os.getenv('GIT_WORK_TREE') break dotgit = osp.join(curpath, '.git') @@ -165,6 +196,7 @@ def __init__(self, path=None, odbt=GitCmdObjectDB, search_parent_directories=Fal # END while curpath if self.git_dir is None: + self.git_dir = cast(PathLike, self.git_dir) raise InvalidGitRepositoryError(epath) self._bare = False @@ -177,7 +209,7 @@ def __init__(self, path=None, odbt=GitCmdObjectDB, search_parent_directories=Fal try: common_dir = open(osp.join(self.git_dir, 'commondir'), 'rt').readlines()[0].strip() self._common_dir = osp.join(self.git_dir, common_dir) - except (OSError, IOError): + except OSError: self._common_dir = None # adjust the wd in case we are actually bare - we didn't know that @@ -186,28 +218,29 @@ def __init__(self, path=None, odbt=GitCmdObjectDB, search_parent_directories=Fal self._working_tree_dir = None # END working dir handling - self.working_dir = self._working_tree_dir or self.common_dir + self.working_dir = self._working_tree_dir or self.common_dir # type: Optional[PathLike] self.git = self.GitCommandWrapperType(self.working_dir) # special handling, in special times - args = [osp.join(self.common_dir, 'objects')] + rootpath = osp.join(self.common_dir, 'objects') if issubclass(odbt, GitCmdObjectDB): - args.append(self.git) - self.odb = odbt(*args) + self.odb = odbt(rootpath, self.git) + else: + self.odb = odbt(rootpath) - def __enter__(self): + def __enter__(self) -> 'Repo': return self - def __exit__(self, exc_type, exc_value, traceback): + def __exit__(self, exc_type: TBD, exc_value: TBD, traceback: TBD) -> None: self.close() - def __del__(self): + def __del__(self) -> None: try: self.close() except Exception: pass - def close(self): + def close(self) -> None: if self.git: self.git.clear_cache() # Tempfiles objects on Windows are holding references to @@ -222,25 +255,27 @@ def close(self): if is_win: gc.collect() - def __eq__(self, rhs): - if isinstance(rhs, Repo): + def __eq__(self, rhs: object) -> bool: + if isinstance(rhs, Repo) and self.git_dir: return self.git_dir == rhs.git_dir return False - def __ne__(self, rhs): + def __ne__(self, rhs: object) -> bool: return not self.__eq__(rhs) - def __hash__(self): + def __hash__(self) -> int: return hash(self.git_dir) # Description property - def _get_description(self): - filename = osp.join(self.git_dir, 'description') + def _get_description(self) -> str: + if self.git_dir: + filename = osp.join(self.git_dir, 'description') with open(filename, 'rb') as fp: return fp.read().rstrip().decode(defenc) - def _set_description(self, descr): - filename = osp.join(self.git_dir, 'description') + def _set_description(self, descr: str) -> None: + if self.git_dir: + filename = osp.join(self.git_dir, 'description') with open(filename, 'wb') as fp: fp.write((descr + '\n').encode(defenc)) @@ -250,25 +285,31 @@ def _set_description(self, descr): del _set_description @property - def working_tree_dir(self): + def working_tree_dir(self) -> Optional[PathLike]: """:return: The working tree directory of our git repository. If this is a bare repository, None is returned. """ return self._working_tree_dir @property - def common_dir(self): - """:return: The git dir that holds everything except possibly HEAD, - FETCH_HEAD, ORIG_HEAD, COMMIT_EDITMSG, index, and logs/ . + def common_dir(self) -> PathLike: """ - return self._common_dir or self.git_dir + :return: The git dir that holds everything except possibly HEAD, + FETCH_HEAD, ORIG_HEAD, COMMIT_EDITMSG, index, and logs/.""" + if self._common_dir: + return self._common_dir + elif self.git_dir: + return self.git_dir + else: + # or could return "" + raise InvalidGitRepositoryError() @property - def bare(self): + def bare(self) -> bool: """:return: True if the repository is bare""" return self._bare @property - def heads(self): + def heads(self) -> 'IterableList': """A list of ``Head`` objects representing the branch heads in this repo @@ -276,7 +317,7 @@ def heads(self): return Head.list_items(self) @property - def references(self): + def references(self) -> 'IterableList': """A list of Reference objects representing tags, heads and remote references. :return: IterableList(Reference, ...)""" @@ -289,24 +330,24 @@ def references(self): branches = heads @property - def index(self): + def index(self) -> 'IndexFile': """:return: IndexFile representing this repository's index. :note: This property can be expensive, as the returned ``IndexFile`` will be reinitialized. It's recommended to re-use the object.""" return IndexFile(self) @property - def head(self): + def head(self) -> 'HEAD': """:return: HEAD Object pointing to the current head reference""" return HEAD(self, 'HEAD') @property - def remotes(self): + def remotes(self) -> 'IterableList': """A list of Remote objects allowing to access and manipulate remotes :return: ``git.IterableList(Remote, ...)``""" return Remote.list_items(self) - def remote(self, name='origin'): + def remote(self, name: str = 'origin') -> 'Remote': """:return: Remote with the specified name :raise ValueError: if no remote with such a name exists""" r = Remote(self, name) @@ -317,22 +358,22 @@ def remote(self, name='origin'): #{ Submodules @property - def submodules(self): + def submodules(self) -> 'IterableList': """ :return: git.IterableList(Submodule, ...) of direct submodules available from the current head""" return Submodule.list_items(self) - def submodule(self, name): + def submodule(self, name: str) -> 'IterableList': """ :return: Submodule with the given name :raise ValueError: If no such submodule exists""" try: return self.submodules[name] - except IndexError: - raise ValueError("Didn't find submodule named %r" % name) + except IndexError as e: + raise ValueError("Didn't find submodule named %r" % name) from e # END exception handling - def create_submodule(self, *args, **kwargs): + def create_submodule(self, *args: Any, **kwargs: Any) -> Submodule: """Create a new submodule :note: See the documentation of Submodule.add for a description of the @@ -340,13 +381,13 @@ def create_submodule(self, *args, **kwargs): :return: created submodules""" return Submodule.add(self, *args, **kwargs) - def iter_submodules(self, *args, **kwargs): + def iter_submodules(self, *args: Any, **kwargs: Any) -> Iterator: """An iterator yielding Submodule instances, see Traversable interface for a description of args and kwargs :return: Iterator""" return RootModule(self).traverse(*args, **kwargs) - def submodule_update(self, *args, **kwargs): + def submodule_update(self, *args: Any, **kwargs: Any) -> Iterator: """Update the submodules, keeping the repository consistent as it will take the previous state into consideration. For more information, please see the documentation of RootModule.update""" @@ -355,41 +396,45 @@ def submodule_update(self, *args, **kwargs): #}END submodules @property - def tags(self): + def tags(self) -> 'IterableList': """A list of ``Tag`` objects that are available in this repo :return: ``git.IterableList(TagReference, ...)`` """ return TagReference.list_items(self) - def tag(self, path): + def tag(self, path: PathLike) -> TagReference: """:return: TagReference Object, reference pointing to a Commit or Tag :param path: path to the tag reference, i.e. 0.1.5 or tags/0.1.5 """ return TagReference(self, path) - def create_head(self, path, commit='HEAD', force=False, logmsg=None): + def create_head(self, path: PathLike, commit: str = 'HEAD', + force: bool = False, logmsg: Optional[str] = None + ) -> 'SymbolicReference': """Create a new head within the repository. For more documentation, please see the Head.create method. :return: newly created Head Reference""" return Head.create(self, path, commit, force, logmsg) - def delete_head(self, *heads, **kwargs): + def delete_head(self, *heads: 'SymbolicReference', **kwargs: Any) -> None: """Delete the given heads :param kwargs: Additional keyword arguments to be passed to git-branch""" return Head.delete(self, *heads, **kwargs) - def create_tag(self, path, ref='HEAD', message=None, force=False, **kwargs): + def create_tag(self, path: PathLike, ref: str = 'HEAD', + message: Optional[str] = None, force: bool = False, **kwargs: Any + ) -> TagReference: """Create a new tag reference. For more documentation, please see the TagReference.create method. :return: TagReference object """ return TagReference.create(self, path, ref, message, force, **kwargs) - def delete_tag(self, *tags): + def delete_tag(self, *tags: TBD) -> None: """Delete the given tag references""" return TagReference.delete(self, *tags) - def create_remote(self, name, url, **kwargs): + def create_remote(self, name: str, url: PathLike, **kwargs: Any) -> Remote: """Create a new remote. For more information, please see the documentation of the Remote.create @@ -398,11 +443,11 @@ def create_remote(self, name, url, **kwargs): :return: Remote reference""" return Remote.create(self, name, url, **kwargs) - def delete_remote(self, remote): + def delete_remote(self, remote: 'Remote') -> Type['Remote']: """Delete the given remote.""" return Remote.remove(self, remote) - def _get_config_path(self, config_level): + def _get_config_path(self, config_level: Lit_config_levels) -> str: # we do not support an absolute path of the gitconfig on windows , # use the global config instead if is_win and config_level == "system": @@ -416,11 +461,15 @@ def _get_config_path(self, config_level): elif config_level == "global": return osp.normpath(osp.expanduser("~/.gitconfig")) elif config_level == "repository": - return osp.normpath(osp.join(self.git_dir, "config")) + repo_dir = self._common_dir or self.git_dir + if not repo_dir: + raise NotADirectoryError + else: + return osp.normpath(osp.join(repo_dir, "config")) raise ValueError("Invalid configuration level: %r" % config_level) - def config_reader(self, config_level=None): + def config_reader(self, config_level: Optional[Lit_config_levels] = None) -> GitConfigParser: """ :return: GitConfigParser allowing to read the full git configuration, but not to write it @@ -439,9 +488,9 @@ def config_reader(self, config_level=None): files = [self._get_config_path(f) for f in self.config_level] else: files = [self._get_config_path(config_level)] - return GitConfigParser(files, read_only=True) + return GitConfigParser(files, read_only=True, repo=self) - def config_writer(self, config_level="repository"): + def config_writer(self, config_level: Lit_config_levels = "repository") -> GitConfigParser: """ :return: GitConfigParser allowing to write values of the specified configuration file level. @@ -453,24 +502,26 @@ def config_writer(self, config_level="repository"): One of the following values system = system wide configuration file global = user level configuration file - repository = configuration file for this repostory only""" - return GitConfigParser(self._get_config_path(config_level), read_only=False) + repository = configuration file for this repository only""" + return GitConfigParser(self._get_config_path(config_level), read_only=False, repo=self) - def commit(self, rev=None): + def commit(self, rev: Optional[TBD] = None + ) -> Union['SymbolicReference', Commit, 'TagObject', 'Blob', 'Tree']: """The Commit object for the specified revision + :param rev: revision specifier, see git-rev-parse for viable options. - :return: ``git.Commit``""" + :return: ``git.Commit`` + """ if rev is None: return self.head.commit - else: - return self.rev_parse(text_type(rev) + "^0") + return self.rev_parse(str(rev) + "^0") - def iter_trees(self, *args, **kwargs): + def iter_trees(self, *args: Any, **kwargs: Any) -> Iterator['Tree']: """:return: Iterator yielding Tree objects :note: Takes all arguments known to iter_commits method""" return (c.tree for c in self.iter_commits(*args, **kwargs)) - def tree(self, rev=None): + def tree(self, rev: Union['Commit', 'Tree', None] = None) -> 'Tree': """The Tree object for the given treeish revision Examples:: @@ -485,10 +536,10 @@ def tree(self, rev=None): operations might have unexpected results.""" if rev is None: return self.head.commit.tree - else: - return self.rev_parse(text_type(rev) + "^{tree}") + return self.rev_parse(str(rev) + "^{tree}") - def iter_commits(self, rev=None, paths='', **kwargs): + def iter_commits(self, rev: Optional[TBD] = None, paths: Union[PathLike, List[PathLike]] = '', + **kwargs: Any) -> Iterator[Commit]: """A list of Commit objects representing the history of a given ref/commit :param rev: @@ -512,7 +563,8 @@ def iter_commits(self, rev=None, paths='', **kwargs): return Commit.iter_items(self, rev, paths, **kwargs) - def merge_base(self, *rev, **kwargs): + def merge_base(self, *rev: TBD, **kwargs: Any + ) -> List[Union['SymbolicReference', Commit, 'TagObject', 'Blob', 'Tree', None]]: """Find the closest common ancestor for the given revision (e.g. Commits, Tags, References, etc) :param rev: At least two revs to find the common ancestor for. @@ -525,9 +577,9 @@ def merge_base(self, *rev, **kwargs): raise ValueError("Please specify at least two revs, got only %i" % len(rev)) # end handle input - res = [] + res = [] # type: List[Union['SymbolicReference', Commit, 'TagObject', 'Blob', 'Tree', None]] try: - lines = self.git.merge_base(*rev, **kwargs).splitlines() + lines = self.git.merge_base(*rev, **kwargs).splitlines() # List[str] except GitCommandError as err: if err.status == 128: raise @@ -543,12 +595,12 @@ def merge_base(self, *rev, **kwargs): return res - def is_ancestor(self, ancestor_rev, rev): - """Check if a commit is an ancestor of another + def is_ancestor(self, ancestor_rev: 'Commit', rev: 'Commit') -> bool: + """Check if a commit is an ancestor of another :param ancestor_rev: Rev which should be an ancestor :param rev: Rev to test against ancestor_rev - :return: ``True``, ancestor_rev is an accestor to rev. + :return: ``True``, ancestor_rev is an ancestor to rev. """ try: self.git.merge_base(ancestor_rev, rev, is_ancestor=True) @@ -558,12 +610,14 @@ def is_ancestor(self, ancestor_rev, rev): raise return True - def _get_daemon_export(self): - filename = osp.join(self.git_dir, self.DAEMON_EXPORT_FILE) + def _get_daemon_export(self) -> bool: + if self.git_dir: + filename = osp.join(self.git_dir, self.DAEMON_EXPORT_FILE) return osp.exists(filename) - def _set_daemon_export(self, value): - filename = osp.join(self.git_dir, self.DAEMON_EXPORT_FILE) + def _set_daemon_export(self, value: object) -> None: + if self.git_dir: + filename = osp.join(self.git_dir, self.DAEMON_EXPORT_FILE) fileexists = osp.exists(filename) if value and not fileexists: touch(filename) @@ -575,20 +629,20 @@ def _set_daemon_export(self, value): del _get_daemon_export del _set_daemon_export - def _get_alternates(self): + def _get_alternates(self) -> List[str]: """The list of alternates for this repo from which objects can be retrieved :return: list of strings being pathnames of alternates""" - alternates_path = osp.join(self.git_dir, 'objects', 'info', 'alternates') + if self.git_dir: + alternates_path = osp.join(self.git_dir, 'objects', 'info', 'alternates') if osp.exists(alternates_path): with open(alternates_path, 'rb') as f: alts = f.read().decode(defenc) return alts.strip().splitlines() - else: - return [] + return [] - def _set_alternates(self, alts): + def _set_alternates(self, alts: List[str]) -> None: """Sets the alternates :param alts: @@ -610,8 +664,8 @@ def _set_alternates(self, alts): alternates = property(_get_alternates, _set_alternates, doc="Retrieve a list of alternates paths or set a list paths to be used as alternates") - def is_dirty(self, index=True, working_tree=True, untracked_files=False, - submodules=True, path=None): + def is_dirty(self, index: bool = True, working_tree: bool = True, untracked_files: bool = False, + submodules: bool = True, path: Optional[PathLike] = None) -> bool: """ :return: ``True``, the repository is considered dirty. By default it will react @@ -627,7 +681,7 @@ def is_dirty(self, index=True, working_tree=True, untracked_files=False, if not submodules: default_args.append('--ignore-submodules') if path: - default_args.append(path) + default_args.extend(["--", str(path)]) if index: # diff index against HEAD if osp.isfile(self.index.path) and \ @@ -646,7 +700,7 @@ def is_dirty(self, index=True, working_tree=True, untracked_files=False, return False @property - def untracked_files(self): + def untracked_files(self) -> List[str]: """ :return: list(str,...) @@ -661,7 +715,7 @@ def untracked_files(self): consider caching it yourself.""" return self._get_untracked_files() - def _get_untracked_files(self, *args, **kwargs): + def _get_untracked_files(self, *args: Any, **kwargs: Any) -> List[str]: # make sure we get all files, not only untracked directories proc = self.git.status(*args, porcelain=True, @@ -679,23 +733,33 @@ def _get_untracked_files(self, *args, **kwargs): # Special characters are escaped if filename[0] == filename[-1] == '"': filename = filename[1:-1] - if PY3: - # WHATEVER ... it's a mess, but works for me - filename = filename.encode('ascii').decode('unicode_escape').encode('latin1').decode(defenc) - else: - filename = filename.decode('string_escape').decode(defenc) + # WHATEVER ... it's a mess, but works for me + filename = filename.encode('ascii').decode('unicode_escape').encode('latin1').decode(defenc) untracked_files.append(filename) finalize_process(proc) return untracked_files + def ignored(self, *paths: PathLike) -> List[PathLike]: + """Checks if paths are ignored via .gitignore + Doing so using the "git check-ignore" method. + + :param paths: List of paths to check whether they are ignored or not + :return: subset of those paths which are ignored + """ + try: + proc = self.git.check_ignore(*paths) + except GitCommandError: + return [] + return proc.replace("\\\\", "\\").replace('"', "").split("\n") + @property - def active_branch(self): + def active_branch(self) -> 'SymbolicReference': """The name of the currently active branch. :return: Head to the active branch""" return self.head.reference - def blame_incremental(self, rev, file, **kwargs): + def blame_incremental(self, rev: TBD, file: TBD, **kwargs: Any) -> Optional[Iterator['BlameEntry']]: """Iterator for blame information for the given file at the given revision. Unlike .blame(), this does not return the actual file's contents, only @@ -710,21 +774,28 @@ def blame_incremental(self, rev, file, **kwargs): should get a continuous range spanning all line numbers in the file. """ data = self.git.blame(rev, '--', file, p=True, incremental=True, stdout_as_string=False, **kwargs) - commits = {} + commits = {} # type: Dict[str, TBD] stream = (line for line in data.split(b'\n') if line) while True: - line = next(stream) # when exhausted, causes a StopIteration, terminating this function - hexsha, orig_lineno, lineno, num_lines = line.split() - lineno = int(lineno) - num_lines = int(num_lines) - orig_lineno = int(orig_lineno) + try: + line = next(stream) # when exhausted, causes a StopIteration, terminating this function + except StopIteration: + return + split_line = line.split() # type: Tuple[str, str, str, str] + hexsha, orig_lineno_str, lineno_str, num_lines_str = split_line + lineno = int(lineno_str) + num_lines = int(num_lines_str) + orig_lineno = int(orig_lineno_str) if hexsha not in commits: # Now read the next few lines and build up a dict of properties # for this commit props = {} while True: - line = next(stream) + try: + line = next(stream) + except StopIteration: + return if line == b'boundary': # "boundary" indicates a root commit and occurs # instead of the "previous" tag @@ -749,7 +820,10 @@ def blame_incremental(self, rev, file, **kwargs): # Discard all lines until we find "filename" which is # guaranteed to be the last line while True: - line = next(stream) # will fail if we reach the EOF unexpectedly + try: + line = next(stream) # will fail if we reach the EOF unexpectedly + except StopIteration: + return tag, value = line.split(b' ', 1) if tag == b'filename': orig_filename = value @@ -760,22 +834,24 @@ def blame_incremental(self, rev, file, **kwargs): safe_decode(orig_filename), range(orig_lineno, orig_lineno + num_lines)) - def blame(self, rev, file, incremental=False, **kwargs): + def blame(self, rev: TBD, file: TBD, incremental: bool = False, **kwargs: Any + ) -> Union[List[List[Union[Optional['Commit'], List[str]]]], Optional[Iterator[BlameEntry]]]: """The blame information for the given file at the given revision. :param rev: revision specifier, see git-rev-parse for viable options. :return: list: [git.Commit, list: []] - A list of tuples associating a Commit object with a list of lines that + A list of lists associating a Commit object with a list of lines that changed within the given commit. The Commit objects will be given in order of appearance.""" if incremental: return self.blame_incremental(rev, file, **kwargs) data = self.git.blame(rev, '--', file, p=True, stdout_as_string=False, **kwargs) - commits = {} - blames = [] - info = None + commits = {} # type: Dict[str, Any] + blames = [] # type: List[List[Union[Optional['Commit'], List[str]]]] + + info = {} # type: Dict[str, Any] # use Any until TypedDict available keepends = True for line in data.splitlines(keepends): @@ -860,7 +936,8 @@ def blame(self, rev, file, incremental=False, **kwargs): pass # end handle line contents blames[-1][0] = c - blames[-1][1].append(line) + if blames[-1][1] is not None: + blames[-1][1].append(line) info = {'id': sha} # END if we collected commit info # END distinguish filename,summary,rest @@ -869,7 +946,8 @@ def blame(self, rev, file, incremental=False, **kwargs): return blames @classmethod - def init(cls, path=None, mkdir=True, odbt=GitCmdObjectDB, expand_vars=True, **kwargs): + def init(cls, path: PathLike = None, mkdir: bool = True, odbt: Type[GitCmdObjectDB] = GitCmdObjectDB, + expand_vars: bool = True, **kwargs: Any) -> 'Repo': """Initialize a git repository at the given path if specified :param path: @@ -907,9 +985,10 @@ def init(cls, path=None, mkdir=True, odbt=GitCmdObjectDB, expand_vars=True, **kw return cls(path, odbt=odbt) @classmethod - def _clone(cls, git, url, path, odb_default_type, progress, **kwargs): - if progress is not None: - progress = to_progress_instance(progress) + def _clone(cls, git: 'Git', url: PathLike, path: PathLike, odb_default_type: Type[GitCmdObjectDB], + progress: Optional[Callable], multi_options: Optional[List[str]] = None, **kwargs: Any + ) -> 'Repo': + progress_checked = to_progress_instance(progress) odbt = kwargs.pop('odbt', odb_default_type) @@ -929,19 +1008,26 @@ def _clone(cls, git, url, path, odb_default_type, progress, **kwargs): sep_dir = kwargs.get('separate_git_dir') if sep_dir: kwargs['separate_git_dir'] = Git.polish_url(https://github.com/sep_dir) - proc = git.clone(Git.polish_https://github.com/url(url), clone_path, with_extended_output=True, as_process=True, - v=True, universal_newlines=True, **add_progress(kwargs, git, progress)) - if progress: - handle_process_output(proc, None, progress.new_message_handler(), finalize_process, decode_streams=False) + multi = None + if multi_options: + multi = ' '.join(multi_options).split(' ') + proc = git.clone(multi, Git.polish_https://github.com/url(url), clone_path, with_extended_output=True, as_process=True, + v=True, universal_newlines=True, **add_progress(kwargs, git, progress_checked)) + if progress_checked: + handle_process_output(proc, None, progress_checked.new_message_handler(), + finalize_process, decode_streams=False) else: (stdout, stderr) = proc.communicate() - log.debug("Cmd(%s)'s unused stdout: %s", getattr(proc, 'args', ''), stdout) + cmdline = getattr(proc, 'args', '') + cmdline = remove_password_if_present(cmdline) + + log.debug("Cmd(%s)'s unused stdout: %s", cmdline, stdout) finalize_process(proc, stderr=stderr) # our git command could have a different working dir than our actual # environment, hence we prepend its working dir if required - if not osp.isabs(path) and git.working_dir: - path = osp.join(git._working_dir, path) + if not osp.isabs(path): + path = osp.join(git._working_dir, path) if git._working_dir is not None else path repo = cls(path, odbt=odbt) @@ -959,35 +1045,49 @@ def _clone(cls, git, url, path, odb_default_type, progress, **kwargs): # END handle remote repo return repo - def clone(self, path, progress=None, **kwargs): + def clone(self, path: PathLike, progress: Optional[Callable] = None, + multi_options: Optional[List[str]] = None, **kwargs: Any) -> 'Repo': """Create a clone from this repository. :param path: is the full path of the new repo (traditionally ends with ./.git). :param progress: See 'git.remote.Remote.push'. + :param multi_options: A list of Clone options that can be provided multiple times. One + option per list item which is passed exactly as specified to clone. + For example ['--config core.filemode=false', '--config core.ignorecase', + '--recurse-submodule=repo1_path', '--recurse-submodule=repo2_path'] :param kwargs: * odbt = ObjectDatabase Type, allowing to determine the object database implementation used by the returned Repo instance * All remaining keyword arguments are given to the git-clone command :return: ``git.Repo`` (the newly cloned repo)""" - return self._clone(self.git, self.common_dir, path, type(self.odb), progress, **kwargs) + return self._clone(self.git, self.common_dir, path, type(self.odb), progress, multi_options, **kwargs) @classmethod - def clone_from(cls, url, to_path, progress=None, env=None, **kwargs): + def clone_from(cls, url: PathLike, to_path: PathLike, progress: Optional[Callable] = None, + env: Optional[Mapping[str, Any]] = None, + multi_options: Optional[List[str]] = None, **kwargs: Any) -> 'Repo': """Create a clone from the given URL :param url: valid git url, see http://www.kernel.org/pub/software/scm/git/docs/git-clone.html#URLS :param to_path: Path to which the repository should be cloned to :param progress: See 'git.remote.Remote.push'. :param env: Optional dictionary containing the desired environment variables. + Note: Provided variables will be used to update the execution + environment for `git`. If some variable is not specified in `env` + and is defined in `os.environ`, value from `os.environ` will be used. + If you want to unset some variable, consider providing empty string + as its value. + :param multi_options: See ``clone`` method :param kwargs: see the ``clone`` method :return: Repo instance pointing to the cloned directory""" git = Git(os.getcwd()) if env is not None: git.update_environment(**env) - return cls._clone(git, url, to_path, GitCmdObjectDB, progress, **kwargs) + return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs) - def archive(self, ostream, treeish=None, prefix=None, **kwargs): + def archive(self, ostream: Union[TextIO, BinaryIO], treeish: Optional[str] = None, + prefix: Optional[str] = None, **kwargs: Any) -> 'Repo': """Archive the tree at the given revision. :param ostream: file compatible stream object to which the archive will be written as bytes @@ -1008,14 +1108,14 @@ def archive(self, ostream, treeish=None, prefix=None, **kwargs): kwargs['prefix'] = prefix kwargs['output_stream'] = ostream path = kwargs.pop('path', []) + path = cast(Union[PathLike, List[PathLike], Tuple[PathLike, ...]], path) if not isinstance(path, (tuple, list)): path = [path] # end assure paths is list - self.git.archive(treeish, *path, **kwargs) return self - def has_separate_working_tree(self): + def has_separate_working_tree(self) -> bool: """ :return: True if our git_dir is not at the root of our working_tree_dir, but a .git file with a platform agnositic symbolic link. Our git_dir will be wherever the .git file points to @@ -1023,9 +1123,25 @@ def has_separate_working_tree(self): """ if self.bare: return False - return osp.isfile(osp.join(self.working_tree_dir, '.git')) + if self.working_tree_dir: + return osp.isfile(osp.join(self.working_tree_dir, '.git')) + else: + return False # or raise Error? rev_parse = rev_parse - def __repr__(self): - return '' % self.git_dir + def __repr__(self) -> str: + clazz = self.__class__ + return '<%s.%s %r>' % (clazz.__module__, clazz.__name__, self.git_dir) + + def currently_rebasing_on(self) -> Union['SymbolicReference', Commit, 'TagObject', 'Blob', 'Tree', None]: + """ + :return: The commit which is currently being replayed while rebasing. + + None if we are not currently rebasing. + """ + if self.git_dir: + rebase_head_file = osp.join(self.git_dir, "REBASE_HEAD") + if not osp.isfile(rebase_head_file): + return None + return self.commit(open(rebase_head_file, "rt").readline().strip()) diff --git a/git/repo/fun.py b/git/repo/fun.py index 6aefd9d66..703940819 100644 --- a/git/repo/fun.py +++ b/git/repo/fun.py @@ -1,9 +1,9 @@ """Package with general repository related functions""" +from git.refs.tag import Tag import os import stat from string import digits -from git.compat import xrange from git.exc import WorkTreeRepositoryUnsupported from git.objects import Object from git.refs import SymbolicReference @@ -16,18 +16,28 @@ import os.path as osp from git.cmd import Git +# Typing ---------------------------------------------------------------------- + +from typing import AnyStr, Union, Optional, cast, TYPE_CHECKING +from git.types import PathLike +if TYPE_CHECKING: + from .base import Repo + from git.db import GitCmdObjectDB + from git.objects import Commit, TagObject, Blob, Tree + +# ---------------------------------------------------------------------------- __all__ = ('rev_parse', 'is_git_dir', 'touch', 'find_submodule_git_dir', 'name_to_object', 'short_to_long', 'deref_tag', 'to_commit', 'find_worktree_git_dir') -def touch(filename): +def touch(filename: str) -> str: with open(filename, "ab"): pass return filename -def is_git_dir(d): +def is_git_dir(d: PathLike) -> bool: """ This is taken from the git setup.c:is_git_directory function. @@ -36,7 +46,8 @@ def is_git_dir(d): There is the unlikely danger to throw if we see directories which just look like a worktree dir, but are none.""" if osp.isdir(d): - if osp.isdir(osp.join(d, 'objects')) and osp.isdir(osp.join(d, 'refs')): + if (osp.isdir(osp.join(d, 'objects')) or 'GIT_OBJECT_DIRECTORY' in os.environ) \ + and osp.isdir(osp.join(d, 'refs')): headref = osp.join(d, 'HEAD') return osp.isfile(headref) or \ (osp.islink(headref) and @@ -48,7 +59,7 @@ def is_git_dir(d): return False -def find_worktree_git_dir(dotgit): +def find_worktree_git_dir(dotgit: PathLike) -> Optional[str]: """Search for a gitdir for this worktree.""" try: statbuf = os.stat(dotgit) @@ -67,7 +78,7 @@ def find_worktree_git_dir(dotgit): return None -def find_submodule_git_dir(d): +def find_submodule_git_dir(d: PathLike) -> Optional[PathLike]: """Search for a submodule repo.""" if is_git_dir(d): return d @@ -75,7 +86,7 @@ def find_submodule_git_dir(d): try: with open(d) as fp: content = fp.read().rstrip() - except (IOError, OSError): + except IOError: # it's probably not a file pass else: @@ -86,13 +97,13 @@ def find_submodule_git_dir(d): ## Cygwin creates submodules prefixed with `/cygdrive/...` suffixes. path = decygpath(path) if not osp.isabs(path): - path = osp.join(osp.dirname(d), path) + path = osp.normpath(osp.join(osp.dirname(d), path)) return find_submodule_git_dir(path) # end handle exception return None -def short_to_long(odb, hexsha): +def short_to_long(odb: 'GitCmdObjectDB', hexsha: AnyStr) -> Optional[bytes]: """:return: long hexadecimal sha1 from the given less-than-40 byte hexsha or None if no candidate could be found. :param hexsha: hexsha with less than 40 byte""" @@ -103,14 +114,15 @@ def short_to_long(odb, hexsha): # END exception handling -def name_to_object(repo, name, return_ref=False): +def name_to_object(repo: 'Repo', name: str, return_ref: bool = False + ) -> Union[SymbolicReference, 'Commit', 'TagObject', 'Blob', 'Tree']: """ :return: object specified by the given name, hexshas ( short and long ) as well as references are supported :param return_ref: if name specifies a reference, we will return the reference instead of the object. Otherwise it will raise BadObject or BadName """ - hexsha = None + hexsha = None # type: Union[None, str, bytes] # is it a hexsha ? Try the most common ones, which is 7 to 40 if repo.re_hexsha_shortened.match(name): @@ -150,7 +162,7 @@ def name_to_object(repo, name, return_ref=False): return Object.new_from_sha(repo, hex_to_bin(hexsha)) -def deref_tag(tag): +def deref_tag(tag: Tag) -> 'TagObject': """Recursively dereference a tag and return the resulting object""" while True: try: @@ -161,7 +173,7 @@ def deref_tag(tag): return tag -def to_commit(obj): +def to_commit(obj: Object) -> Union['Commit', 'TagObject']: """Convert the given object to a commit if possible and return it""" if obj.type == 'tag': obj = deref_tag(obj) @@ -172,7 +184,7 @@ def to_commit(obj): return obj -def rev_parse(repo, rev): +def rev_parse(repo: 'Repo', rev: str) -> Union['Commit', 'Tag', 'Tree', 'Blob']: """ :return: Object at the given revision, either Commit, Tag, Tree or Blob :param rev: git-rev-parse compatible revision specification as string, please see @@ -188,7 +200,7 @@ def rev_parse(repo, rev): raise NotImplementedError("commit by message search ( regex )") # END handle search - obj = None + obj = cast(Object, None) # not ideal. Should use guards ref = None output_type = "commit" start = 0 @@ -238,7 +250,7 @@ def rev_parse(repo, rev): pass # error raised later # END exception handling elif output_type in ('', 'blob'): - if obj.type == 'tag': + if obj and obj.type == 'tag': obj = deref_tag(obj) else: # cannot do anything for non-tags @@ -251,16 +263,16 @@ def rev_parse(repo, rev): try: # transform reversed index into the format of our revlog revlog_index = -(int(output_type) + 1) - except ValueError: + except ValueError as e: # TODO: Try to parse the other date options, using parse_date # maybe - raise NotImplementedError("Support for additional @{...} modes not implemented") + raise NotImplementedError("Support for additional @{...} modes not implemented") from e # END handle revlog index try: entry = ref.log_entry(revlog_index) - except IndexError: - raise IndexError("Invalid revlog index: %i" % revlog_index) + except IndexError as e: + raise IndexError("Invalid revlog index: %i" % revlog_index) from e # END handle index out of bound obj = Object.new_from_sha(repo, hex_to_bin(entry.newhexsha)) @@ -307,7 +319,7 @@ def rev_parse(repo, rev): try: if token == "~": obj = to_commit(obj) - for _ in xrange(num): + for _ in range(num): obj = obj.parents[0] # END for each history item to walk elif token == "^": @@ -324,8 +336,10 @@ def rev_parse(repo, rev): else: raise ValueError("Invalid token: %r" % token) # END end handle tag - except (IndexError, AttributeError): - raise BadName("Invalid revision spec '%s' - not enough parent commits to reach '%s%i'" % (rev, token, num)) + except (IndexError, AttributeError) as e: + raise BadName( + "Invalid revision spec '%s' - not enough " + "parent commits to reach '%s%i'" % (rev, token, num)) from e # END exception handling # END parse loop diff --git a/git/test/lib/asserts.py b/git/test/lib/asserts.py deleted file mode 100644 index 6f5ba7140..000000000 --- a/git/test/lib/asserts.py +++ /dev/null @@ -1,71 +0,0 @@ -# asserts.py -# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors -# -# This module is part of GitPython and is released under -# the BSD License: http://www.opensource.org/licenses/bsd-license.php - -import re -import stat - -from nose.tools import ( - assert_equal, # @UnusedImport - assert_not_equal, # @UnusedImport - assert_raises, # @UnusedImport - raises, # @UnusedImport - assert_true, # @UnusedImport - assert_false # @UnusedImport -) - -try: - from unittest.mock import patch -except ImportError: - from mock import patch # @NoMove @UnusedImport - -__all__ = ['assert_instance_of', 'assert_not_instance_of', - 'assert_none', 'assert_not_none', - 'assert_match', 'assert_not_match', 'assert_mode_644', - 'assert_mode_755', - 'assert_equal', 'assert_not_equal', 'assert_raises', 'patch', 'raises', - 'assert_true', 'assert_false'] - - -def assert_instance_of(expected, actual, msg=None): - """Verify that object is an instance of expected """ - assert isinstance(actual, expected), msg - - -def assert_not_instance_of(expected, actual, msg=None): - """Verify that object is not an instance of expected """ - assert not isinstance(actual, expected, msg) - - -def assert_none(actual, msg=None): - """verify that item is None""" - assert actual is None, msg - - -def assert_not_none(actual, msg=None): - """verify that item is None""" - assert actual is not None, msg - - -def assert_match(pattern, string, msg=None): - """verify that the pattern matches the string""" - assert_not_none(re.search(pattern, string), msg) - - -def assert_not_match(pattern, string, msg=None): - """verify that the pattern does not match the string""" - assert_none(re.search(pattern, string), msg) - - -def assert_mode_644(mode): - """Verify given mode is 644""" - assert (mode & stat.S_IROTH) and (mode & stat.S_IRGRP) - assert (mode & stat.S_IWUSR) and (mode & stat.S_IRUSR) and not (mode & stat.S_IXUSR) - - -def assert_mode_755(mode): - """Verify given mode is 755""" - assert (mode & stat.S_IROTH) and (mode & stat.S_IRGRP) and (mode & stat.S_IXOTH) and (mode & stat.S_IXGRP) - assert (mode & stat.S_IWUSR) and (mode & stat.S_IRUSR) and (mode & stat.S_IXUSR) diff --git a/git/test/test_stats.py b/git/test/test_stats.py deleted file mode 100644 index 884ab1abd..000000000 --- a/git/test/test_stats.py +++ /dev/null @@ -1,31 +0,0 @@ -# test_stats.py -# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors -# -# This module is part of GitPython and is released under -# the BSD License: http://www.opensource.org/licenses/bsd-license.php - -from git.test.lib import ( - TestBase, - fixture, - assert_equal -) -from git import Stats -from git.compat import defenc - - -class TestStats(TestBase): - - def test_list_from_string(self): - output = fixture('diff_numstat').decode(defenc) - stats = Stats._list_from_string(self.rorepo, output) - - assert_equal(2, stats.total['files']) - assert_equal(52, stats.total['lines']) - assert_equal(29, stats.total['insertions']) - assert_equal(23, stats.total['deletions']) - - assert_equal(29, stats.files["a.txt"]['insertions']) - assert_equal(18, stats.files["a.txt"]['deletions']) - - assert_equal(0, stats.files["b.txt"]['insertions']) - assert_equal(5, stats.files["b.txt"]['deletions']) diff --git a/git/types.py b/git/types.py new file mode 100644 index 000000000..dc44c1231 --- /dev/null +++ b/git/types.py @@ -0,0 +1,6 @@ +import os # @UnusedImport ## not really unused, is in type string +from typing import Union, Any + + +TBD = Any +PathLike = Union[str, 'os.PathLike[str]'] diff --git a/git/util.py b/git/util.py index 1186d3110..af4990286 100644 --- a/git/util.py +++ b/git/util.py @@ -3,6 +3,7 @@ # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php + import contextlib from functools import wraps import getpass @@ -13,10 +14,24 @@ import re import shutil import stat +from sys import maxsize import time from unittest import SkipTest +from urllib.parse import urlsplit, urlunsplit + +# typing --------------------------------------------------------- + +from typing import (Any, AnyStr, BinaryIO, Callable, Dict, Generator, IO, List, + NoReturn, Optional, Pattern, Sequence, Tuple, Union, cast, TYPE_CHECKING) +if TYPE_CHECKING: + from git.remote import Remote + from git.repo.base import Repo +from .types import PathLike, TBD + +# --------------------------------------------------------------------- -from gitdb.util import (# NOQA @IgnorePep8 + +from gitdb.util import ( # NOQA @IgnorePep8 make_sha, LockedFD, # @UnusedImport file_contents_ro, # @UnusedImport @@ -28,14 +43,9 @@ hex_to_bin, # @UnusedImport ) -from git.compat import is_win +from .compat import is_win import os.path as osp -from .compat import ( - MAXSIZE, - defenc, - PY3 -) from .exc import InvalidGitRepositoryError @@ -43,14 +53,17 @@ # Handle once test-cases are back up and running. # Most of these are unused here, but are for use by git-python modules so these # don't see gitdb all the time. Flake of course doesn't like it. -__all__ = ("stream_copy", "join_path", "to_native_path_windows", "to_native_path_linux", +__all__ = ["stream_copy", "join_path", "to_native_path_linux", "join_path_native", "Stats", "IndexFileSHA1Writer", "Iterable", "IterableList", "BlockingLockFile", "LockFile", 'Actor', 'get_user_id', 'assure_directory_exists', 'RemoteProgress', 'CallableRemoteProgress', 'rmtree', 'unbare_repo', - 'HIDE_WINDOWS_KNOWN_ERRORS') + 'HIDE_WINDOWS_KNOWN_ERRORS'] log = logging.getLogger(__name__) +# types############################################################ + + #: We need an easy way to see if Appveyor TCs start failing, #: so the errors marked with this var are considered "acknowledged" ones, awaiting remedy, #: till then, we wish to hide them. @@ -60,22 +73,23 @@ #{ Utility Methods -def unbare_repo(func): +def unbare_repo(func: Callable) -> Callable: """Methods with this decorator raise InvalidGitRepositoryError if they encounter a bare repository""" @wraps(func) - def wrapper(self, *args, **kwargs): + def wrapper(self: 'Remote', *args: Any, **kwargs: Any) -> TBD: if self.repo.bare: raise InvalidGitRepositoryError("Method '%s' cannot operate on bare repositories" % func.__name__) # END bare method return func(self, *args, **kwargs) # END wrapper + return wrapper @contextlib.contextmanager -def cwd(new_dir): +def cwd(new_dir: PathLike) -> Generator[PathLike, None, None]: old_dir = os.getcwd() os.chdir(new_dir) try: @@ -84,13 +98,13 @@ def cwd(new_dir): os.chdir(old_dir) -def rmtree(path): +def rmtree(path: PathLike) -> None: """Remove the given recursively. :note: we use shutil rmtree but adjust its behaviour to see whether files that couldn't be deleted are read-only. Windows will not remove them in that case""" - def onerror(func, path, exc_info): + def onerror(func: Callable, path: PathLike, exc_info: TBD) -> None: # Is the error an access error ? os.chmod(path, stat.S_IWUSR) @@ -98,14 +112,13 @@ def onerror(func, path, exc_info): func(path) # Will scream if still not possible to delete. except Exception as ex: if HIDE_WINDOWS_KNOWN_ERRORS: - raise SkipTest("FIXME: fails with: PermissionError\n %s", ex) - else: - raise + raise SkipTest("FIXME: fails with: PermissionError\n {}".format(ex)) from ex + raise return shutil.rmtree(path, False, onerror) -def rmfile(path): +def rmfile(path: PathLike) -> None: """Ensure file deleted also on *Windows* where read-only files need special treatment.""" if osp.isfile(path): if is_win: @@ -113,7 +126,7 @@ def rmfile(path): os.remove(path) -def stream_copy(source, destination, chunk_size=512 * 1024): +def stream_copy(source: BinaryIO, destination: BinaryIO, chunk_size: int = 512 * 1024) -> int: """Copy all data from the source stream into the destination stream in chunks of size chunk_size @@ -129,12 +142,13 @@ def stream_copy(source, destination, chunk_size=512 * 1024): return br -def join_path(a, *p): +def join_path(a: PathLike, *p: PathLike) -> PathLike: """Join path tokens together similar to osp.join, but always use '/' instead of possibly '\' on windows.""" - path = a + path = str(a) for b in p: - if len(b) == 0: + b = str(b) + if not b: continue if b.startswith('/'): path += b[1:] @@ -147,21 +161,24 @@ def join_path(a, *p): if is_win: - def to_native_path_windows(path): + def to_native_path_windows(path: PathLike) -> PathLike: + path = str(path) return path.replace('/', '\\') - def to_native_path_linux(path): + def to_native_path_linux(path: PathLike) -> PathLike: + path = str(path) return path.replace('\\', '/') + __all__.append("to_native_path_windows") to_native_path = to_native_path_windows else: # no need for any work on linux - def to_native_path_linux(path): + def to_native_path_linux(path: PathLike) -> PathLike: return path to_native_path = to_native_path_linux -def join_path_native(a, *p): +def join_path_native(a: PathLike, *p: PathLike) -> PathLike: """ As join path, but makes sure an OS native path is returned. This is only needed to play it safe on my dear windows and to assure nice paths that only @@ -169,7 +186,7 @@ def join_path_native(a, *p): return to_native_path(join_path(a, *p)) -def assure_directory_exists(path, is_file=False): +def assure_directory_exists(path: PathLike, is_file: bool = False) -> bool: """Assure that the directory pointed to by path exists. :param is_file: If True, path is assumed to be a file and handled correctly. @@ -179,23 +196,23 @@ def assure_directory_exists(path, is_file=False): path = osp.dirname(path) # END handle file if not osp.isdir(path): - os.makedirs(path) + os.makedirs(path, exist_ok=True) return True return False -def _get_exe_extensions(): +def _get_exe_extensions() -> Sequence[str]: PATHEXT = os.environ.get('PATHEXT', None) - return tuple(p.upper() for p in PATHEXT.split(os.pathsep)) \ - if PATHEXT \ - else (('.BAT', 'COM', '.EXE') if is_win else ()) + return tuple(p.upper() for p in PATHEXT.split(os.pathsep)) if PATHEXT \ + else ('.BAT', 'COM', '.EXE') if is_win \ + else ('') -def py_where(program, path=None): +def py_where(program: str, path: Optional[PathLike] = None) -> List[str]: # From: http://stackoverflow.com/a/377028/548792 winprog_exts = _get_exe_extensions() - def is_exec(fpath): + def is_exec(fpath: str) -> bool: return osp.isfile(fpath) and os.access(fpath, os.X_OK) and ( os.name != 'nt' or not winprog_exts or any(fpath.upper().endswith(ext) for ext in winprog_exts)) @@ -203,7 +220,7 @@ def is_exec(fpath): progs = [] if not path: path = os.environ["PATH"] - for folder in path.split(os.pathsep): + for folder in str(path).split(os.pathsep): folder = folder.strip('"') if folder: exe_path = osp.join(folder, program) @@ -213,11 +230,11 @@ def is_exec(fpath): return progs -def _cygexpath(drive, path): +def _cygexpath(drive: Optional[str], path: PathLike) -> str: if osp.isabs(path) and not drive: ## Invoked from `cygpath()` directly with `D:Apps\123`? # It's an error, leave it alone just slashes) - p = path + p = path # convert to str if AnyPath given else: p = path and osp.normpath(osp.expandvars(osp.expanduser(path))) if osp.isabs(p): @@ -228,8 +245,8 @@ def _cygexpath(drive, path): p = cygpath(p) elif drive: p = '/cygdrive/%s/%s' % (drive.lower(), p) - - return p.replace('\\', '/') + p_str = str(p) # ensure it is a str and not AnyPath + return p_str.replace('\\', '/') _cygpath_parsers = ( @@ -241,27 +258,30 @@ def _cygexpath(drive, path): ), (re.compile(r"\\\\\?\\(\w):[/\\](.*)"), - _cygexpath, + (_cygexpath), False ), (re.compile(r"(\w):[/\\](.*)"), - _cygexpath, + (_cygexpath), False ), (re.compile(r"file:(.*)", re.I), (lambda rest_path: rest_path), - True), + True + ), (re.compile(r"(\w{2,}:.*)"), # remote URL, do nothing (lambda url: url), - False), -) + False + ), +) # type: Tuple[Tuple[Pattern[str], Callable, bool], ...] -def cygpath(path): +def cygpath(path: PathLike) -> PathLike: """Use :meth:`git.cmd.Git.polish_url()` instead, that works on any environment.""" + path = str(path) # ensure is str and not AnyPath if not path.startswith(('/cygdrive', '//')): for regex, parser, recurse in _cygpath_parsers: match = regex.match(path) @@ -279,7 +299,8 @@ def cygpath(path): _decygpath_regex = re.compile(r"/cygdrive/(\w)(/.*)?") -def decygpath(path): +def decygpath(path: PathLike) -> str: + path = str(path) m = _decygpath_regex.match(path) if m: drive, rest_path = m.groups() @@ -290,23 +311,23 @@ def decygpath(path): #: Store boolean flags denoting if a specific Git executable #: is from a Cygwin installation (since `cache_lru()` unsupported on PY2). -_is_cygwin_cache = {} +_is_cygwin_cache = {} # type: Dict[str, Optional[bool]] -def is_cygwin_git(git_executable): +def is_cygwin_git(git_executable: PathLike) -> bool: if not is_win: return False #from subprocess import check_output - - is_cygwin = _is_cygwin_cache.get(git_executable) + git_executable = str(git_executable) + is_cygwin = _is_cygwin_cache.get(git_executable) # type: Optional[bool] if is_cygwin is None: is_cygwin = False try: git_dir = osp.dirname(git_executable) if not git_dir: res = py_where(git_executable) - git_dir = osp.dirname(res[0]) if res else None + git_dir = osp.dirname(res[0]) if res else "" ## Just a name given, not a real path. uname_cmd = osp.join(git_dir, 'uname') @@ -322,18 +343,18 @@ def is_cygwin_git(git_executable): return is_cygwin -def get_user_id(): +def get_user_id() -> str: """:return: string identifying the currently active system user as name@node""" return "%s@%s" % (getpass.getuser(), platform.node()) -def finalize_process(proc, **kwargs): +def finalize_process(proc: TBD, **kwargs: Any) -> None: """Wait for the process (clone, fetch, pull or push) and handle its errors accordingly""" ## TODO: No close proc-streams?? proc.wait(**kwargs) -def expand_path(p, expand_vars=True): +def expand_path(p: PathLike, expand_vars: bool = True) -> Optional[PathLike]: try: p = osp.expanduser(p) if expand_vars: @@ -342,6 +363,34 @@ def expand_path(p, expand_vars=True): except Exception: return None + +def remove_password_if_present(cmdline): + """ + Parse any command line argument and if on of the element is an URL with a + password, replace it by stars (in-place). + + If nothing found just returns the command line as-is. + + This should be used for every log line that print a command line. + """ + new_cmdline = [] + for index, to_parse in enumerate(cmdline): + new_cmdline.append(to_parse) + try: + url = urlsplit(to_parse) + # Remove password from the URL if present + if url.password is None: + continue + + edited_url = url._replace( + netloc=url.netloc.replace(url.password, "*****")) + new_cmdline[index] = urlunsplit(edited_url) + except ValueError: + # This is not a valid URL + continue + return new_cmdline + + #} END utilities #{ Classes @@ -368,129 +417,128 @@ class RemoteProgress(object): re_op_absolute = re.compile(r"(remote: )?([\w\s]+):\s+()(\d+)()(.*)") re_op_relative = re.compile(r"(remote: )?([\w\s]+):\s+(\d+)% \((\d+)/(\d+)\)(.*)") - def __init__(self): - self._seen_ops = [] - self._cur_line = None - self.error_lines = [] - self.other_lines = [] + def __init__(self) -> None: + self._seen_ops = [] # type: List[TBD] + self._cur_line = None # type: Optional[str] + self.error_lines = [] # type: List[str] + self.other_lines = [] # type: List[str] - def _parse_progress_line(self, line): + def _parse_progress_line(self, line: AnyStr) -> None: """Parse progress information from the given line as retrieved by git-push or git-fetch. - Lines that do not contain progress info are stored in :attr:`other_lines`. - Lines that seem to contain an error (i.e. start with error: or fatal:) are stored - in :attr:`error_lines`. - - :return: list(line, ...) list of lines that could not be processed""" + in :attr:`error_lines`.""" # handle # Counting objects: 4, done. - # Compressing objects: 50% (1/2) \rCompressing objects: 100% (2/2) \rCompressing objects: 100% (2/2), done. - self._cur_line = line - if len(self.error_lines) > 0 or self._cur_line.startswith(('error:', 'fatal:')): + # Compressing objects: 50% (1/2) + # Compressing objects: 100% (2/2) + # Compressing objects: 100% (2/2), done. + if isinstance(line, bytes): # mypy argues about ternary assignment + line_str = line.decode('utf-8') + else: + line_str = line + self._cur_line = line_str + + if self.error_lines or self._cur_line.startswith(('error:', 'fatal:')): self.error_lines.append(self._cur_line) - return [] - - sub_lines = line.split('\r') - failed_lines = [] - for sline in sub_lines: - # find escape characters and cut them away - regex will not work with - # them as they are non-ascii. As git might expect a tty, it will send them - last_valid_index = None - for i, c in enumerate(reversed(sline)): - if ord(c) < 32: - # its a slice index - last_valid_index = -i - 1 - # END character was non-ascii - # END for each character in sline - if last_valid_index is not None: - sline = sline[:last_valid_index] - # END cut away invalid part - sline = sline.rstrip() - - cur_count, max_count = None, None - match = self.re_op_relative.match(sline) - if match is None: - match = self.re_op_absolute.match(sline) - - if not match: - self.line_dropped(sline) - failed_lines.append(sline) - continue - # END could not get match - - op_code = 0 - remote, op_name, percent, cur_count, max_count, message = match.groups() # @UnusedVariable - - # get operation id - if op_name == "Counting objects": - op_code |= self.COUNTING - elif op_name == "Compressing objects": - op_code |= self.COMPRESSING - elif op_name == "Writing objects": - op_code |= self.WRITING - elif op_name == 'Receiving objects': - op_code |= self.RECEIVING - elif op_name == 'Resolving deltas': - op_code |= self.RESOLVING - elif op_name == 'Finding sources': - op_code |= self.FINDING_SOURCES - elif op_name == 'Checking out files': - op_code |= self.CHECKING_OUT - else: - # Note: On windows it can happen that partial lines are sent - # Hence we get something like "CompreReceiving objects", which is - # a blend of "Compressing objects" and "Receiving objects". - # This can't really be prevented, so we drop the line verbosely - # to make sure we get informed in case the process spits out new - # commands at some point. - self.line_dropped(sline) - # Note: Don't add this line to the failed lines, as we have to silently - # drop it - self.other_lines.extend(failed_lines) - return failed_lines - # END handle op code - - # figure out stage - if op_code not in self._seen_ops: - self._seen_ops.append(op_code) - op_code |= self.BEGIN - # END begin opcode - - if message is None: - message = '' - # END message handling - - message = message.strip() - if message.endswith(self.DONE_TOKEN): - op_code |= self.END - message = message[:-len(self.DONE_TOKEN)] - # END end message handling - message = message.strip(self.TOKEN_SEPARATOR) - - self.update(op_code, - cur_count and float(cur_count), - max_count and float(max_count), - message) - # END for each sub line - self.other_lines.extend(failed_lines) - return failed_lines - - def new_message_handler(self): + return + + # find escape characters and cut them away - regex will not work with + # them as they are non-ascii. As git might expect a tty, it will send them + last_valid_index = None + for i, c in enumerate(reversed(line_str)): + if ord(c) < 32: + # its a slice index + last_valid_index = -i - 1 + # END character was non-ascii + # END for each character in line + if last_valid_index is not None: + line_str = line_str[:last_valid_index] + # END cut away invalid part + line_str = line_str.rstrip() + + cur_count, max_count = None, None + match = self.re_op_relative.match(line_str) + if match is None: + match = self.re_op_absolute.match(line_str) + + if not match: + self.line_dropped(line_str) + self.other_lines.append(line_str) + return + # END could not get match + + op_code = 0 + _remote, op_name, _percent, cur_count, max_count, message = match.groups() + + # get operation id + if op_name == "Counting objects": + op_code |= self.COUNTING + elif op_name == "Compressing objects": + op_code |= self.COMPRESSING + elif op_name == "Writing objects": + op_code |= self.WRITING + elif op_name == 'Receiving objects': + op_code |= self.RECEIVING + elif op_name == 'Resolving deltas': + op_code |= self.RESOLVING + elif op_name == 'Finding sources': + op_code |= self.FINDING_SOURCES + elif op_name == 'Checking out files': + op_code |= self.CHECKING_OUT + else: + # Note: On windows it can happen that partial lines are sent + # Hence we get something like "CompreReceiving objects", which is + # a blend of "Compressing objects" and "Receiving objects". + # This can't really be prevented, so we drop the line verbosely + # to make sure we get informed in case the process spits out new + # commands at some point. + self.line_dropped(line_str) + # Note: Don't add this line to the other lines, as we have to silently + # drop it + return None + # END handle op code + + # figure out stage + if op_code not in self._seen_ops: + self._seen_ops.append(op_code) + op_code |= self.BEGIN + # END begin opcode + + if message is None: + message = '' + # END message handling + + message = message.strip() + if message.endswith(self.DONE_TOKEN): + op_code |= self.END + message = message[:-len(self.DONE_TOKEN)] + # END end message handling + message = message.strip(self.TOKEN_SEPARATOR) + + self.update(op_code, + cur_count and float(cur_count), + max_count and float(max_count), + message) + + def new_message_handler(self) -> Callable[[str], None]: """ :return: a progress handler suitable for handle_process_output(), passing lines on to this Progress handler in a suitable format""" - def handler(line): + def handler(line: AnyStr) -> None: return self._parse_progress_line(line.rstrip()) # end return handler - def line_dropped(self, line): + def line_dropped(self, line: str) -> None: """Called whenever a line could not be understood and was therefore dropped.""" pass - def update(self, op_code, cur_count, max_count=None, message=''): + def update(self, op_code: int, cur_count: Union[str, float], max_count: Union[str, float, None] = None, + message: str = '',) -> None: """Called whenever the progress changes :param op_code: @@ -521,11 +569,11 @@ class CallableRemoteProgress(RemoteProgress): """An implementation forwarding updates to any callable""" __slots__ = ('_callable') - def __init__(self, fn): + def __init__(self, fn: Callable) -> None: self._callable = fn super(CallableRemoteProgress, self).__init__() - def update(self, *args, **kwargs): + def update(self, *args: Any, **kwargs: Any) -> None: self._callable(*args, **kwargs) @@ -534,8 +582,8 @@ class Actor(object): can be committers and authors or anything with a name and an email as mentioned in the git log entries.""" # PRECOMPILED REGEX - name_only_regex = re.compile(r'<(.+)>') - name_email_regex = re.compile(r'(.*) <(.+?)>') + name_only_regex = re.compile(r'<(.*)>') + name_email_regex = re.compile(r'(.*) <(.*?)>') # ENVIRONMENT VARIABLES # read when creating new commits @@ -550,27 +598,27 @@ class Actor(object): __slots__ = ('name', 'email') - def __init__(self, name, email): + def __init__(self, name: Optional[str], email: Optional[str]) -> None: self.name = name self.email = email - def __eq__(self, other): + def __eq__(self, other: Any) -> bool: return self.name == other.name and self.email == other.email - def __ne__(self, other): + def __ne__(self, other: Any) -> bool: return not (self == other) - def __hash__(self): + def __hash__(self) -> int: return hash((self.name, self.email)) - def __str__(self): - return self.name + def __str__(self) -> str: + return self.name if self.name else "" - def __repr__(self): - return u'">' % (self.name, self.email) + def __repr__(self) -> str: + return '">' % (self.name, self.email) @classmethod - def _from_string(cls, string): + def _from_string(cls, string: str) -> 'Actor': """Create an Actor from a string. :param string: is the string, which is expected to be in regular git format @@ -585,38 +633,42 @@ def _from_string(cls, string): m = cls.name_only_regex.search(string) if m: return Actor(m.group(1), None) - else: - # assume best and use the whole string as name - return Actor(string, None) + # assume best and use the whole string as name + return Actor(string, None) # END special case name # END handle name/email matching @classmethod - def _main_actor(cls, env_name, env_email, config_reader=None): + def _main_actor(cls, env_name: str, env_email: str, config_reader: Optional[TBD] = None) -> 'Actor': actor = Actor('', '') - default_email = get_user_id() - default_name = default_email.split('@')[0] + user_id = None # We use this to avoid multiple calls to getpass.getuser() + + def default_email() -> str: + nonlocal user_id + if not user_id: + user_id = get_user_id() + return user_id + + def default_name() -> str: + return default_email().split('@')[0] for attr, evar, cvar, default in (('name', env_name, cls.conf_name, default_name), ('email', env_email, cls.conf_email, default_email)): try: val = os.environ[evar] - if not PY3: - val = val.decode(defenc) - # end assure we don't get 'invalid strings' setattr(actor, attr, val) except KeyError: if config_reader is not None: - setattr(actor, attr, config_reader.get_value('user', cvar, default)) + setattr(actor, attr, config_reader.get_value('user', cvar, default())) # END config-reader handling if not getattr(actor, attr): - setattr(actor, attr, default) + setattr(actor, attr, default()) # END handle name # END for each item to retrieve return actor @classmethod - def committer(cls, config_reader=None): + def committer(cls, config_reader: Optional[TBD] = None) -> 'Actor': """ :return: Actor instance corresponding to the configured committer. It behaves similar to the git implementation, such that the environment will override @@ -627,7 +679,7 @@ def committer(cls, config_reader=None): return cls._main_actor(cls.env_committer_name, cls.env_committer_email, config_reader) @classmethod - def author(cls, config_reader=None): + def author(cls, config_reader: Optional[TBD] = None) -> 'Actor': """Same as committer(), but defines the main author. It may be specified in the environment, but defaults to the committer""" return cls._main_actor(cls.env_author_name, cls.env_author_email, config_reader) @@ -661,16 +713,18 @@ class Stats(object): files = number of changed files as int""" __slots__ = ("total", "files") - def __init__(self, total, files): + def __init__(self, total: Dict[str, Dict[str, int]], files: Dict[str, Dict[str, int]]): self.total = total self.files = files @classmethod - def _list_from_string(cls, repo, text): + def _list_from_string(cls, repo: 'Repo', text: str) -> 'Stats': """Create a Stat object from output retrieved by git-diff. :return: git.Stat""" - hsh = {'total': {'insertions': 0, 'deletions': 0, 'lines': 0, 'files': 0}, 'files': {}} + hsh = {'total': {'insertions': 0, 'deletions': 0, 'lines': 0, 'files': 0}, + 'files': {} + } # type: Dict[str, Dict[str, TBD]] ## need typeddict or refactor for mypy for line in text.splitlines(): (raw_insertions, raw_deletions, filename) = line.split("\t") insertions = raw_insertions != '-' and int(raw_insertions) or 0 @@ -696,25 +750,25 @@ class IndexFileSHA1Writer(object): :note: Based on the dulwich project""" __slots__ = ("f", "sha1") - def __init__(self, f): + def __init__(self, f: IO) -> None: self.f = f self.sha1 = make_sha(b"") - def write(self, data): + def write(self, data: AnyStr) -> int: self.sha1.update(data) return self.f.write(data) - def write_sha(self): + def write_sha(self) -> bytes: sha = self.sha1.digest() self.f.write(sha) return sha - def close(self): + def close(self) -> bytes: sha = self.write_sha() self.f.close() return sha - def tell(self): + def tell(self) -> int: return self.f.tell() @@ -728,23 +782,23 @@ class LockFile(object): Locks will automatically be released on destruction""" __slots__ = ("_file_path", "_owns_lock") - def __init__(self, file_path): + def __init__(self, file_path: PathLike) -> None: self._file_path = file_path self._owns_lock = False - def __del__(self): + def __del__(self) -> None: self._release_lock() - def _lock_file_path(self): + def _lock_file_path(self) -> str: """:return: Path to lockfile""" return "%s.lock" % (self._file_path) - def _has_lock(self): + def _has_lock(self) -> bool: """:return: True if we have a lock and if the lockfile still exists :raise AssertionError: if our lock-file does not exist""" return self._owns_lock - def _obtain_lock_or_raise(self): + def _obtain_lock_or_raise(self) -> None: """Create a lock file as flag for other instances, mark our instance as lock-holder :raise IOError: if a lock was already present or a lock file could not be written""" @@ -762,16 +816,16 @@ def _obtain_lock_or_raise(self): fd = os.open(lock_file, flags, 0) os.close(fd) except OSError as e: - raise IOError(str(e)) + raise IOError(str(e)) from e self._owns_lock = True - def _obtain_lock(self): + def _obtain_lock(self) -> None: """The default implementation will raise if a lock cannot be obtained. Subclasses may override this method to provide a different implementation""" return self._obtain_lock_or_raise() - def _release_lock(self): + def _release_lock(self) -> None: """Release our lock if we have one""" if not self._has_lock(): return @@ -796,7 +850,7 @@ class BlockingLockFile(LockFile): can never be obtained.""" __slots__ = ("_check_interval", "_max_block_time") - def __init__(self, file_path, check_interval_s=0.3, max_block_time_s=MAXSIZE): + def __init__(self, file_path: PathLike, check_interval_s: float = 0.3, max_block_time_s: int = maxsize) -> None: """Configure the instance :param check_interval_s: @@ -808,7 +862,7 @@ def __init__(self, file_path, check_interval_s=0.3, max_block_time_s=MAXSIZE): self._check_interval = check_interval_s self._max_block_time = max_block_time_s - def _obtain_lock(self): + def _obtain_lock(self) -> None: """This method blocks until it obtained the lock, or raises IOError if it ran out of time or if the parent directory was not available anymore. If this method returns, you are guaranteed to own the lock""" @@ -817,19 +871,19 @@ def _obtain_lock(self): while True: try: super(BlockingLockFile, self)._obtain_lock() - except IOError: + except IOError as e: # synity check: if the directory leading to the lockfile is not # readable anymore, raise an exception curtime = time.time() if not osp.isdir(osp.dirname(self._lock_file_path())): msg = "Directory containing the lockfile %r was not readable anymore after waiting %g seconds" % ( self._lock_file_path(), curtime - starttime) - raise IOError(msg) + raise IOError(msg) from e # END handle missing directory if curtime >= maxtime: msg = "Waited %g seconds for lock at %r" % (maxtime - starttime, self._lock_file_path()) - raise IOError(msg) + raise IOError(msg) from e # END abort if we wait too long time.sleep(self._check_interval) else: @@ -855,29 +909,32 @@ class IterableList(list): can be left out.""" __slots__ = ('_id_attr', '_prefix') - def __new__(cls, id_attr, prefix=''): + def __new__(cls, id_attr: str, prefix: str = '') -> 'IterableList': return super(IterableList, cls).__new__(cls) - def __init__(self, id_attr, prefix=''): + def __init__(self, id_attr: str, prefix: str = '') -> None: self._id_attr = id_attr self._prefix = prefix - def __contains__(self, attr): + def __contains__(self, attr: object) -> bool: # first try identity match for performance - rval = list.__contains__(self, attr) - if rval: - return rval + try: + rval = list.__contains__(self, attr) + if rval: + return rval + except (AttributeError, TypeError): + pass # END handle match # otherwise make a full name search try: - getattr(self, attr) + getattr(self, cast(str, attr)) # use cast to silence mypy return True except (AttributeError, TypeError): return False # END handle membership - def __getattr__(self, attr): + def __getattr__(self, attr: str) -> Any: attr = self._prefix + attr for item in self: if getattr(item, self._id_attr) == attr: @@ -885,20 +942,24 @@ def __getattr__(self, attr): # END for each item return list.__getattribute__(self, attr) - def __getitem__(self, index): + def __getitem__(self, index: Union[int, slice, str]) -> Any: if isinstance(index, int): return list.__getitem__(self, index) - - try: - return getattr(self, index) - except AttributeError: - raise IndexError("No item found with id %r" % (self._prefix + index)) + elif isinstance(index, slice): + raise ValueError("Index should be an int or str") + else: + try: + return getattr(self, index) + except AttributeError as e: + raise IndexError("No item found with id %r" % (self._prefix + index)) from e # END handle getattr - def __delitem__(self, index): - delindex = index + def __delitem__(self, index: Union[int, str, slice]) -> None: + + delindex = cast(int, index) if not isinstance(index, int): delindex = -1 + assert not isinstance(index, slice) name = self._prefix + index for i, item in enumerate(self): if getattr(item, self._id_attr) == name: @@ -921,7 +982,7 @@ class Iterable(object): _id_attribute_ = "attribute that most suitably identifies your instance" @classmethod - def list_items(cls, repo, *args, **kwargs): + def list_items(cls, repo: 'Repo', *args: Any, **kwargs: Any) -> 'IterableList': """ Find all items of this type - subclasses can specify args and kwargs differently. If no args are given, subclasses are obliged to return all items if no additional @@ -935,7 +996,7 @@ def list_items(cls, repo, *args, **kwargs): return out_list @classmethod - def iter_items(cls, repo, *args, **kwargs): + def iter_items(cls, repo: 'Repo', *args: Any, **kwargs: Any) -> NoReturn: """For more information about the arguments, see list_items :return: iterator yielding Items""" raise NotImplementedError("To be implemented by Subclass") @@ -944,10 +1005,5 @@ def iter_items(cls, repo, *args, **kwargs): class NullHandler(logging.Handler): - def emit(self, record): + def emit(self, record: object) -> None: pass - - -# In Python 2.6, there is no NullHandler yet. Let's monkey-patch it for a workaround. -if not hasattr(logging, 'NullHandler'): - logging.NullHandler = NullHandler diff --git a/init-tests-after-clone.sh b/init-tests-after-clone.sh index 0d4458912..e852f3cd9 100755 --- a/init-tests-after-clone.sh +++ b/init-tests-after-clone.sh @@ -12,4 +12,5 @@ git checkout master || git checkout -b master git reset --hard HEAD~1 git reset --hard HEAD~1 git reset --hard HEAD~1 -git reset --hard __testing_point__ \ No newline at end of file +git reset --hard __testing_point__ +git submodule update --init --recursive \ No newline at end of file diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 000000000..349266b77 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,4 @@ + +[mypy] + +disallow_untyped_defs = True diff --git a/release-verification-key.asc b/release-verification-key.asc index 361253ace..e20fe8b9b 100644 --- a/release-verification-key.asc +++ b/release-verification-key.asc @@ -1,1735 +1,83 @@ -----BEGIN PGP PUBLIC KEY BLOCK----- -Comment: GPGTools - https://gpgtools.org -mQINBFj+MasBEACak+exWFzTyjtJfz1D7WgSSJ19ZW36IfAX4/E2cxLCZ/hFUPqE -+9EI0EsmysDs6m7eYk5TIIeqHlGtAQRcryTAMK7swd0ORGG0N7NJxAuc9cWomZII -I+vrQI0VcQGr1ovXROz7Zf6wuN2GLRpQm4p4CAA/bC6NRAEn9uTwmKrW/Xv+Hhro -QWznTgNsOCb4wu8BZs0UkH/9ZG67Jhf/5sqI9t6l7DcuSWy+BhGRQazgAslCY4rl -/9VL9LzsGiqXQJKIDdrQWVhCBDOknz8W0yxW/THc2HBMvh/YXG5NBDucXL6nKtUx -eLfQep8iHQy7TBSoyn5Gi0Wi7unBwSHKiBzI7Abby43j4oeYSdul7bVT+7q7sPqm -cWjZmj3WsVUDFjFRsHirjViLiqRuz7ksK5eDT9CneZM7mSomab+uofpKvRl67O9L -LmZ5YjEatWqps7mH80pLk0Y4g28AR3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WFnlTHhnd8Sc6iYYg4ckRzaMlpxEs69YPkiZfN+ +jSEe7S33ELwP6Hu4xwFs8I88t7YoVHnIR/S4pS1MxCkDzwSrEq/b3jynFVlhbYKZ +ZwbPXb1kh0T5frErOScNyUvqvQn/Pg8pgLDOLz5bXO87pzhWe9rk8hiCVeMx5doF +dLWvorwxvHL7MdsVjR0Z/RG+VslQI2leJDzroB+f6Fr+SPxAq5pvD/JtVMzJq7+G +OTIk4hqDZbEVQCSgiRjNLw8nMgrpkPDk5pRTuPpMR48OhP35azMq9GvzNpTXxKQs +/e8u4XkwjKviGmUrgiOAyBlUMWsF9IBRKm5B/STohCT4ZeU4VJdlzB7JHwrr7CJd +fqxMjx0bDHkiDsZTgmEDJnz6+jK0DmvsFmU= +=wC+d -----END PGP PUBLIC KEY BLOCK----- diff --git a/requirements.txt b/requirements.txt index 396446062..626a916a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -gitdb>=0.6.4 -ddt>=1.1.1 +gitdb>=4.0.1,<5 +typing-extensions>=3.7.4.0 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 3c6e79cf3..000000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/setup.py b/setup.py index 2703a9cac..f8829c386 100755 --- a/setup.py +++ b/setup.py @@ -9,6 +9,7 @@ from distutils.command.build_py import build_py as _build_py from setuptools.command.sdist import sdist as _sdist +import fnmatch import os import sys from os import path @@ -19,6 +20,9 @@ with open('requirements.txt') as reqs_file: requirements = reqs_file.read().splitlines() +with open('test-requirements.txt') as reqs_file: + test_requirements = reqs_file.read().splitlines() + class build_py(_build_py): @@ -63,9 +67,23 @@ def _stamp_version(filename): print("WARNING: Couldn't find version line in file %s" % filename, file=sys.stderr) -install_requires = ['gitdb2 >= 2.0.0'] -test_requires = ['ddt>=1.1.1'] -# end +def build_py_modules(basedir, excludes=[]): + # create list of py_modules from tree + res = set() + _prefix = os.path.basename(basedir) + for root, _, files in os.walk(basedir): + for f in files: + _f, _ext = os.path.splitext(f) + if _ext not in [".py"]: + continue + _f = os.path.join(root, _f) + _f = os.path.relpath(_f, basedir) + _f = "{}.{}".format(_prefix, _f.replace(os.sep, ".")) + if any(fnmatch.fnmatch(_f, x) for x in excludes): + continue + res.add(_f) + return list(res) + setup( name="GitPython", @@ -74,16 +92,16 @@ def _stamp_version(filename): description="Python Git Library", author="Sebastian Thiel, Michael Trier", author_email="byronimo@gmail.com, mtrier@gmail.com", + license="BSD", url="https://github.com/gitpython-developers/GitPython", - packages=find_packages('.'), - py_modules=['git.' + f[:-3] for f in os.listdir('./git') if f.endswith('.py')], - package_data={'git.test': ['fixtures/*']}, + packages=find_packages(exclude=("test.*")), + package_data={'git': ['**/*.pyi', 'py.typed']}, + include_package_data=True, + py_modules=build_py_modules("./git", excludes=["git.ext.*"]), package_dir={'git': 'git'}, - license="BSD License", - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', - requires=['gitdb2 (>=2.0.0)'], - install_requires=install_requires, - test_requirements=test_requires + install_requires, + python_requires='>=3.5', + install_requires=requirements, + tests_require=requirements + test_requirements, zip_safe=False, long_description="""GitPython is a python library used to interact with Git repositories""", classifiers=[ @@ -104,11 +122,11 @@ def _stamp_version(filename): "Operating System :: Microsoft :: Windows", "Operating System :: MacOS :: MacOS X", "Programming Language :: Python", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9" ] ) diff --git a/test-requirements.txt b/test-requirements.txt index 1cea3aa21..0734820f7 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,6 +1,8 @@ --r requirements.txt - +ddt>=1.1.1 coverage flake8 +tox +virtualenv nose -mock; python_version=='2.7' \ No newline at end of file +gitdb>=4.0.1,<5 +typing-extensions>=3.7.4.0 diff --git a/git/test/__init__.py b/test/__init__.py similarity index 100% rename from git/test/__init__.py rename to test/__init__.py diff --git a/git/test/fixtures/.gitconfig b/test/fixtures/.gitconfig similarity index 100% rename from git/test/fixtures/.gitconfig rename to test/fixtures/.gitconfig diff --git a/git/test/fixtures/blame b/test/fixtures/blame similarity index 100% rename from git/test/fixtures/blame rename to test/fixtures/blame diff --git a/git/test/fixtures/blame_binary b/test/fixtures/blame_binary similarity index 100% rename from git/test/fixtures/blame_binary rename to test/fixtures/blame_binary diff --git a/git/test/fixtures/blame_complex_revision b/test/fixtures/blame_complex_revision similarity index 100% rename from git/test/fixtures/blame_complex_revision rename to test/fixtures/blame_complex_revision diff --git a/git/test/fixtures/blame_incremental b/test/fixtures/blame_incremental similarity index 100% rename from git/test/fixtures/blame_incremental rename to test/fixtures/blame_incremental diff --git a/git/test/fixtures/blame_incremental_2.11.1_plus b/test/fixtures/blame_incremental_2.11.1_plus similarity index 100% rename from git/test/fixtures/blame_incremental_2.11.1_plus rename to test/fixtures/blame_incremental_2.11.1_plus diff --git a/git/test/fixtures/cat_file.py b/test/fixtures/cat_file.py similarity index 100% rename from git/test/fixtures/cat_file.py rename to test/fixtures/cat_file.py diff --git a/git/test/fixtures/cat_file_blob b/test/fixtures/cat_file_blob similarity index 100% rename from git/test/fixtures/cat_file_blob rename to test/fixtures/cat_file_blob diff --git a/git/test/fixtures/cat_file_blob_nl b/test/fixtures/cat_file_blob_nl similarity index 100% rename from git/test/fixtures/cat_file_blob_nl rename to test/fixtures/cat_file_blob_nl diff --git a/git/test/fixtures/cat_file_blob_size b/test/fixtures/cat_file_blob_size similarity index 100% rename from git/test/fixtures/cat_file_blob_size rename to test/fixtures/cat_file_blob_size diff --git a/git/test/fixtures/commit_invalid_data b/test/fixtures/commit_invalid_data similarity index 100% rename from git/test/fixtures/commit_invalid_data rename to test/fixtures/commit_invalid_data diff --git a/git/test/fixtures/commit_with_gpgsig b/test/fixtures/commit_with_gpgsig similarity index 100% rename from git/test/fixtures/commit_with_gpgsig rename to test/fixtures/commit_with_gpgsig diff --git a/git/test/fixtures/diff_2 b/test/fixtures/diff_2 similarity index 100% rename from git/test/fixtures/diff_2 rename to test/fixtures/diff_2 diff --git a/git/test/fixtures/diff_2f b/test/fixtures/diff_2f similarity index 100% rename from git/test/fixtures/diff_2f rename to test/fixtures/diff_2f diff --git a/git/test/fixtures/diff_abbrev-40_full-index_M_raw_no-color b/test/fixtures/diff_abbrev-40_full-index_M_raw_no-color similarity index 100% rename from git/test/fixtures/diff_abbrev-40_full-index_M_raw_no-color rename to test/fixtures/diff_abbrev-40_full-index_M_raw_no-color diff --git a/git/test/fixtures/diff_change_in_type b/test/fixtures/diff_change_in_type similarity index 100% rename from git/test/fixtures/diff_change_in_type rename to test/fixtures/diff_change_in_type diff --git a/git/test/fixtures/diff_change_in_type_raw b/test/fixtures/diff_change_in_type_raw similarity index 100% rename from git/test/fixtures/diff_change_in_type_raw rename to test/fixtures/diff_change_in_type_raw diff --git a/test/fixtures/diff_copied_mode b/test/fixtures/diff_copied_mode new file mode 100644 index 000000000..60707afc8 --- /dev/null +++ b/test/fixtures/diff_copied_mode @@ -0,0 +1,4 @@ +diff --git a/test1.txt b/test2.txt +similarity index 100% +copy from test1.txt +copy to test2.txt diff --git a/test/fixtures/diff_copied_mode_raw b/test/fixtures/diff_copied_mode_raw new file mode 100644 index 000000000..7640f3ab7 --- /dev/null +++ b/test/fixtures/diff_copied_mode_raw @@ -0,0 +1 @@ +:100644 100644 cfe9deac6e10683917e80f877566b58644aa21df cfe9deac6e10683917e80f877566b58644aa21df C100 test1.txt test2.txt diff --git a/git/test/fixtures/diff_f b/test/fixtures/diff_f similarity index 100% rename from git/test/fixtures/diff_f rename to test/fixtures/diff_f diff --git a/git/test/fixtures/diff_file_with_spaces b/test/fixtures/diff_file_with_spaces similarity index 100% rename from git/test/fixtures/diff_file_with_spaces rename to test/fixtures/diff_file_with_spaces diff --git a/git/test/fixtures/diff_i b/test/fixtures/diff_i similarity index 100% rename from git/test/fixtures/diff_i rename to test/fixtures/diff_i diff --git a/git/test/fixtures/diff_index_patch b/test/fixtures/diff_index_patch similarity index 92% rename from git/test/fixtures/diff_index_patch rename to test/fixtures/diff_index_patch index a5a8cff24..f617f8dee 100644 --- a/git/test/fixtures/diff_index_patch +++ b/test/fixtures/diff_index_patch @@ -56,26 +56,26 @@ index f2233fbf40f3f69309ce5cc714e99fcbdcd33ec3..a88a777df3909a61be97f1a7b1194dad @@ -1 +1 @@ -Subproject commit f2233fbf40f3f69309ce5cc714e99fcbdcd33ec3 +Subproject commit a88a777df3909a61be97f1a7b1194dad6de25702-dirty -diff --git a/git/test/fixtures/diff_patch_binary b/git/test/fixtures/diff_patch_binary +diff --git a/test/fixtures/diff_patch_binary b/test/fixtures/diff_patch_binary new file mode 100644 index 0000000000000000000000000000000000000000..c92ccd6ebc92a871d38ad7cb8a48bcdb1a5dbc33 --- /dev/null -+++ b/git/test/fixtures/diff_patch_binary ++++ b/test/fixtures/diff_patch_binary @@ -0,0 +1,3 @@ +diff --git a/rps b/rps +index f4567df37451b230b1381b1bc9c2bcad76e08a3c..736bd596a36924d30b480942e9475ce0d734fa0d 100755 +Binary files a/rps and b/rps differ -diff --git a/git/test/fixtures/diff_raw_binary b/git/test/fixtures/diff_raw_binary +diff --git a/test/fixtures/diff_raw_binary b/test/fixtures/diff_raw_binary new file mode 100644 index 0000000000000000000000000000000000000000..d4673fa41ee8413384167fc7b9f25e4daf18a53a --- /dev/null -+++ b/git/test/fixtures/diff_raw_binary ++++ b/test/fixtures/diff_raw_binary @@ -0,0 +1 @@ +:100755 100755 f4567df37451b230b1381b1bc9c2bcad76e08a3c 736bd596a36924d30b480942e9475ce0d734fa0d M rps -diff --git a/git/test/test_diff.py b/git/test/test_diff.py +diff --git a/test/test_diff.py b/test/test_diff.py index ce0f64f2261bd8de063233108caac1f26742c1fd..4de26f8884fd048ac7f10007f2bf7c7fa3fa60f4 100644 ---- a/git/test/test_diff.py -+++ b/git/test/test_diff.py +--- a/test/test_diff.py ++++ b/test/test_diff.py @@ -65,6 +65,21 @@ class TestDiff(TestBase): assert diff.rename_to == 'that' assert len(list(diffs.iter_change_type('R'))) == 1 diff --git a/git/test/fixtures/diff_index_raw b/test/fixtures/diff_index_raw similarity index 100% rename from git/test/fixtures/diff_index_raw rename to test/fixtures/diff_index_raw diff --git a/git/test/fixtures/diff_initial b/test/fixtures/diff_initial similarity index 100% rename from git/test/fixtures/diff_initial rename to test/fixtures/diff_initial diff --git a/git/test/fixtures/diff_mode_only b/test/fixtures/diff_mode_only similarity index 100% rename from git/test/fixtures/diff_mode_only rename to test/fixtures/diff_mode_only diff --git a/git/test/fixtures/diff_new_mode b/test/fixtures/diff_new_mode similarity index 100% rename from git/test/fixtures/diff_new_mode rename to test/fixtures/diff_new_mode diff --git a/git/test/fixtures/diff_numstat b/test/fixtures/diff_numstat similarity index 100% rename from git/test/fixtures/diff_numstat rename to test/fixtures/diff_numstat diff --git a/git/test/fixtures/diff_p b/test/fixtures/diff_p similarity index 100% rename from git/test/fixtures/diff_p rename to test/fixtures/diff_p diff --git a/git/test/fixtures/diff_patch_binary b/test/fixtures/diff_patch_binary similarity index 100% rename from git/test/fixtures/diff_patch_binary rename to test/fixtures/diff_patch_binary diff --git a/git/test/fixtures/diff_patch_unsafe_paths b/test/fixtures/diff_patch_unsafe_paths similarity index 100% rename from git/test/fixtures/diff_patch_unsafe_paths rename to test/fixtures/diff_patch_unsafe_paths diff --git a/git/test/fixtures/diff_raw_binary b/test/fixtures/diff_raw_binary similarity index 100% rename from git/test/fixtures/diff_raw_binary rename to test/fixtures/diff_raw_binary diff --git a/git/test/fixtures/diff_rename b/test/fixtures/diff_rename similarity index 100% rename from git/test/fixtures/diff_rename rename to test/fixtures/diff_rename diff --git a/git/test/fixtures/diff_rename_raw b/test/fixtures/diff_rename_raw similarity index 100% rename from git/test/fixtures/diff_rename_raw rename to test/fixtures/diff_rename_raw diff --git a/git/test/fixtures/diff_tree_numstat_root b/test/fixtures/diff_tree_numstat_root similarity index 100% rename from git/test/fixtures/diff_tree_numstat_root rename to test/fixtures/diff_tree_numstat_root diff --git a/git/test/fixtures/for_each_ref_with_path_component b/test/fixtures/for_each_ref_with_path_component similarity index 100% rename from git/test/fixtures/for_each_ref_with_path_component rename to test/fixtures/for_each_ref_with_path_component diff --git a/git/test/fixtures/git_config b/test/fixtures/git_config similarity index 100% rename from git/test/fixtures/git_config rename to test/fixtures/git_config diff --git a/git/test/fixtures/git_config-inc.cfg b/test/fixtures/git_config-inc.cfg similarity index 100% rename from git/test/fixtures/git_config-inc.cfg rename to test/fixtures/git_config-inc.cfg diff --git a/git/test/fixtures/git_config_global b/test/fixtures/git_config_global similarity index 100% rename from git/test/fixtures/git_config_global rename to test/fixtures/git_config_global diff --git a/test/fixtures/git_config_multiple b/test/fixtures/git_config_multiple new file mode 100644 index 000000000..03a975680 --- /dev/null +++ b/test/fixtures/git_config_multiple @@ -0,0 +1,7 @@ +[section0] + option0 = value0 + +[section1] + option1 = value1a + option1 = value1b + other_option1 = other_value1 diff --git a/git/test/fixtures/git_config_with_comments b/test/fixtures/git_config_with_comments similarity index 100% rename from git/test/fixtures/git_config_with_comments rename to test/fixtures/git_config_with_comments diff --git a/git/test/fixtures/git_config_with_empty_value b/test/fixtures/git_config_with_empty_value similarity index 100% rename from git/test/fixtures/git_config_with_empty_value rename to test/fixtures/git_config_with_empty_value diff --git a/git/test/fixtures/git_file b/test/fixtures/git_file similarity index 100% rename from git/test/fixtures/git_file rename to test/fixtures/git_file diff --git a/git/test/fixtures/index b/test/fixtures/index similarity index 100% rename from git/test/fixtures/index rename to test/fixtures/index diff --git a/git/test/fixtures/index_merge b/test/fixtures/index_merge similarity index 100% rename from git/test/fixtures/index_merge rename to test/fixtures/index_merge diff --git a/git/test/fixtures/issue-301_stderr b/test/fixtures/issue-301_stderr similarity index 100% rename from git/test/fixtures/issue-301_stderr rename to test/fixtures/issue-301_stderr diff --git a/git/test/fixtures/ls_tree_a b/test/fixtures/ls_tree_a similarity index 100% rename from git/test/fixtures/ls_tree_a rename to test/fixtures/ls_tree_a diff --git a/git/test/fixtures/ls_tree_b b/test/fixtures/ls_tree_b similarity index 100% rename from git/test/fixtures/ls_tree_b rename to test/fixtures/ls_tree_b diff --git a/git/test/fixtures/ls_tree_commit b/test/fixtures/ls_tree_commit similarity index 100% rename from git/test/fixtures/ls_tree_commit rename to test/fixtures/ls_tree_commit diff --git a/git/test/performance/__init__.py b/test/fixtures/ls_tree_empty similarity index 100% rename from git/test/performance/__init__.py rename to test/fixtures/ls_tree_empty diff --git a/git/test/fixtures/reflog_HEAD b/test/fixtures/reflog_HEAD similarity index 100% rename from git/test/fixtures/reflog_HEAD rename to test/fixtures/reflog_HEAD diff --git a/git/test/fixtures/reflog_invalid_date b/test/fixtures/reflog_invalid_date similarity index 100% rename from git/test/fixtures/reflog_invalid_date rename to test/fixtures/reflog_invalid_date diff --git a/git/test/fixtures/reflog_invalid_email b/test/fixtures/reflog_invalid_email similarity index 100% rename from git/test/fixtures/reflog_invalid_email rename to test/fixtures/reflog_invalid_email diff --git a/git/test/fixtures/reflog_invalid_newsha b/test/fixtures/reflog_invalid_newsha similarity index 100% rename from git/test/fixtures/reflog_invalid_newsha rename to test/fixtures/reflog_invalid_newsha diff --git a/git/test/fixtures/reflog_invalid_oldsha b/test/fixtures/reflog_invalid_oldsha similarity index 100% rename from git/test/fixtures/reflog_invalid_oldsha rename to test/fixtures/reflog_invalid_oldsha diff --git a/git/test/fixtures/reflog_invalid_sep b/test/fixtures/reflog_invalid_sep similarity index 100% rename from git/test/fixtures/reflog_invalid_sep rename to test/fixtures/reflog_invalid_sep diff --git a/git/test/fixtures/reflog_master b/test/fixtures/reflog_master similarity index 100% rename from git/test/fixtures/reflog_master rename to test/fixtures/reflog_master diff --git a/git/test/fixtures/rev_list b/test/fixtures/rev_list similarity index 100% rename from git/test/fixtures/rev_list rename to test/fixtures/rev_list diff --git a/git/test/fixtures/rev_list_bisect_all b/test/fixtures/rev_list_bisect_all similarity index 100% rename from git/test/fixtures/rev_list_bisect_all rename to test/fixtures/rev_list_bisect_all diff --git a/git/test/fixtures/rev_list_commit_diffs b/test/fixtures/rev_list_commit_diffs similarity index 100% rename from git/test/fixtures/rev_list_commit_diffs rename to test/fixtures/rev_list_commit_diffs diff --git a/git/test/fixtures/rev_list_commit_idabbrev b/test/fixtures/rev_list_commit_idabbrev similarity index 100% rename from git/test/fixtures/rev_list_commit_idabbrev rename to test/fixtures/rev_list_commit_idabbrev diff --git a/git/test/fixtures/rev_list_commit_stats b/test/fixtures/rev_list_commit_stats similarity index 100% rename from git/test/fixtures/rev_list_commit_stats rename to test/fixtures/rev_list_commit_stats diff --git a/git/test/fixtures/rev_list_count b/test/fixtures/rev_list_count similarity index 100% rename from git/test/fixtures/rev_list_count rename to test/fixtures/rev_list_count diff --git a/git/test/fixtures/rev_list_delta_a b/test/fixtures/rev_list_delta_a similarity index 100% rename from git/test/fixtures/rev_list_delta_a rename to test/fixtures/rev_list_delta_a diff --git a/git/test/fixtures/rev_list_delta_b b/test/fixtures/rev_list_delta_b similarity index 100% rename from git/test/fixtures/rev_list_delta_b rename to test/fixtures/rev_list_delta_b diff --git a/git/test/fixtures/rev_list_single b/test/fixtures/rev_list_single similarity index 100% rename from git/test/fixtures/rev_list_single rename to test/fixtures/rev_list_single diff --git a/git/test/fixtures/rev_parse b/test/fixtures/rev_parse similarity index 100% rename from git/test/fixtures/rev_parse rename to test/fixtures/rev_parse diff --git a/git/test/fixtures/show_empty_commit b/test/fixtures/show_empty_commit similarity index 100% rename from git/test/fixtures/show_empty_commit rename to test/fixtures/show_empty_commit diff --git a/git/test/fixtures/uncommon_branch_prefix_FETCH_HEAD b/test/fixtures/uncommon_branch_prefix_FETCH_HEAD similarity index 100% rename from git/test/fixtures/uncommon_branch_prefix_FETCH_HEAD rename to test/fixtures/uncommon_branch_prefix_FETCH_HEAD diff --git a/git/test/fixtures/uncommon_branch_prefix_stderr b/test/fixtures/uncommon_branch_prefix_stderr similarity index 100% rename from git/test/fixtures/uncommon_branch_prefix_stderr rename to test/fixtures/uncommon_branch_prefix_stderr diff --git a/git/test/lib/__init__.py b/test/lib/__init__.py similarity index 94% rename from git/test/lib/__init__.py rename to test/lib/__init__.py index 87e267520..1551ce455 100644 --- a/git/test/lib/__init__.py +++ b/test/lib/__init__.py @@ -6,7 +6,6 @@ # flake8: noqa import inspect -from .asserts import * from .helper import * __all__ = [name for name, obj in locals().items() diff --git a/git/test/lib/helper.py b/test/lib/helper.py similarity index 96% rename from git/test/lib/helper.py rename to test/lib/helper.py index 1c06010f4..3412786d1 100644 --- a/git/test/lib/helper.py +++ b/test/lib/helper.py @@ -11,13 +11,12 @@ import io import logging import os -import sys import tempfile import textwrap import time import unittest -from git.compat import string_types, is_win +from git.compat import is_win from git.util import rmtree, cwd import gitdb @@ -30,7 +29,7 @@ ospd = osp.dirname -GIT_REPO = os.environ.get("GIT_PYTHON_TEST_GIT_REPO_BASE", ospd(ospd(ospd(ospd(__file__))))) +GIT_REPO = os.environ.get("GIT_PYTHON_TEST_GIT_REPO_BASE", ospd(ospd(ospd(__file__)))) GIT_DAEMON_PORT = os.environ.get("GIT_PYTHON_TEST_GIT_DAEMON_PORT", "19418") __all__ = ( @@ -117,7 +116,7 @@ def with_rw_repo(working_tree_ref, bare=False): To make working with relative paths easier, the cwd will be set to the working dir of the repository. """ - assert isinstance(working_tree_ref, string_types), "Decorator requires ref name for working tree checkout" + assert isinstance(working_tree_ref, str), "Decorator requires ref name for working tree checkout" def argument_passer(func): @wraps(func) @@ -248,7 +247,7 @@ def case(self, rw_repo, rw_daemon_repo) """ from git import Git, Remote # To avoid circular deps. - assert isinstance(working_tree_ref, string_types), "Decorator requires ref name for working tree checkout" + assert isinstance(working_tree_ref, str), "Decorator requires ref name for working tree checkout" def argument_passer(func): @@ -332,7 +331,7 @@ class TestBase(TestCase): - Utility functions provided by the TestCase base of the unittest method such as:: self.fail("todo") - self.failUnlessRaises(...) + self.assertRaises(...) - Class level repository which is considered read-only as it is shared among all test cases in your type. @@ -344,11 +343,6 @@ class TestBase(TestCase): of the project history ( to assure tests don't fail for others ). """ - # On py3, unittest has assertRaisesRegex - # On py27, we use unittest, which names it differently: - if sys.version_info[0:2] == (2, 7): - assertRaisesRegex = TestCase.assertRaisesRegexp - def _small_repo_url(https://github.com/self): """:return" a path to a small, clonable repository""" from git.cmd import Git diff --git a/test/performance/__init__.py b/test/performance/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/git/test/performance/lib.py b/test/performance/lib.py similarity index 98% rename from git/test/performance/lib.py rename to test/performance/lib.py index 7edffa783..86f877579 100644 --- a/git/test/performance/lib.py +++ b/test/performance/lib.py @@ -10,7 +10,7 @@ GitCmdObjectDB, GitDB ) -from git.test.lib import ( +from test.lib import ( TestBase ) from git.util import rmtree diff --git a/git/test/performance/test_commit.py b/test/performance/test_commit.py similarity index 93% rename from git/test/performance/test_commit.py rename to test/performance/test_commit.py index 322d3c9fc..4617b052c 100644 --- a/git/test/performance/test_commit.py +++ b/test/performance/test_commit.py @@ -11,11 +11,10 @@ from .lib import TestBigRepoRW from git import Commit from gitdb import IStream -from git.compat import xrange -from git.test.test_commit import assert_commit_serialization +from test.test_commit import TestCommitSerialization -class TestPerformance(TestBigRepoRW): +class TestPerformance(TestBigRepoRW, TestCommitSerialization): def tearDown(self): import gc @@ -80,7 +79,7 @@ def test_commit_iteration(self): % (nc, elapsed_time, nc / elapsed_time), file=sys.stderr) def test_commit_serialization(self): - assert_commit_serialization(self.gitrwrepo, '58c78e6', True) + self.assert_commit_serialization(self.gitrwrepo, '58c78e6', True) rwrepo = self.gitrwrepo make_object = rwrepo.odb.store @@ -90,7 +89,7 @@ def test_commit_serialization(self): nc = 5000 st = time() - for i in xrange(nc): + for i in range(nc): cm = Commit(rwrepo, Commit.NULL_BIN_SHA, hc.tree, hc.author, hc.authored_date, hc.author_tz_offset, hc.committer, hc.committed_date, hc.committer_tz_offset, diff --git a/git/test/performance/test_odb.py b/test/performance/test_odb.py similarity index 100% rename from git/test/performance/test_odb.py rename to test/performance/test_odb.py diff --git a/git/test/performance/test_streams.py b/test/performance/test_streams.py similarity index 96% rename from git/test/performance/test_streams.py rename to test/performance/test_streams.py index 2e3772a02..edf32c915 100644 --- a/git/test/performance/test_streams.py +++ b/test/performance/test_streams.py @@ -6,7 +6,7 @@ import sys from time import time -from git.test.lib import ( +from test.lib import ( with_rw_repo ) from git.util import bin_to_hex @@ -121,7 +121,7 @@ def test_large_data_streaming(self, rwrepo): # read all st = time() - hexsha, typename, size, data = rwrepo.git.get_object_data(gitsha) # @UnusedVariable + _hexsha, _typename, size, data = rwrepo.git.get_object_data(gitsha) gelapsed_readall = time() - st print("Read %i KiB of %s data at once using git-cat-file in %f s ( %f Read KiB / s)" % (size_kib, desc, gelapsed_readall, size_kib / gelapsed_readall), file=sys.stderr) @@ -132,7 +132,7 @@ def test_large_data_streaming(self, rwrepo): # read chunks st = time() - hexsha, typename, size, stream = rwrepo.git.stream_object_data(gitsha) # @UnusedVariable + _hexsha, _typename, size, stream = rwrepo.git.stream_object_data(gitsha) while True: data = stream.read(cs) if len(data) < cs: diff --git a/git/test/test_actor.py b/test/test_actor.py similarity index 69% rename from git/test/test_actor.py rename to test/test_actor.py index 9ba0aeba7..32d16ea71 100644 --- a/git/test/test_actor.py +++ b/test/test_actor.py @@ -4,16 +4,16 @@ # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php -from git.test.lib import assert_equal +from test.lib import TestBase from git import Actor -class TestActor(object): +class TestActor(TestBase): def test_from_string_should_separate_name_and_email(self): a = Actor._from_string("Michael Trier ") - assert_equal("Michael Trier", a.name) - assert_equal("mtrier@example.com", a.email) + self.assertEqual("Michael Trier", a.name) + self.assertEqual("mtrier@example.com", a.email) # base type capabilities assert a == a @@ -25,13 +25,13 @@ def test_from_string_should_separate_name_and_email(self): def test_from_string_should_handle_just_name(self): a = Actor._from_string("Michael Trier") - assert_equal("Michael Trier", a.name) - assert_equal(None, a.email) + self.assertEqual("Michael Trier", a.name) + self.assertEqual(None, a.email) def test_should_display_representation(self): a = Actor._from_string("Michael Trier ") - assert_equal('">', repr(a)) + self.assertEqual('">', repr(a)) def test_str_should_alias_name(self): a = Actor._from_string("Michael Trier ") - assert_equal(a.name, str(a)) + self.assertEqual(a.name, str(a)) diff --git a/git/test/test_base.py b/test/test_base.py similarity index 96% rename from git/test/test_base.py rename to test/test_base.py index 2132806be..02963ce0a 100644 --- a/git/test/test_base.py +++ b/test/test_base.py @@ -17,9 +17,8 @@ ) from git.compat import is_win from git.objects.util import get_object_type_by_name -from git.test.lib import ( +from test.lib import ( TestBase, - assert_raises, with_rw_repo, with_rw_and_rw_remote_repo ) @@ -96,7 +95,7 @@ def test_get_object_type_by_name(self): assert base.Object in get_object_type_by_name(tname).mro() # END for each known type - assert_raises(ValueError, get_object_type_by_name, b"doesntexist") + self.assertRaises(ValueError, get_object_type_by_name, b"doesntexist") def test_object_resolution(self): # objects must be resolved to shas so they compare equal @@ -123,15 +122,15 @@ def test_with_rw_remote_and_rw_repo(self, rw_repo, rw_remote_repo): "Unicode woes, see https://github.com/gitpython-developers/GitPython/pull/519") @with_rw_repo('0.1.6') def test_add_unicode(self, rw_repo): - filename = u"שלום.txt" + filename = "שלום.txt" file_path = osp.join(rw_repo.working_dir, filename) # verify first that we could encode file name in this environment try: file_path.encode(sys.getfilesystemencoding()) - except UnicodeEncodeError: - raise SkipTest("Environment doesn't support unicode filenames") + except UnicodeEncodeError as e: + raise SkipTest("Environment doesn't support unicode filenames") from e with open(file_path, "wb") as fp: fp.write(b'something') diff --git a/git/test/test_blob.py b/test/test_blob.py similarity index 70% rename from git/test/test_blob.py rename to test/test_blob.py index b529e80fb..c9c8c48ab 100644 --- a/git/test/test_blob.py +++ b/test/test_blob.py @@ -4,10 +4,7 @@ # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php -from git.test.lib import ( - TestBase, - assert_equal -) +from test.lib import TestBase from git import Blob @@ -15,11 +12,11 @@ class TestBlob(TestBase): def test_mime_type_should_return_mime_type_for_known_types(self): blob = Blob(self.rorepo, **{'binsha': Blob.NULL_BIN_SHA, 'path': 'foo.png'}) - assert_equal("image/png", blob.mime_type) + self.assertEqual("image/png", blob.mime_type) def test_mime_type_should_return_text_plain_for_unknown_types(self): blob = Blob(self.rorepo, **{'binsha': Blob.NULL_BIN_SHA, 'path': 'something'}) - assert_equal("text/plain", blob.mime_type) + self.assertEqual("text/plain", blob.mime_type) def test_nodict(self): - self.failUnlessRaises(AttributeError, setattr, self.rorepo.tree()['AUTHORS'], 'someattr', 2) + self.assertRaises(AttributeError, setattr, self.rorepo.tree()['AUTHORS'], 'someattr', 2) diff --git a/git/test/test_commit.py b/test/test_commit.py similarity index 72% rename from git/test/test_commit.py rename to test/test_commit.py index cd6c5d5f6..2fe80530d 100644 --- a/git/test/test_commit.py +++ b/test/test_commit.py @@ -11,105 +11,116 @@ import re import sys import time +from unittest.mock import Mock from git import ( Commit, Actor, ) from git import Repo -from git.compat import ( - string_types, - text_type -) from git.objects.util import tzoffset, utc from git.repo.fun import touch -from git.test.lib import ( +from test.lib import ( TestBase, - assert_equal, - assert_not_equal, with_rw_repo, fixture_path, StringProcessAdapter ) -from git.test.lib import with_rw_directory +from test.lib import with_rw_directory from gitdb import IStream import os.path as osp -try: - from unittest.mock import Mock -except ImportError: - from mock import Mock - +class TestCommitSerialization(TestBase): -def assert_commit_serialization(rwrepo, commit_id, print_performance_info=False): - """traverse all commits in the history of commit identified by commit_id and check - if the serialization works. - :param print_performance_info: if True, we will show how fast we are""" - ns = 0 # num serializations - nds = 0 # num deserializations + def assert_commit_serialization(self, rwrepo, commit_id, print_performance_info=False): + """traverse all commits in the history of commit identified by commit_id and check + if the serialization works. + :param print_performance_info: if True, we will show how fast we are""" + ns = 0 # num serializations + nds = 0 # num deserializations - st = time.time() - for cm in rwrepo.commit(commit_id).traverse(): - nds += 1 + st = time.time() + for cm in rwrepo.commit(commit_id).traverse(): + nds += 1 - # assert that we deserialize commits correctly, hence we get the same - # sha on serialization - stream = BytesIO() - cm._serialize(stream) - ns += 1 - streamlen = stream.tell() - stream.seek(0) + # assert that we deserialize commits correctly, hence we get the same + # sha on serialization + stream = BytesIO() + cm._serialize(stream) + ns += 1 + streamlen = stream.tell() + stream.seek(0) - istream = rwrepo.odb.store(IStream(Commit.type, streamlen, stream)) - assert_equal(istream.hexsha, cm.hexsha.encode('ascii')) + istream = rwrepo.odb.store(IStream(Commit.type, streamlen, stream)) + self.assertEqual(istream.hexsha, cm.hexsha.encode('ascii')) - nc = Commit(rwrepo, Commit.NULL_BIN_SHA, cm.tree, - cm.author, cm.authored_date, cm.author_tz_offset, - cm.committer, cm.committed_date, cm.committer_tz_offset, - cm.message, cm.parents, cm.encoding) + nc = Commit(rwrepo, Commit.NULL_BIN_SHA, cm.tree, + cm.author, cm.authored_date, cm.author_tz_offset, + cm.committer, cm.committed_date, cm.committer_tz_offset, + cm.message, cm.parents, cm.encoding) - assert_equal(nc.parents, cm.parents) - stream = BytesIO() - nc._serialize(stream) - ns += 1 - streamlen = stream.tell() - stream.seek(0) + self.assertEqual(nc.parents, cm.parents) + stream = BytesIO() + nc._serialize(stream) + ns += 1 + streamlen = stream.tell() + stream.seek(0) - # reuse istream - istream.size = streamlen - istream.stream = stream - istream.binsha = None - nc.binsha = rwrepo.odb.store(istream).binsha + # reuse istream + istream.size = streamlen + istream.stream = stream + istream.binsha = None + nc.binsha = rwrepo.odb.store(istream).binsha - # if it worked, we have exactly the same contents ! - assert_equal(nc.hexsha, cm.hexsha) - # END check commits - elapsed = time.time() - st + # if it worked, we have exactly the same contents ! + self.assertEqual(nc.hexsha, cm.hexsha) + # END check commits + elapsed = time.time() - st - if print_performance_info: - print("Serialized %i and deserialized %i commits in %f s ( (%f, %f) commits / s" - % (ns, nds, elapsed, ns / elapsed, nds / elapsed), file=sys.stderr) - # END handle performance info + if print_performance_info: + print("Serialized %i and deserialized %i commits in %f s ( (%f, %f) commits / s" + % (ns, nds, elapsed, ns / elapsed, nds / elapsed), file=sys.stderr) + # END handle performance info -class TestCommit(TestBase): +class TestCommit(TestCommitSerialization): def test_bake(self): commit = self.rorepo.commit('2454ae89983a4496a445ce347d7a41c0bb0ea7ae') # commits have no dict - self.failUnlessRaises(AttributeError, setattr, commit, 'someattr', 1) + self.assertRaises(AttributeError, setattr, commit, 'someattr', 1) commit.author # bake - assert_equal("Sebastian Thiel", commit.author.name) - assert_equal("byronimo@gmail.com", commit.author.email) + self.assertEqual("Sebastian Thiel", commit.author.name) + self.assertEqual("byronimo@gmail.com", commit.author.email) self.assertEqual(commit.author, commit.committer) assert isinstance(commit.authored_date, int) and isinstance(commit.committed_date, int) assert isinstance(commit.author_tz_offset, int) and isinstance(commit.committer_tz_offset, int) self.assertEqual(commit.message, "Added missing information to docstrings of commit and stats module\n") + def test_replace_no_changes(self): + old_commit = self.rorepo.commit('2454ae89983a4496a445ce347d7a41c0bb0ea7ae') + new_commit = old_commit.replace() + + for attr in old_commit.__slots__: + assert getattr(new_commit, attr) == getattr(old_commit, attr) + + def test_replace_new_sha(self): + commit = self.rorepo.commit('2454ae89983a4496a445ce347d7a41c0bb0ea7ae') + new_commit = commit.replace(message='Added replace method') + + assert new_commit.hexsha == 'fc84cbecac1bd4ba4deaac07c1044889edd536e6' + assert new_commit.message == 'Added replace method' + + def test_replace_invalid_attribute(self): + commit = self.rorepo.commit('2454ae89983a4496a445ce347d7a41c0bb0ea7ae') + + with self.assertRaises(ValueError): + commit.replace(badattr='This will never work') + def test_stats(self): commit = self.rorepo.commit('33ebe7acec14b25c5f84f35a664803fcab2f7781') stats = commit.stats @@ -125,7 +136,7 @@ def check_entries(d): check_entries(stats.total) assert "files" in stats.total - for filepath, d in stats.files.items(): # @UnusedVariable + for _filepath, d in stats.files.items(): check_entries(d) # END for each stated file @@ -141,11 +152,11 @@ def check_entries(d): def test_unicode_actor(self): # assure we can parse unicode actors correctly - name = u"Üäöß ÄußÉ" + name = "Üäöß ÄußÉ" self.assertEqual(len(name), 9) - special = Actor._from_string(u"%s " % name) + special = Actor._from_string("%s " % name) self.assertEqual(special.name, name) - assert isinstance(special.name, text_type) + assert isinstance(special.name, str) def test_traversal(self): start = self.rorepo.commit("a4d06724202afccd2b5c54f81bcf2bf26dea7fff") @@ -184,7 +195,7 @@ def test_traversal(self): self.assertEqual(next(start.traverse(branch_first=1, predicate=lambda i, d: i == p1)), p1) # traversal should stop when the beginning is reached - self.failUnlessRaises(StopIteration, next, first.traverse()) + self.assertRaises(StopIteration, next, first.traverse()) # parents of the first commit should be empty ( as the only parent has a null # sha ) @@ -208,9 +219,16 @@ def test_iteration(self): less_ltd_commits = list(Commit.iter_items(self.rorepo, 'master', paths=('CHANGES', 'AUTHORS'))) assert len(ltd_commits) < len(less_ltd_commits) + class Child(Commit): + def __init__(self, *args, **kwargs): + super(Child, self).__init__(*args, **kwargs) + + child_commits = list(Child.iter_items(self.rorepo, 'master', paths=('CHANGES', 'AUTHORS'))) + assert type(child_commits[0]) == Child + def test_iter_items(self): # pretty not allowed - self.failUnlessRaises(ValueError, Commit.iter_items, self.rorepo, 'master', pretty="raw") + self.assertRaises(ValueError, Commit.iter_items, self.rorepo, 'master', pretty="raw") def test_rev_list_bisect_all(self): """ @@ -229,7 +247,7 @@ def test_rev_list_bisect_all(self): '933d23bf95a5bd1624fbcdf328d904e1fa173474' ) for sha1, commit in zip(expected_ids, commits): - assert_equal(sha1, commit.hexsha) + self.assertEqual(sha1, commit.hexsha) @with_rw_directory def test_ambiguous_arg_iteration(self, rw_dir): @@ -251,18 +269,18 @@ def test_list(self): def test_str(self): commit = Commit(self.rorepo, Commit.NULL_BIN_SHA) - assert_equal(Commit.NULL_HEX_SHA, str(commit)) + self.assertEqual(Commit.NULL_HEX_SHA, str(commit)) def test_repr(self): commit = Commit(self.rorepo, Commit.NULL_BIN_SHA) - assert_equal('' % Commit.NULL_HEX_SHA, repr(commit)) + self.assertEqual('' % Commit.NULL_HEX_SHA, repr(commit)) def test_equality(self): commit1 = Commit(self.rorepo, Commit.NULL_BIN_SHA) commit2 = Commit(self.rorepo, Commit.NULL_BIN_SHA) commit3 = Commit(self.rorepo, "\1" * 20) - assert_equal(commit1, commit2) - assert_not_equal(commit2, commit3) + self.assertEqual(commit1, commit2) + self.assertNotEqual(commit2, commit3) def test_iter_parents(self): # should return all but ourselves, even if skip is defined @@ -276,12 +294,12 @@ def test_iter_parents(self): def test_name_rev(self): name_rev = self.rorepo.head.commit.name_rev - assert isinstance(name_rev, string_types) + assert isinstance(name_rev, str) @with_rw_repo('HEAD', bare=True) def test_serialization(self, rwrepo): # create all commits of our repo - assert_commit_serialization(rwrepo, '0.1.6') + self.assert_commit_serialization(rwrepo, '0.1.6') def test_serialization_unicode_support(self): self.assertEqual(Commit.default_encoding.lower(), 'utf-8') @@ -289,13 +307,13 @@ def test_serialization_unicode_support(self): # create a commit with unicode in the message, and the author's name # Verify its serialization and deserialization cmt = self.rorepo.commit('0.1.6') - assert isinstance(cmt.message, text_type) # it automatically decodes it as such - assert isinstance(cmt.author.name, text_type) # same here + assert isinstance(cmt.message, str) # it automatically decodes it as such + assert isinstance(cmt.author.name, str) # same here - cmt.message = u"üäêèß" + cmt.message = "üäêèß" self.assertEqual(len(cmt.message), 5) - cmt.author.name = u"äüß" + cmt.author.name = "äüß" self.assertEqual(len(cmt.author.name), 3) cstream = BytesIO() @@ -317,7 +335,7 @@ def test_invalid_commit(self): with open(fixture_path('commit_invalid_data'), 'rb') as fd: cmt._deserialize(fd) - self.assertEqual(cmt.author.name, u'E.Azer Ko�o�o�oculu', cmt.author.name) + self.assertEqual(cmt.author.name, 'E.Azer Ko�o�o�oculu', cmt.author.name) self.assertEqual(cmt.author.email, 'azer@kodfabrik.com', cmt.author.email) def test_gpgsig(self): diff --git a/git/test/test_config.py b/test/test_config.py similarity index 50% rename from git/test/test_config.py rename to test/test_config.py index 4d6c82363..8892b8399 100644 --- a/git/test/test_config.py +++ b/test/test_config.py @@ -6,18 +6,19 @@ import glob import io +import os +from unittest import mock from git import ( GitConfigParser ) -from git.compat import string_types -from git.config import cp -from git.test.lib import ( +from git.config import _OMD, cp +from test.lib import ( TestCase, fixture_path, SkipTest, ) -from git.test.lib import with_rw_directory +from test.lib import with_rw_directory import os.path as osp from git.util import rmfile @@ -38,7 +39,7 @@ def setUp(self): def tearDown(self): for lfp in glob.glob(_tc_lock_fpaths): if osp.isfile(lfp): - raise AssertionError('Previous TC left hanging git-lock file: %s', lfp) + raise AssertionError('Previous TC left hanging git-lock file: {}'.format(lfp)) def _to_memcache(self, file_path): with open(file_path, "rb") as fp: @@ -99,10 +100,10 @@ def test_includes_order(self): assert r_config.get_value('diff', 'tool') == "meld" try: assert r_config.get_value('sec', 'var1') == "value1_main" - except AssertionError: + except AssertionError as e: raise SkipTest( 'Known failure -- included values are not in effect right away' - ) + ) from e @with_rw_directory def test_lock_reentry(self, rw_dir): @@ -157,7 +158,7 @@ def test_base(self): num_options += 1 val = r_config.get(section, option) val_typed = r_config.get_value(section, option) - assert isinstance(val_typed, (bool, int, float, ) + string_types) + assert isinstance(val_typed, (bool, int, float, str)) assert val assert "\n" not in option assert "\n" not in val @@ -239,6 +240,128 @@ def check_test_value(cr, value): with GitConfigParser(fpa, read_only=True) as cr: check_test_value(cr, tv) + @with_rw_directory + def test_conditional_includes_from_git_dir(self, rw_dir): + # Initiate repository path + git_dir = osp.join(rw_dir, "target1", "repo1") + os.makedirs(git_dir) + + # Initiate mocked repository + repo = mock.Mock(git_dir=git_dir) + + # Initiate config files. + path1 = osp.join(rw_dir, "config1") + path2 = osp.join(rw_dir, "config2") + template = "[includeIf \"{}:{}\"]\n path={}\n" + + with open(path1, "w") as stream: + stream.write(template.format("gitdir", git_dir, path2)) + + # Ensure that config is ignored if no repo is set. + with GitConfigParser(path1) as config: + assert not config._has_includes() + assert config._included_paths() == [] + + # Ensure that config is included if path is matching git_dir. + with GitConfigParser(path1, repo=repo) as config: + assert config._has_includes() + assert config._included_paths() == [("path", path2)] + + # Ensure that config is ignored if case is incorrect. + with open(path1, "w") as stream: + stream.write(template.format("gitdir", git_dir.upper(), path2)) + + with GitConfigParser(path1, repo=repo) as config: + assert not config._has_includes() + assert config._included_paths() == [] + + # Ensure that config is included if case is ignored. + with open(path1, "w") as stream: + stream.write(template.format("gitdir/i", git_dir.upper(), path2)) + + with GitConfigParser(path1, repo=repo) as config: + assert config._has_includes() + assert config._included_paths() == [("path", path2)] + + # Ensure that config is included with path using glob pattern. + with open(path1, "w") as stream: + stream.write(template.format("gitdir", "**/repo1", path2)) + + with GitConfigParser(path1, repo=repo) as config: + assert config._has_includes() + assert config._included_paths() == [("path", path2)] + + # Ensure that config is ignored if path is not matching git_dir. + with open(path1, "w") as stream: + stream.write(template.format("gitdir", "incorrect", path2)) + + with GitConfigParser(path1, repo=repo) as config: + assert not config._has_includes() + assert config._included_paths() == [] + + # Ensure that config is included if path in hierarchy. + with open(path1, "w") as stream: + stream.write(template.format("gitdir", "target1/", path2)) + + with GitConfigParser(path1, repo=repo) as config: + assert config._has_includes() + assert config._included_paths() == [("path", path2)] + + @with_rw_directory + def test_conditional_includes_from_branch_name(self, rw_dir): + # Initiate mocked branch + branch = mock.Mock() + type(branch).name = mock.PropertyMock(return_value="/foo/branch") + + # Initiate mocked repository + repo = mock.Mock(active_branch=branch) + + # Initiate config files. + path1 = osp.join(rw_dir, "config1") + path2 = osp.join(rw_dir, "config2") + template = "[includeIf \"onbranch:{}\"]\n path={}\n" + + # Ensure that config is included is branch is correct. + with open(path1, "w") as stream: + stream.write(template.format("/foo/branch", path2)) + + with GitConfigParser(path1, repo=repo) as config: + assert config._has_includes() + assert config._included_paths() == [("path", path2)] + + # Ensure that config is included is branch is incorrect. + with open(path1, "w") as stream: + stream.write(template.format("incorrect", path2)) + + with GitConfigParser(path1, repo=repo) as config: + assert not config._has_includes() + assert config._included_paths() == [] + + # Ensure that config is included with branch using glob pattern. + with open(path1, "w") as stream: + stream.write(template.format("/foo/**", path2)) + + with GitConfigParser(path1, repo=repo) as config: + assert config._has_includes() + assert config._included_paths() == [("path", path2)] + + @with_rw_directory + def test_conditional_includes_from_branch_name_error(self, rw_dir): + # Initiate mocked repository to raise an error if HEAD is detached. + repo = mock.Mock() + type(repo).active_branch = mock.PropertyMock(side_effect=TypeError) + + # Initiate config file. + path1 = osp.join(rw_dir, "config1") + + # Ensure that config is ignored when active branch cannot be found. + with open(path1, "w") as stream: + stream.write("[includeIf \"onbranch:foo\"]\n path=/path\n") + + with GitConfigParser(path1, repo=repo) as config: + assert not config._has_includes() + assert config._included_paths() == [] + def test_rename(self): file_obj = self._to_memcache(fixture_path('git_config')) with GitConfigParser(file_obj, read_only=False, merge_includes=False) as cw: @@ -265,3 +388,110 @@ def test_empty_config_value(self): with self.assertRaises(cp.NoOptionError): cr.get_value('color', 'ui') + + def test_multiple_values(self): + file_obj = self._to_memcache(fixture_path('git_config_multiple')) + with GitConfigParser(file_obj, read_only=False) as cw: + self.assertEqual(cw.get('section0', 'option0'), 'value0') + self.assertEqual(cw.get_values('section0', 'option0'), ['value0']) + self.assertEqual(cw.items('section0'), [('option0', 'value0')]) + + # Where there are multiple values, "get" returns the last. + self.assertEqual(cw.get('section1', 'option1'), 'value1b') + self.assertEqual(cw.get_values('section1', 'option1'), + ['value1a', 'value1b']) + self.assertEqual(cw.items('section1'), + [('option1', 'value1b'), + ('other_option1', 'other_value1')]) + self.assertEqual(cw.items_all('section1'), + [('option1', ['value1a', 'value1b']), + ('other_option1', ['other_value1'])]) + with self.assertRaises(KeyError): + cw.get_values('section1', 'missing') + + self.assertEqual(cw.get_values('section1', 'missing', 1), [1]) + self.assertEqual(cw.get_values('section1', 'missing', 's'), ['s']) + + def test_multiple_values_rename(self): + file_obj = self._to_memcache(fixture_path('git_config_multiple')) + with GitConfigParser(file_obj, read_only=False) as cw: + cw.rename_section('section1', 'section2') + cw.write() + file_obj.seek(0) + cr = GitConfigParser(file_obj, read_only=True) + self.assertEqual(cr.get_value('section2', 'option1'), 'value1b') + self.assertEqual(cr.get_values('section2', 'option1'), + ['value1a', 'value1b']) + self.assertEqual(cr.items('section2'), + [('option1', 'value1b'), + ('other_option1', 'other_value1')]) + self.assertEqual(cr.items_all('section2'), + [('option1', ['value1a', 'value1b']), + ('other_option1', ['other_value1'])]) + + def test_multiple_to_single(self): + file_obj = self._to_memcache(fixture_path('git_config_multiple')) + with GitConfigParser(file_obj, read_only=False) as cw: + cw.set_value('section1', 'option1', 'value1c') + + cw.write() + file_obj.seek(0) + cr = GitConfigParser(file_obj, read_only=True) + self.assertEqual(cr.get_value('section1', 'option1'), 'value1c') + self.assertEqual(cr.get_values('section1', 'option1'), ['value1c']) + self.assertEqual(cr.items('section1'), + [('option1', 'value1c'), + ('other_option1', 'other_value1')]) + self.assertEqual(cr.items_all('section1'), + [('option1', ['value1c']), + ('other_option1', ['other_value1'])]) + + def test_single_to_multiple(self): + file_obj = self._to_memcache(fixture_path('git_config_multiple')) + with GitConfigParser(file_obj, read_only=False) as cw: + cw.add_value('section1', 'other_option1', 'other_value1a') + + cw.write() + file_obj.seek(0) + cr = GitConfigParser(file_obj, read_only=True) + self.assertEqual(cr.get_value('section1', 'option1'), 'value1b') + self.assertEqual(cr.get_values('section1', 'option1'), + ['value1a', 'value1b']) + self.assertEqual(cr.get_value('section1', 'other_option1'), + 'other_value1a') + self.assertEqual(cr.get_values('section1', 'other_option1'), + ['other_value1', 'other_value1a']) + self.assertEqual(cr.items('section1'), + [('option1', 'value1b'), + ('other_option1', 'other_value1a')]) + self.assertEqual( + cr.items_all('section1'), + [('option1', ['value1a', 'value1b']), + ('other_option1', ['other_value1', 'other_value1a'])]) + + def test_add_to_multiple(self): + file_obj = self._to_memcache(fixture_path('git_config_multiple')) + with GitConfigParser(file_obj, read_only=False) as cw: + cw.add_value('section1', 'option1', 'value1c') + cw.write() + file_obj.seek(0) + cr = GitConfigParser(file_obj, read_only=True) + self.assertEqual(cr.get_value('section1', 'option1'), 'value1c') + self.assertEqual(cr.get_values('section1', 'option1'), + ['value1a', 'value1b', 'value1c']) + self.assertEqual(cr.items('section1'), + [('option1', 'value1c'), + ('other_option1', 'other_value1')]) + self.assertEqual(cr.items_all('section1'), + [('option1', ['value1a', 'value1b', 'value1c']), + ('other_option1', ['other_value1'])]) + + def test_setlast(self): + # Test directly, not covered by higher-level tests. + omd = _OMD() + omd.setlast('key', 'value1') + self.assertEqual(omd['key'], 'value1') + self.assertEqual(omd.getall('key'), ['value1']) + omd.setlast('key', 'value2') + self.assertEqual(omd['key'], 'value2') + self.assertEqual(omd.getall('key'), ['value2']) diff --git a/git/test/test_db.py b/test/test_db.py similarity index 86% rename from git/test/test_db.py rename to test/test_db.py index 8f67dd48b..f9090fdda 100644 --- a/git/test/test_db.py +++ b/test/test_db.py @@ -5,7 +5,7 @@ # the BSD License: http://www.opensource.org/licenses/bsd-license.php from git.db import GitCmdObjectDB from git.exc import BadObject -from git.test.lib import TestBase +from test.lib import TestBase from git.util import bin_to_hex import os.path as osp @@ -24,4 +24,4 @@ def test_base(self): # fails with BadObject for invalid_rev in ("0000", "bad/ref", "super bad"): - self.failUnlessRaises(BadObject, gdb.partial_to_complete_sha_hex, invalid_rev) + self.assertRaises(BadObject, gdb.partial_to_complete_sha_hex, invalid_rev) diff --git a/git/test/test_diff.py b/test/test_diff.py similarity index 64% rename from git/test/test_diff.py rename to test/test_diff.py index e47b93317..c6c9b67a0 100644 --- a/git/test/test_diff.py +++ b/test/test_diff.py @@ -5,33 +5,43 @@ # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import ddt +import shutil +import tempfile from git import ( Repo, GitCommandError, Diff, DiffIndex, NULL_TREE, + Submodule, ) from git.cmd import Git -from git.test.lib import ( +from test.lib import ( TestBase, StringProcessAdapter, fixture, - assert_equal, - assert_true, - ) -from git.test.lib import with_rw_directory +from test.lib import with_rw_directory import os.path as osp +def to_raw(input): + return input.replace(b'\t', b'\x00') + + @ddt.ddt class TestDiff(TestBase): + def setUp(self): + self.repo_dir = tempfile.mkdtemp() + self.submodule_dir = tempfile.mkdtemp() + def tearDown(self): import gc gc.collect() + shutil.rmtree(self.repo_dir) + shutil.rmtree(self.submodule_dir) def _assert_diff_format(self, diffs): # verify that the format of the diff is sane @@ -60,7 +70,12 @@ def test_diff_with_staged_file(self, rw_dir): with open(fp, 'w') as fs: fs.write("Hola Mundo") - r.git.commit(all=True, message="change on master") + r.git.add(Git.polish_url(https://github.com/fp)) + self.assertEqual(len(r.index.diff("HEAD", create_patch=True)), 1, + "create_patch should generate patch of diff to HEAD") + r.git.commit(message="change on master") + self.assertEqual(len(r.index.diff("HEAD", create_patch=True)), 0, + "create_patch should generate no patch, already on HEAD") r.git.checkout('HEAD~1', b='topic') with open(fp, 'w') as fs: @@ -68,7 +83,8 @@ def test_diff_with_staged_file(self, rw_dir): r.git.commit(all=True, message="change on topic branch") # there must be a merge-conflict - self.failUnlessRaises(GitCommandError, r.git.cherry_pick, 'master') + with self.assertRaises(GitCommandError): + r.git.cherry_pick('master') # Now do the actual testing - this should just work self.assertEqual(len(r.index.diff(None)), 2) @@ -81,26 +97,26 @@ def test_list_from_string_new_mode(self): diffs = Diff._index_from_patch_format(self.rorepo, output) self._assert_diff_format(diffs) - assert_equal(1, len(diffs)) - assert_equal(8, len(diffs[0].diff.splitlines())) + self.assertEqual(1, len(diffs)) + self.assertEqual(8, len(diffs[0].diff.splitlines())) def test_diff_with_rename(self): output = StringProcessAdapter(fixture('diff_rename')) diffs = Diff._index_from_patch_format(self.rorepo, output) self._assert_diff_format(diffs) - assert_equal(1, len(diffs)) + self.assertEqual(1, len(diffs)) diff = diffs[0] - assert_true(diff.renamed_file) - assert_true(diff.renamed) - assert_equal(diff.rename_from, u'Jérôme') - assert_equal(diff.rename_to, u'müller') - assert_equal(diff.raw_rename_from, b'J\xc3\xa9r\xc3\xb4me') - assert_equal(diff.raw_rename_to, b'm\xc3\xbcller') + self.assertTrue(diff.renamed_file) + self.assertTrue(diff.renamed) + self.assertEqual(diff.rename_from, 'Jérôme') + self.assertEqual(diff.rename_to, 'müller') + self.assertEqual(diff.raw_rename_from, b'J\xc3\xa9r\xc3\xb4me') + self.assertEqual(diff.raw_rename_to, b'm\xc3\xbcller') assert isinstance(str(diff), str) - output = StringProcessAdapter(fixture('diff_rename_raw')) + output = StringProcessAdapter(to_raw(fixture('diff_rename_raw'))) diffs = Diff._index_from_raw_format(self.rorepo, output) self.assertEqual(len(diffs), 1) diff = diffs[0] @@ -112,25 +128,48 @@ def test_diff_with_rename(self): self.assertEqual(diff.score, 100) self.assertEqual(len(list(diffs.iter_change_type('R'))), 1) + def test_diff_with_copied_file(self): + output = StringProcessAdapter(fixture('diff_copied_mode')) + diffs = Diff._index_from_patch_format(self.rorepo, output) + self._assert_diff_format(diffs) + + self.assertEqual(1, len(diffs)) + + diff = diffs[0] + self.assertTrue(diff.copied_file) + self.assertTrue(diff.a_path, 'test1.txt') + self.assertTrue(diff.b_path, 'test2.txt') + assert isinstance(str(diff), str) + + output = StringProcessAdapter(to_raw(fixture('diff_copied_mode_raw'))) + diffs = Diff._index_from_raw_format(self.rorepo, output) + self.assertEqual(len(diffs), 1) + diff = diffs[0] + self.assertEqual(diff.change_type, 'C') + self.assertEqual(diff.score, 100) + self.assertEqual(diff.a_path, 'test1.txt') + self.assertEqual(diff.b_path, 'test2.txt') + self.assertEqual(len(list(diffs.iter_change_type('C'))), 1) + def test_diff_with_change_in_type(self): output = StringProcessAdapter(fixture('diff_change_in_type')) diffs = Diff._index_from_patch_format(self.rorepo, output) self._assert_diff_format(diffs) - assert_equal(2, len(diffs)) + self.assertEqual(2, len(diffs)) diff = diffs[0] self.assertIsNotNone(diff.deleted_file) - assert_equal(diff.a_path, 'this') - assert_equal(diff.b_path, 'this') + self.assertEqual(diff.a_path, 'this') + self.assertEqual(diff.b_path, 'this') assert isinstance(str(diff), str) diff = diffs[1] - assert_equal(diff.a_path, None) - assert_equal(diff.b_path, 'this') + self.assertEqual(diff.a_path, None) + self.assertEqual(diff.b_path, 'this') self.assertIsNotNone(diff.new_file) assert isinstance(str(diff), str) - output = StringProcessAdapter(fixture('diff_change_in_type_raw')) + output = StringProcessAdapter(to_raw(fixture('diff_change_in_type_raw'))) diffs = Diff._index_from_raw_format(self.rorepo, output) self.assertEqual(len(diffs), 1) diff = diffs[0] @@ -140,7 +179,7 @@ def test_diff_with_change_in_type(self): self.assertEqual(len(list(diffs.iter_change_type('T'))), 1) def test_diff_of_modified_files_not_added_to_the_index(self): - output = StringProcessAdapter(fixture('diff_abbrev-40_full-index_M_raw_no-color')) + output = StringProcessAdapter(to_raw(fixture('diff_abbrev-40_full-index_M_raw_no-color'))) diffs = Diff._index_from_raw_format(self.rorepo, output) self.assertEqual(len(diffs), 1, 'one modification') @@ -202,29 +241,29 @@ def test_diff_unsafe_paths(self): res = Diff._index_from_patch_format(None, output) # The "Additions" - self.assertEqual(res[0].b_path, u'path/ starting with a space') - self.assertEqual(res[1].b_path, u'path/"with-quotes"') - self.assertEqual(res[2].b_path, u"path/'with-single-quotes'") - self.assertEqual(res[3].b_path, u'path/ending in a space ') - self.assertEqual(res[4].b_path, u'path/with\ttab') - self.assertEqual(res[5].b_path, u'path/with\nnewline') - self.assertEqual(res[6].b_path, u'path/with spaces') - self.assertEqual(res[7].b_path, u'path/with-question-mark?') - self.assertEqual(res[8].b_path, u'path/¯\\_(ツ)_|¯') - self.assertEqual(res[9].b_path, u'path/💩.txt') + self.assertEqual(res[0].b_path, 'path/ starting with a space') + self.assertEqual(res[1].b_path, 'path/"with-quotes"') + self.assertEqual(res[2].b_path, "path/'with-single-quotes'") + self.assertEqual(res[3].b_path, 'path/ending in a space ') + self.assertEqual(res[4].b_path, 'path/with\ttab') + self.assertEqual(res[5].b_path, 'path/with\nnewline') + self.assertEqual(res[6].b_path, 'path/with spaces') + self.assertEqual(res[7].b_path, 'path/with-question-mark?') + self.assertEqual(res[8].b_path, 'path/¯\\_(ツ)_|¯') + self.assertEqual(res[9].b_path, 'path/💩.txt') self.assertEqual(res[9].b_rawpath, b'path/\xf0\x9f\x92\xa9.txt') - self.assertEqual(res[10].b_path, u'path/�-invalid-unicode-path.txt') + self.assertEqual(res[10].b_path, 'path/�-invalid-unicode-path.txt') self.assertEqual(res[10].b_rawpath, b'path/\x80-invalid-unicode-path.txt') # The "Moves" # NOTE: The path prefixes a/ and b/ here are legit! We're actually # verifying that it's not "a/a/" that shows up, see the fixture data. - self.assertEqual(res[11].a_path, u'a/with spaces') # NOTE: path a/ here legit! - self.assertEqual(res[11].b_path, u'b/with some spaces') # NOTE: path b/ here legit! - self.assertEqual(res[12].a_path, u'a/ending in a space ') - self.assertEqual(res[12].b_path, u'b/ending with space ') - self.assertEqual(res[13].a_path, u'a/"with-quotes"') - self.assertEqual(res[13].b_path, u'b/"with even more quotes"') + self.assertEqual(res[11].a_path, 'a/with spaces') # NOTE: path a/ here legit! + self.assertEqual(res[11].b_path, 'b/with some spaces') # NOTE: path b/ here legit! + self.assertEqual(res[12].a_path, 'a/ending in a space ') + self.assertEqual(res[12].b_path, 'b/ending with space ') + self.assertEqual(res[13].a_path, 'a/"with-quotes"') + self.assertEqual(res[13].b_path, 'b/"with even more quotes"') def test_diff_patch_format(self): # test all of the 'old' format diffs for completness - it should at least @@ -242,7 +281,44 @@ def test_diff_with_spaces(self): data = StringProcessAdapter(fixture('diff_file_with_spaces')) diff_index = Diff._index_from_patch_format(self.rorepo, data) self.assertIsNone(diff_index[0].a_path, repr(diff_index[0].a_path)) - self.assertEqual(diff_index[0].b_path, u'file with spaces', repr(diff_index[0].b_path)) + self.assertEqual(diff_index[0].b_path, 'file with spaces', repr(diff_index[0].b_path)) + + def test_diff_submodule(self): + """Test that diff is able to correctly diff commits that cover submodule changes""" + # Init a temp git repo that will be referenced as a submodule + sub = Repo.init(self.submodule_dir) + with open(self.submodule_dir + "/subfile", "w") as sub_subfile: + sub_subfile.write("") + sub.index.add(["subfile"]) + sub.index.commit("first commit") + + # Init a temp git repo that will incorporate the submodule + repo = Repo.init(self.repo_dir) + with open(self.repo_dir + "/test", "w") as foo_test: + foo_test.write("") + repo.index.add(['test']) + Submodule.add(repo, "subtest", "sub", url="file://" + self.submodule_dir) + repo.index.commit("first commit") + repo.create_tag('1') + + # Add a commit to the submodule + submodule = repo.submodule('subtest') + with open(self.repo_dir + "/sub/subfile", "w") as foo_sub_subfile: + foo_sub_subfile.write("blub") + submodule.module().index.add(["subfile"]) + submodule.module().index.commit("changed subfile") + submodule.binsha = submodule.module().head.commit.binsha + + # Commit submodule updates in parent repo + repo.index.add([submodule]) + repo.index.commit("submodule changed") + repo.create_tag('2') + + diff = repo.commit('1').diff(repo.commit('2'))[0] + # If diff is unable to find the commit hashes (looks in wrong repo) the *_blob.size + # property will be a string containing exception text, an int indicates success + self.assertIsInstance(diff.a_blob.size, int) + self.assertIsInstance(diff.b_blob.size, int) def test_diff_interface(self): # test a few variations of the main diff routine diff --git a/git/test/test_docs.py b/test/test_docs.py similarity index 97% rename from git/test/test_docs.py rename to test/test_docs.py index 770f78e20..220156bce 100644 --- a/git/test/test_docs.py +++ b/test/test_docs.py @@ -6,8 +6,8 @@ # the BSD License: http://www.opensource.org/licenses/bsd-license.php import os -from git.test.lib import TestBase -from git.test.lib.helper import with_rw_directory +from test.lib import TestBase +from test.lib.helper import with_rw_directory import os.path @@ -106,7 +106,7 @@ def test_init_repo_object(self, rw_dir): # [11-test_init_repo_object] assert now.commit.message != past.commit.message # You can read objects directly through binary streams, no working tree required - assert (now.commit.tree / 'VERSION').data_stream.read().decode('ascii').startswith('2') + assert (now.commit.tree / 'VERSION').data_stream.read().decode('ascii').startswith('3') # You can traverse trees as well to handle all contained files of a particular commit file_count = 0 @@ -155,7 +155,7 @@ def update(self, op_code, cur_count, max_count=None, message=''): # prepare a merge master = cloned_repo.heads.master # right-hand side is ahead of us, in the future - merge_base = cloned_repo.merge_base(new_branch, master) # allwos for a three-way merge + merge_base = cloned_repo.merge_base(new_branch, master) # allows for a three-way merge cloned_repo.index.merge_tree(master, base=merge_base) # write the merge result into index cloned_repo.index.commit("Merged past and now into future ;)", parent_commits=(new_branch.commit, master.commit)) @@ -232,7 +232,7 @@ def test_references_and_objects(self, rw_dir): # [6-test_references_and_objects] new_tag = repo.create_tag('my_new_tag', message='my message') # You cannot change the commit a tag points to. Tags need to be re-created - self.failUnlessRaises(AttributeError, setattr, new_tag, 'commit', repo.commit('HEAD~1')) + self.assertRaises(AttributeError, setattr, new_tag, 'commit', repo.commit('HEAD~1')) repo.delete_tag(new_tag) # ![6-test_references_and_objects] @@ -320,10 +320,10 @@ def test_references_and_objects(self, rw_dir): self.assertEqual(tree['smmap'], tree / 'smmap') # access by index and by sub-path for entry in tree: # intuitive iteration of tree members print(entry) - blob = tree.trees[0].blobs[0] # let's get a blob in a sub-tree + blob = tree.trees[1].blobs[0] # let's get a blob in a sub-tree assert blob.name assert len(blob.path) < len(blob.abspath) - self.assertEqual(tree.trees[0].name + '/' + blob.name, blob.path) # this is how relative blob path generated + self.assertEqual(tree.trees[1].name + '/' + blob.name, blob.path) # this is how relative blob path generated self.assertEqual(tree[blob.path], blob) # you can use paths like 'dir/file' in tree # ![19-test_references_and_objects] @@ -349,7 +349,7 @@ def test_references_and_objects(self, rw_dir): # The index contains all blobs in a flat list assert len(list(index.iter_blobs())) == len([o for o in repo.head.commit.tree.traverse() if o.type == 'blob']) # Access blob objects - for (path, stage), entry in index.entries.items(): # @UnusedVariable + for (_path, _stage), entry in index.entries.items(): pass new_file_path = os.path.join(repo.working_tree_dir, 'new-file-name') open(new_file_path, 'w').close() @@ -441,7 +441,7 @@ def test_references_and_objects(self, rw_dir): # [30-test_references_and_objects] # checkout the branch using git-checkout. It will fail as the working tree appears dirty - self.failUnlessRaises(git.GitCommandError, repo.heads.master.checkout) + self.assertRaises(git.GitCommandError, repo.heads.master.checkout) repo.heads.past_branch.checkout() # ![30-test_references_and_objects] diff --git a/git/test/test_exc.py b/test/test_exc.py similarity index 98% rename from git/test/test_exc.py rename to test/test_exc.py index 28d824d08..f16498ab5 100644 --- a/git/test/test_exc.py +++ b/test/test_exc.py @@ -22,7 +22,7 @@ HookExecutionError, RepositoryDirtyError, ) -from git.test.lib import TestBase +from test.lib import TestBase import itertools as itt @@ -92,7 +92,7 @@ def test_CommandError_unicode(self, case): if subs is not None: # Substrings (must) already contain opening `'`. subs = "(? 1 - self.failUnlessRaises(ValueError, index.remove, ["/doesnt/exists"]) + self.assertRaises(ValueError, index.remove, ["/doesnt/exists"]) # TEST COMMITTING # commit changed index cur_commit = cur_head.commit - commit_message = u"commit default head by Frèderic Çaufl€" + commit_message = "commit default head by Frèderic Çaufl€" new_commit = index.commit(commit_message, head=False) assert cur_commit != new_commit @@ -500,13 +502,13 @@ def mixed_iterator(): # commit with other actor cur_commit = cur_head.commit - my_author = Actor(u"Frèderic Çaufl€", "author@example.com") - my_committer = Actor(u"Committing Frèderic Çaufl€", "committer@example.com") + my_author = Actor("Frèderic Çaufl€", "author@example.com") + my_committer = Actor("Committing Frèderic Çaufl€", "committer@example.com") commit_actor = index.commit(commit_message, author=my_author, committer=my_committer) assert cur_commit != commit_actor - self.assertEqual(commit_actor.author.name, u"Frèderic Çaufl€") + self.assertEqual(commit_actor.author.name, "Frèderic Çaufl€") self.assertEqual(commit_actor.author.email, "author@example.com") - self.assertEqual(commit_actor.committer.name, u"Committing Frèderic Çaufl€") + self.assertEqual(commit_actor.committer.name, "Committing Frèderic Çaufl€") self.assertEqual(commit_actor.committer.email, "committer@example.com") self.assertEqual(commit_actor.message, commit_message) self.assertEqual(commit_actor.parents[0], cur_commit) @@ -516,7 +518,7 @@ def mixed_iterator(): # commit with author_date and commit_date cur_commit = cur_head.commit - commit_message = u"commit with dates by Avinash Sajjanshetty" + commit_message = "commit with dates by Avinash Sajjanshetty" new_commit = index.commit(commit_message, author_date="2006-04-07T22:13:13", commit_date="2005-04-07T22:13:13") assert cur_commit != new_commit @@ -571,7 +573,7 @@ def mixed_iterator(): self.assertEqual(len(entries), 2) # missing path - self.failUnlessRaises(OSError, index.reset(new_commit).add, ['doesnt/exist/must/raise']) + self.assertRaises(OSError, index.reset(new_commit).add, ['doesnt/exist/must/raise']) # blob from older revision overrides current index revision old_blob = new_commit.parents[0].tree.blobs[0] @@ -584,7 +586,7 @@ def mixed_iterator(): # mode 0 not allowed null_hex_sha = Diff.NULL_HEX_SHA null_bin_sha = b"\0" * 20 - self.failUnlessRaises(ValueError, index.reset( + self.assertRaises(ValueError, index.reset( new_commit).add, [BaseIndexEntry((0, null_bin_sha, 0, "doesntmatter"))]) # add new file @@ -595,7 +597,7 @@ def mixed_iterator(): self._assert_entries(entries) self._assert_fprogress(entries) self.assertEqual(len(entries), 1) - self.assertNotEquals(entries[0].hexsha, null_hex_sha) + self.assertNotEqual(entries[0].hexsha, null_hex_sha) # add symlink if not is_win: @@ -668,10 +670,10 @@ def assert_mv_rval(rval): # END for each renamed item # END move assertion utility - self.failUnlessRaises(ValueError, index.move, ['just_one_path']) + self.assertRaises(ValueError, index.move, ['just_one_path']) # file onto existing file files = ['AUTHORS', 'LICENSE'] - self.failUnlessRaises(GitCommandError, index.move, files) + self.assertRaises(GitCommandError, index.move, files) # again, with force assert_mv_rval(index.move(files, f=True)) @@ -772,7 +774,16 @@ def test_compare_write_tree(self, rw_repo): orig_tree = commit.tree self.assertEqual(index.write_tree(), orig_tree) # END for each commit - + + @with_rw_repo('HEAD', bare=False) + def test_index_single_addremove(self, rw_repo): + fp = osp.join(rw_repo.working_dir, 'testfile.txt') + with open(fp, 'w') as fs: + fs.write('content of testfile') + self._assert_entries(rw_repo.index.add(fp)) + deleted_files = rw_repo.index.remove(fp) + assert deleted_files + def test_index_new(self): B = self.rorepo.tree("6d9b1f4f9fa8c9f030e3207e7deacc5d5f8bba4e") H = self.rorepo.tree("25dca42bac17d511b7e2ebdd9d1d679e7626db5f") @@ -812,16 +823,12 @@ def test_index_bare_add(self, rw_bare_repo): asserted = True assert asserted, "Adding using a filename is not correctly asserted." - @skipIf(HIDE_WINDOWS_KNOWN_ERRORS and not PY3, r""" - FIXME: File "C:\projects\gitpython\git\util.py", line 125, in to_native_path_linux - return path.replace('\\', '/') - UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)""") @with_rw_directory def test_add_utf8P_path(self, rw_dir): # NOTE: fp is not a Unicode object in python 2 (which is the source of the problem) fp = osp.join(rw_dir, 'ø.txt') with open(fp, 'wb') as fs: - fs.write(u'content of ø'.encode('utf-8')) + fs.write('content of ø'.encode('utf-8')) r = Repo.init(rw_dir) r.index.add([fp]) @@ -891,16 +898,16 @@ def test_pre_commit_hook_fail(self, rw_repo): @with_rw_repo('HEAD', bare=True) def test_commit_msg_hook_success(self, rw_repo): - commit_message = u"commit default head by Frèderic Çaufl€" - from_hook_message = u"from commit-msg" + commit_message = "commit default head by Frèderic Çaufl€" + from_hook_message = "from commit-msg" index = rw_repo.index _make_hook( index.repo.git_dir, 'commit-msg', - 'echo -n " {}" >> "$1"'.format(from_hook_message) + 'printf " {}" >> "$1"'.format(from_hook_message) ) new_commit = index.commit(commit_message) - self.assertEqual(new_commit.message, u"{} {}".format(commit_message, from_hook_message)) + self.assertEqual(new_commit.message, "{} {}".format(commit_message, from_hook_message)) @with_rw_repo('HEAD', bare=True) def test_commit_msg_hook_fail(self, rw_repo): diff --git a/test/test_installation.py b/test/test_installation.py new file mode 100644 index 000000000..6117be984 --- /dev/null +++ b/test/test_installation.py @@ -0,0 +1,37 @@ +# This module is part of GitPython and is released under +# the BSD License: http://www.opensource.org/licenses/bsd-license.php + +import ast +import os +import subprocess +from test.lib import TestBase +from test.lib.helper import with_rw_directory + + +class TestInstallation(TestBase): + def setUp_venv(self, rw_dir): + self.venv = rw_dir + subprocess.run(['virtualenv', self.venv], stdout=subprocess.PIPE) + self.python = os.path.join(self.venv, 'bin/python3') + self.pip = os.path.join(self.venv, 'bin/pip3') + self.sources = os.path.join(self.venv, "src") + self.cwd = os.path.dirname(os.path.dirname(__file__)) + os.symlink(self.cwd, self.sources, target_is_directory=True) + + @with_rw_directory + def test_installation(self, rw_dir): + self.setUp_venv(rw_dir) + result = subprocess.run([self.pip, 'install', '-r', 'requirements.txt'], + stdout=subprocess.PIPE, cwd=self.sources) + self.assertEqual(0, result.returncode, msg=result.stderr or result.stdout or "Can't install requirements") + result = subprocess.run([self.python, 'setup.py', 'install'], stdout=subprocess.PIPE, cwd=self.sources) + self.assertEqual(0, result.returncode, msg=result.stderr or result.stdout or "Can't build - setup.py failed") + result = subprocess.run([self.python, '-c', 'import git'], stdout=subprocess.PIPE, cwd=self.sources) + self.assertEqual(0, result.returncode, msg=result.stderr or result.stdout or "Selftest failed") + result = subprocess.run([self.python, '-c', 'import sys;import git; print(sys.path)'], + stdout=subprocess.PIPE, cwd=self.sources) + syspath = result.stdout.decode('utf-8').splitlines()[0] + syspath = ast.literal_eval(syspath) + self.assertEqual('', syspath[0], + msg='Failed to follow the conventions for https://docs.python.org/3/library/sys.html#sys.path') + self.assertTrue(syspath[1].endswith('gitdb'), msg='Failed to add gitdb to sys.path') diff --git a/git/test/test_reflog.py b/test/test_reflog.py similarity index 89% rename from git/test/test_reflog.py rename to test/test_reflog.py index 20495be14..a6c15950a 100644 --- a/git/test/test_reflog.py +++ b/test/test_reflog.py @@ -6,7 +6,7 @@ RefLogEntry, RefLog ) -from git.test.lib import ( +from test.lib import ( TestBase, fixture_path ) @@ -23,7 +23,7 @@ def test_reflogentry(self): actor = Actor('name', 'email') msg = "message" - self.failUnlessRaises(ValueError, RefLogEntry.new, nullhexsha, hexsha, 'noactor', 0, 0, "") + self.assertRaises(ValueError, RefLogEntry.new, nullhexsha, hexsha, 'noactor', 0, 0, "") e = RefLogEntry.new(nullhexsha, hexsha, actor, 0, 1, msg) assert e.oldhexsha == nullhexsha @@ -59,11 +59,11 @@ def test_base(self): # TODO: Try multiple corrupted ones ! pp = 'reflog_invalid_' for suffix in ('oldsha', 'newsha', 'email', 'date', 'sep'): - self.failUnlessRaises(ValueError, RefLog.from_file, fixture_path(pp + suffix)) + self.assertRaises(ValueError, RefLog.from_file, fixture_path(pp + suffix)) # END for each invalid file # cannot write an uninitialized reflog - self.failUnlessRaises(ValueError, RefLog().write) + self.assertRaises(ValueError, RefLog().write) # test serialize and deserialize - results must match exactly binsha = hex_to_bin(('f' * 40).encode('ascii')) @@ -91,7 +91,7 @@ def test_base(self): # index entry # raises on invalid index - self.failUnlessRaises(IndexError, RefLog.entry_at, rlp, 10000) + self.assertRaises(IndexError, RefLog.entry_at, rlp, 10000) # indices can be positive ... assert isinstance(RefLog.entry_at(rlp, 0), RefLogEntry) diff --git a/git/test/test_refs.py b/test/test_refs.py similarity index 92% rename from git/test/test_refs.py rename to test/test_refs.py index 348c3d482..8ab45d22c 100644 --- a/git/test/test_refs.py +++ b/test/test_refs.py @@ -17,7 +17,7 @@ RefLog ) from git.objects.tag import TagObject -from git.test.lib import ( +from test.lib import ( TestBase, with_rw_repo ) @@ -40,7 +40,7 @@ def test_from_path(self): # END for each type # invalid path - self.failUnlessRaises(ValueError, TagReference, self.rorepo, "refs/invalid/tag") + self.assertRaises(ValueError, TagReference, self.rorepo, "refs/invalid/tag") # works without path check TagReference(self.rorepo, "refs/invalid/tag", check_path=False) @@ -54,7 +54,7 @@ def test_tag_base(self): tag_object_refs.append(tag) tagobj = tag.tag # have no dict - self.failUnlessRaises(AttributeError, setattr, tagobj, 'someattr', 1) + self.assertRaises(AttributeError, setattr, tagobj, 'someattr', 1) assert isinstance(tagobj, TagObject) assert tagobj.tag == tag.name assert isinstance(tagobj.tagger, Actor) @@ -63,7 +63,7 @@ def test_tag_base(self): assert tagobj.message assert tag.object == tagobj # can't assign the object - self.failUnlessRaises(AttributeError, setattr, tag, 'object', tagobj) + self.assertRaises(AttributeError, setattr, tag, 'object', tagobj) # END if we have a tag object # END for tag in repo-tags assert tag_object_refs @@ -201,7 +201,7 @@ def test_head_reset(self, rw_repo): cur_head.reset(new_head_commit, index=True) # index only assert cur_head.reference.commit == new_head_commit - self.failUnlessRaises(ValueError, cur_head.reset, new_head_commit, index=False, working_tree=True) + self.assertRaises(ValueError, cur_head.reset, new_head_commit, index=False, working_tree=True) new_head_commit = new_head_commit.parents[0] cur_head.reset(new_head_commit, index=True, working_tree=True) # index + wt assert cur_head.reference.commit == new_head_commit @@ -211,7 +211,7 @@ def test_head_reset(self, rw_repo): cur_head.reset(cur_head, paths="test") cur_head.reset(new_head_commit, paths="lib") # hard resets with paths don't work, its all or nothing - self.failUnlessRaises(GitCommandError, cur_head.reset, new_head_commit, working_tree=True, paths="lib") + self.assertRaises(GitCommandError, cur_head.reset, new_head_commit, working_tree=True, paths="lib") # we can do a mixed reset, and then checkout from the index though cur_head.reset(new_head_commit) @@ -235,7 +235,7 @@ def test_head_reset(self, rw_repo): cur_head.reference = curhead_commit assert cur_head.commit == curhead_commit assert cur_head.is_detached - self.failUnlessRaises(TypeError, getattr, cur_head, "reference") + self.assertRaises(TypeError, getattr, cur_head, "reference") # tags are references, hence we can point to them some_tag = rw_repo.tags[0] @@ -248,7 +248,7 @@ def test_head_reset(self, rw_repo): cur_head.reference = active_head # type check - self.failUnlessRaises(ValueError, setattr, cur_head, "reference", "that") + self.assertRaises(ValueError, setattr, cur_head, "reference", "that") # head handling commit = 'HEAD' @@ -263,7 +263,7 @@ def test_head_reset(self, rw_repo): Head.create(rw_repo, new_name, new_head.commit) # its not fine with a different value - self.failUnlessRaises(OSError, Head.create, rw_repo, new_name, new_head.commit.parents[0]) + self.assertRaises(OSError, Head.create, rw_repo, new_name, new_head.commit.parents[0]) # force it new_head = Head.create(rw_repo, new_name, actual_commit, force=True) @@ -276,7 +276,7 @@ def test_head_reset(self, rw_repo): # rename with force tmp_head = Head.create(rw_repo, "tmphead") - self.failUnlessRaises(GitCommandError, tmp_head.rename, new_head) + self.assertRaises(GitCommandError, tmp_head.rename, new_head) tmp_head.rename(new_head, force=True) assert tmp_head == new_head and tmp_head.object == new_head.object @@ -289,12 +289,12 @@ def test_head_reset(self, rw_repo): assert tmp_head not in heads and new_head not in heads # force on deletion testing would be missing here, code looks okay though ;) # END for each new head name - self.failUnlessRaises(TypeError, RemoteReference.create, rw_repo, "some_name") + self.assertRaises(TypeError, RemoteReference.create, rw_repo, "some_name") # tag ref tag_name = "5.0.2" TagReference.create(rw_repo, tag_name) - self.failUnlessRaises(GitCommandError, TagReference.create, rw_repo, tag_name) + self.assertRaises(GitCommandError, TagReference.create, rw_repo, tag_name) light_tag = TagReference.create(rw_repo, tag_name, "HEAD~1", force=True) assert isinstance(light_tag, TagReference) assert light_tag.name == tag_name @@ -354,13 +354,13 @@ def test_head_reset(self, rw_repo): # setting a non-commit as commit fails, but succeeds as object head_tree = head.commit.tree - self.failUnlessRaises(ValueError, setattr, head, 'commit', head_tree) + self.assertRaises(ValueError, setattr, head, 'commit', head_tree) assert head.commit == old_commit # and the ref did not change # we allow heds to point to any object head.object = head_tree assert head.object == head_tree # cannot query tree as commit - self.failUnlessRaises(TypeError, getattr, head, 'commit') + self.assertRaises(TypeError, getattr, head, 'commit') # set the commit directly using the head. This would never detach the head assert not cur_head.is_detached @@ -397,7 +397,7 @@ def test_head_reset(self, rw_repo): # create a new branch that is likely to touch the file we changed far_away_head = rw_repo.create_head("far_head", 'HEAD~100') - self.failUnlessRaises(GitCommandError, far_away_head.checkout) + self.assertRaises(GitCommandError, far_away_head.checkout) assert active_branch == active_branch.checkout(force=True) assert rw_repo.head.reference != far_away_head @@ -408,7 +408,7 @@ def test_head_reset(self, rw_repo): assert ref.path == full_ref assert ref.object == rw_repo.head.commit - self.failUnlessRaises(OSError, Reference.create, rw_repo, full_ref, 'HEAD~20') + self.assertRaises(OSError, Reference.create, rw_repo, full_ref, 'HEAD~20') # it works if it is at the same spot though and points to the same reference assert Reference.create(rw_repo, full_ref, 'HEAD').path == full_ref Reference.delete(rw_repo, full_ref) @@ -434,11 +434,11 @@ def test_head_reset(self, rw_repo): # END for each name type # References that don't exist trigger an error if we want to access them - self.failUnlessRaises(ValueError, getattr, Reference(rw_repo, "refs/doesntexist"), 'commit') + self.assertRaises(ValueError, getattr, Reference(rw_repo, "refs/doesntexist"), 'commit') # exists, fail unless we force ex_ref_path = far_away_head.path - self.failUnlessRaises(OSError, ref.rename, ex_ref_path) + self.assertRaises(OSError, ref.rename, ex_ref_path) # if it points to the same commit it works far_away_head.commit = ref.commit ref.rename(ex_ref_path) @@ -451,7 +451,7 @@ def test_head_reset(self, rw_repo): assert symref.path == symref_path assert symref.reference == cur_head.reference - self.failUnlessRaises(OSError, SymbolicReference.create, rw_repo, symref_path, cur_head.reference.commit) + self.assertRaises(OSError, SymbolicReference.create, rw_repo, symref_path, cur_head.reference.commit) # it works if the new ref points to the same reference SymbolicReference.create(rw_repo, symref.path, symref.reference).path == symref.path # @NoEffect SymbolicReference.delete(rw_repo, symref) @@ -541,7 +541,7 @@ def test_head_reset(self, rw_repo): # if the assignment raises, the ref doesn't exist Reference.delete(ref.repo, ref.path) assert not ref.is_valid() - self.failUnlessRaises(ValueError, setattr, ref, 'commit', "nonsense") + self.assertRaises(ValueError, setattr, ref, 'commit', "nonsense") assert not ref.is_valid() # I am sure I had my reason to make it a class method at first, but @@ -555,7 +555,7 @@ def test_head_reset(self, rw_repo): Reference.delete(ref.repo, ref.path) assert not ref.is_valid() - self.failUnlessRaises(ValueError, setattr, ref, 'object', "nonsense") + self.assertRaises(ValueError, setattr, ref, 'object', "nonsense") assert not ref.is_valid() # END for each path diff --git a/git/test/test_remote.py b/test/test_remote.py similarity index 92% rename from git/test/test_remote.py rename to test/test_remote.py index 7c1711c27..fb7d23c6c 100644 --- a/git/test/test_remote.py +++ b/test/test_remote.py @@ -22,16 +22,14 @@ GitCommandError ) from git.cmd import Git -from git.compat import string_types -from git.test.lib import ( +from test.lib import ( TestBase, with_rw_repo, with_rw_and_rw_remote_repo, fixture, - GIT_DAEMON_PORT, - assert_raises + GIT_DAEMON_PORT ) -from git.util import IterableList, rmtree, HIDE_WINDOWS_FREEZE_ERRORS +from git.util import rmtree, HIDE_WINDOWS_FREEZE_ERRORS import os.path as osp @@ -53,7 +51,6 @@ def _parse_progress_line(self, line): # Keep it for debugging self._seen_lines.append(line) rval = super(TestRemoteProgress, self)._parse_progress_line(line) - assert len(line) > 1, "line %r too short" % line return rval def line_dropped(self, line): @@ -94,7 +91,7 @@ def make_assertion(self): assert self._stages_per_op # must have seen all stages - for op, stages in self._stages_per_op.items(): # @UnusedVariable + for _op, stages in self._stages_per_op.items(): assert stages & self.STAGE_MASK == self.STAGE_MASK # END for each op/stage @@ -117,7 +114,7 @@ def _do_test_fetch_result(self, results, remote): self.assertGreater(len(results), 0) self.assertIsInstance(results[0], FetchInfo) for info in results: - self.assertIsInstance(info.note, string_types) + self.assertIsInstance(info.note, str) if isinstance(info.ref, Reference): self.assertTrue(info.flags) # END reference type flags handling @@ -134,7 +131,7 @@ def _do_test_push_result(self, results, remote): self.assertIsInstance(results[0], PushInfo) for info in results: self.assertTrue(info.flags) - self.assertIsInstance(info.summary, string_types) + self.assertIsInstance(info.summary, str) if info.old_commit is not None: self.assertIsInstance(info.old_commit, Commit) if info.flags & info.ERROR: @@ -154,8 +151,8 @@ def _do_test_push_result(self, results, remote): # END for each info def _do_test_fetch_info(self, repo): - self.failUnlessRaises(ValueError, FetchInfo._from_line, repo, "nonsense", '') - self.failUnlessRaises( + self.assertRaises(ValueError, FetchInfo._from_line, repo, "nonsense", '') + self.assertRaises( ValueError, FetchInfo._from_line, repo, "? [up to date] 0.1.7RC -> origin/0.1.7RC", '') def _commit_random_file(self, repo): @@ -223,7 +220,7 @@ def get_info(res, remote, name): Head.delete(new_remote_branch.repo, new_remote_branch) res = fetch_and_test(remote) # deleted remote will not be fetched - self.failUnlessRaises(IndexError, get_info, res, remote, new_remote_branch) + self.assertRaises(IndexError, get_info, res, remote, new_remote_branch) # prune stale tracking branches stale_refs = remote.stale_refs @@ -253,9 +250,15 @@ def get_info(res, remote, name): self.assertEqual(tinfo.ref.commit, rtag.commit) self.assertTrue(tinfo.flags & tinfo.NEW_TAG) - # adjust tag commit + # adjust the local tag commit Reference.set_object(rtag, rhead.commit.parents[0].parents[0]) - res = fetch_and_test(remote, tags=True) + + # as of git 2.20 one cannot clobber local tags that have changed without + # specifying --force, and the test assumes you can clobber, so... + force = None + if rw_repo.git.version_info[:2] >= (2, 20): + force = True + res = fetch_and_test(remote, tags=True, force=force) tinfo = res[str(rtag)] self.assertEqual(tinfo.commit, rtag.commit) self.assertTrue(tinfo.flags & tinfo.TAG_UPDATE) @@ -263,7 +266,7 @@ def get_info(res, remote, name): # delete remote tag - local one will stay TagReference.delete(remote_repo, rtag) res = fetch_and_test(remote, tags=True) - self.failUnlessRaises(IndexError, get_info, res, remote, str(rtag)) + self.assertRaises(IndexError, get_info, res, remote, str(rtag)) # provoke to receive actual objects to see what kind of output we have to # expect. For that we need a remote transport protocol @@ -314,13 +317,13 @@ def _assert_push_and_pull(self, remote, rw_repo, remote_repo): # push without spec should fail ( without further configuration ) # well, works nicely - # self.failUnlessRaises(GitCommandError, remote.push) + # self.assertRaises(GitCommandError, remote.push) # simple file push self._commit_random_file(rw_repo) progress = TestRemoteProgress() res = remote.push(lhead.reference, progress) - self.assertIsInstance(res, IterableList) + self.assertIsInstance(res, list) self._do_test_push_result(res, remote) progress.make_assertion() @@ -338,7 +341,7 @@ def _assert_push_and_pull(self, remote, rw_repo, remote_repo): self._do_test_push_result(res, remote) # invalid refspec - self.failUnlessRaises(GitCommandError, remote.push, "hellothere") + self.assertRaises(GitCommandError, remote.push, "hellothere") # push new tags progress = TestRemoteProgress() @@ -380,6 +383,14 @@ def _assert_push_and_pull(self, remote, rw_repo, remote_repo): progress.make_assertion() self._do_test_push_result(res, remote) + # rejected stale delete + force_with_lease = "%s:0000000000000000000000000000000000000000" % new_head.path + res = remote.push(":%s" % new_head.path, force_with_lease=force_with_lease) + self.assertTrue(res[0].flags & PushInfo.ERROR) + self.assertTrue(res[0].flags & PushInfo.REJECTED) + self.assertIsNone(res[0].local_ref) + self._do_test_push_result(res, remote) + # delete new branch on the remote end and locally res = remote.push(":%s" % new_head.path) self._do_test_push_result(res, remote) @@ -427,7 +438,7 @@ def test_base(self, rw_repo, remote_repo): assert reader.get_value(opt, None) == val # unable to write with a reader - self.failUnlessRaises(IOError, reader.set, opt, "test") + self.assertRaises(IOError, reader.set, opt, "test") # change value with remote.config_writer as writer: @@ -498,7 +509,7 @@ def test_creation_and_removal(self, bare_rw_repo): self.assertTrue(remote.exists()) # create same one again - self.failUnlessRaises(GitCommandError, Remote.create, bare_rw_repo, *arg_list) + self.assertRaises(GitCommandError, Remote.create, bare_rw_repo, *arg_list) Remote.remove(bare_rw_repo, new_name) self.assertTrue(remote.exists()) # We still have a cache that doesn't know we were deleted by name @@ -520,9 +531,9 @@ def test_fetch_info(self): fetch_info_line_fmt += "git://github.com/gitpython-developers/GitPython" remote_info_line_fmt = "* [new branch] nomatter -> %s" - self.failUnlessRaises(ValueError, FetchInfo._from_line, self.rorepo, - remote_info_line_fmt % "refs/something/branch", - "269c498e56feb93e408ed4558c8138d750de8893\t\t/Users/ben/test/foo\n") + self.assertRaises(ValueError, FetchInfo._from_line, self.rorepo, + remote_info_line_fmt % "refs/something/branch", + "269c498e56feb93e408ed4558c8138d750de8893\t\t/Users/ben/test/foo\n") fi = FetchInfo._from_line(self.rorepo, remote_info_line_fmt % "local/master", @@ -614,7 +625,7 @@ def test_multiple_urls(self, rw_repo): self.assertEqual(list(remote.urls), [test1, test2]) # will raise: fatal: --add --delete doesn't make sense - assert_raises(GitCommandError, remote.set_url, test2, add=True, delete=True) + self.assertRaises(GitCommandError, remote.set_url, test2, add=True, delete=True) # Testing on another remote, with the add/delete URL remote = rw_repo.create_remote('another', url=test1) @@ -628,11 +639,11 @@ def test_multiple_urls(self, rw_repo): remote.delete_url(https://github.com/test1) self.assertEqual(list(remote.urls), [test3]) # will raise fatal: Will not delete all non-push URLs - assert_raises(GitCommandError, remote.delete_url, test3) + self.assertRaises(GitCommandError, remote.delete_url, test3) def test_fetch_error(self): rem = self.rorepo.remote('origin') - with self.assertRaisesRegex(GitCommandError, "Couldn't find remote ref __BAD_REF__"): + with self.assertRaisesRegex(GitCommandError, "[Cc]ouldn't find remote ref __BAD_REF__"): rem.fetch('https://github.com/__BAD_REF__') @with_rw_repo('0.1.6', bare=False) diff --git a/git/test/test_repo.py b/test/test_repo.py similarity index 80% rename from git/test/test_repo.py rename to test/test_repo.py index e65ead890..8dc178337 100644 --- a/git/test/test_repo.py +++ b/test/test_repo.py @@ -9,14 +9,10 @@ from io import BytesIO import itertools import os +import pathlib import pickle import tempfile -from unittest import skipIf, SkipTest - -try: - import pathlib -except ImportError: - pathlib = None +from unittest import mock, skipIf, SkipTest from git import ( InvalidGitRepositoryError, @@ -36,31 +32,19 @@ BadName, GitCommandError ) -from git.compat import ( - PY3, - is_win, - string_types, - win_encode, -) from git.exc import ( BadObject, ) from git.repo.fun import touch -from git.test.lib import ( - patch, +from test.lib import ( TestBase, with_rw_repo, - fixture, - assert_false, - assert_equal, - assert_true, - raises + fixture ) from git.util import HIDE_WINDOWS_KNOWN_ERRORS, cygpath -from git.test.lib import with_rw_directory +from test.lib import with_rw_directory from git.util import join_path_native, rmtree, rmfile, bin_to_hex -import functools as fnt import os.path as osp @@ -90,17 +74,15 @@ def setUp(self): def tearDown(self): for lfp in glob.glob(_tc_lock_fpaths): if osp.isfile(lfp): - raise AssertionError('Previous TC left hanging git-lock file: %s', lfp) + raise AssertionError('Previous TC left hanging git-lock file: {}'.format(lfp)) import gc gc.collect() - @raises(InvalidGitRepositoryError) def test_new_should_raise_on_invalid_repo_location(self): - Repo(tempfile.gettempdir()) + self.assertRaises(InvalidGitRepositoryError, Repo, tempfile.gettempdir()) - @raises(NoSuchPathError) def test_new_should_raise_on_non_existent_path(self): - Repo("repos/foobar") + self.assertRaises(NoSuchPathError, Repo, "repos/foobar") @with_rw_repo('0.3.2.1') def test_repo_creation_from_different_paths(self, rw_repo): @@ -112,20 +94,17 @@ def test_repo_creation_from_different_paths(self, rw_repo): @with_rw_repo('0.3.2.1') def test_repo_creation_pathlib(self, rw_repo): - if pathlib is None: # pythons bellow 3.4 don't have pathlib - raise SkipTest("pathlib was introduced in 3.4") - r_from_gitdir = Repo(pathlib.Path(rw_repo.git_dir)) self.assertEqual(r_from_gitdir.git_dir, rw_repo.git_dir) def test_description(self): txt = "Test repository" self.rorepo.description = txt - assert_equal(self.rorepo.description, txt) + self.assertEqual(self.rorepo.description, txt) def test_heads_should_return_array_of_head_objects(self): for head in self.rorepo.heads: - assert_equal(Head, head.__class__) + self.assertEqual(Head, head.__class__) def test_heads_should_populate_head_data(self): for head in self.rorepo.heads: @@ -143,7 +122,7 @@ def test_tree_from_revision(self): self.assertEqual(self.rorepo.tree(tree), tree) # try from invalid revision that does not exist - self.failUnlessRaises(BadName, self.rorepo.tree, 'hello world') + self.assertRaises(BadName, self.rorepo.tree, 'hello world') def test_pickleable(self): pickle.loads(pickle.dumps(self.rorepo)) @@ -159,18 +138,18 @@ def test_commits(self): self.assertEqual(len(commits), mc) c = commits[0] - assert_equal('9a4b1d4d11eee3c5362a4152216376e634bd14cf', c.hexsha) - assert_equal(["c76852d0bff115720af3f27acdb084c59361e5f6"], [p.hexsha for p in c.parents]) - assert_equal("ce41fc29549042f1aa09cc03174896cf23f112e3", c.tree.hexsha) - assert_equal("Michael Trier", c.author.name) - assert_equal("mtrier@gmail.com", c.author.email) - assert_equal(1232829715, c.authored_date) - assert_equal(5 * 3600, c.author_tz_offset) - assert_equal("Michael Trier", c.committer.name) - assert_equal("mtrier@gmail.com", c.committer.email) - assert_equal(1232829715, c.committed_date) - assert_equal(5 * 3600, c.committer_tz_offset) - assert_equal("Bumped version 0.1.6\n", c.message) + self.assertEqual('9a4b1d4d11eee3c5362a4152216376e634bd14cf', c.hexsha) + self.assertEqual(["c76852d0bff115720af3f27acdb084c59361e5f6"], [p.hexsha for p in c.parents]) + self.assertEqual("ce41fc29549042f1aa09cc03174896cf23f112e3", c.tree.hexsha) + self.assertEqual("Michael Trier", c.author.name) + self.assertEqual("mtrier@gmail.com", c.author.email) + self.assertEqual(1232829715, c.authored_date) + self.assertEqual(5 * 3600, c.author_tz_offset) + self.assertEqual("Michael Trier", c.committer.name) + self.assertEqual("mtrier@gmail.com", c.committer.email) + self.assertEqual(1232829715, c.committed_date) + self.assertEqual(5 * 3600, c.committer_tz_offset) + self.assertEqual("Bumped version 0.1.6\n", c.message) c = commits[1] self.assertIsInstance(c.parents, tuple) @@ -218,25 +197,70 @@ def test_clone_from_keeps_env(self, rw_dir): cloned = Repo.clone_from(original_repo.git_dir, osp.join(rw_dir, "clone"), env=environment) - assert_equal(environment, cloned.git.environment()) + self.assertEqual(environment, cloned.git.environment()) @with_rw_directory - def test_clone_from_pathlib(self, rw_dir): - if pathlib is None: # pythons bellow 3.4 don't have pathlib - raise SkipTest("pathlib was introduced in 3.4") + def test_date_format(self, rw_dir): + repo = Repo.init(osp.join(rw_dir, "repo")) + # @-timestamp is the format used by git commit hooks + repo.index.commit("Commit messages", commit_date="@1400000000 +0000") + @with_rw_directory + def test_clone_from_pathlib(self, rw_dir): original_repo = Repo.init(osp.join(rw_dir, "repo")) Repo.clone_from(original_repo.git_dir, pathlib.Path(rw_dir) / "clone_pathlib") + @with_rw_directory + def test_clone_from_pathlib_withConfig(self, rw_dir): + original_repo = Repo.init(osp.join(rw_dir, "repo")) + + cloned = Repo.clone_from(original_repo.git_dir, pathlib.Path(rw_dir) / "clone_pathlib_withConfig", + multi_options=["--recurse-submodules=repo", + "--config core.filemode=false", + "--config submodule.repo.update=checkout"]) + + self.assertEqual(cloned.config_reader().get_value('submodule', 'active'), 'repo') + self.assertEqual(cloned.config_reader().get_value('core', 'filemode'), False) + self.assertEqual(cloned.config_reader().get_value('submodule "repo"', 'update'), 'checkout') + + def test_clone_from_with_path_contains_unicode(self): + with tempfile.TemporaryDirectory() as tmpdir: + unicode_dir_name = '\u0394' + path_with_unicode = os.path.join(tmpdir, unicode_dir_name) + os.makedirs(path_with_unicode) + + try: + Repo.clone_from( + url=self._small_repo_url(), + to_path=path_with_unicode, + ) + except UnicodeEncodeError: + self.fail('Raised UnicodeEncodeError') + + @with_rw_directory + def test_leaking_password_in_clone_logs(self, rw_dir): + password = "fakepassword1234" + try: + Repo.clone_from( + url="https://fakeuser:%7B%7D@fakerepo.example.com/testrepo".format( + password), + to_path=rw_dir) + except GitCommandError as err: + assert password not in str(err), "The error message '%s' should not contain the password" % err + # Working example from a blank private project + Repo.clone_from( + url="https://gitlab+deploy-token-392045:mLWhVus7bjLsy8xj8q2V@gitlab.com/mercierm/test_git_python", + to_path=rw_dir) + @with_rw_repo('HEAD') def test_max_chunk_size(self, repo): - class TestOutputStream(object): + class TestOutputStream(TestBase): def __init__(self, max_chunk_size): self.max_chunk_size = max_chunk_size def write(self, b): - assert_true(len(b) <= self.max_chunk_size) + self.assertTrue(len(b) <= self.max_chunk_size) for chunk_size in [16, 128, 1024]: repo.git.status(output_stream=TestOutputStream(chunk_size), max_chunk_size=chunk_size) @@ -326,12 +350,12 @@ def test_alternates(self): self.rorepo.alternates = cur_alternates def test_repr(self): - assert repr(self.rorepo).startswith('= 2 # gitdb and async [and smmap], async being a child of gitdb # cannot set the parent commit as root module's path didn't exist - self.failUnlessRaises(ValueError, rm.set_parent_commit, 'HEAD') + self.assertRaises(ValueError, rm.set_parent_commit, 'HEAD') # TEST UPDATE ############# @@ -479,13 +480,12 @@ def test_root_module(self, rwrepo): with sm.config_writer() as writer: writer.set_value('path', fp) # change path to something with prefix AFTER url change - # update fails as list_items in such a situations cannot work, as it cannot - # find the entry at the changed path - self.failUnlessRaises(InvalidGitRepositoryError, rm.update, recursive=False) + # update doesn't fail, because list_items ignores the wrong path in such situations. + rm.update(recursive=False) # move it properly - doesn't work as it its path currently points to an indexentry # which doesn't exist ( move it to some path, it doesn't matter here ) - self.failUnlessRaises(InvalidGitRepositoryError, sm.move, pp) + self.assertRaises(InvalidGitRepositoryError, sm.move, pp) # reset the path(cache) to where it was, now it works sm.path = prep sm.move(fp, module=False) # leave it at the old location @@ -535,7 +535,7 @@ def test_root_module(self, rwrepo): # when removing submodules, we may get new commits as nested submodules are auto-committing changes # to allow deletions without force, as the index would be dirty otherwise. # QUESTION: Why does this seem to work in test_git_submodule_compatibility() ? - self.failUnlessRaises(InvalidGitRepositoryError, rm.update, recursive=False, force_remove=False) + self.assertRaises(InvalidGitRepositoryError, rm.update, recursive=False, force_remove=False) rm.update(recursive=False, force_remove=True) assert not osp.isdir(smp) @@ -643,9 +643,9 @@ def test_first_submodule(self, rwrepo): rwrepo.index.commit("Added submodule " + sm_name) # end for each submodule path to add - self.failUnlessRaises(ValueError, rwrepo.create_submodule, 'fail', osp.expanduser('~')) - self.failUnlessRaises(ValueError, rwrepo.create_submodule, 'fail-too', - rwrepo.working_tree_dir + osp.sep) + self.assertRaises(ValueError, rwrepo.create_submodule, 'fail', osp.expanduser('~')) + self.assertRaises(ValueError, rwrepo.create_submodule, 'fail-too', + rwrepo.working_tree_dir + osp.sep) @with_rw_directory def test_add_empty_repo(self, rwdir): @@ -656,10 +656,28 @@ def test_add_empty_repo(self, rwdir): for checkout_mode in range(2): name = 'empty' + str(checkout_mode) - self.failUnlessRaises(ValueError, parent.create_submodule, name, name, - url=empty_repo_dir, no_checkout=checkout_mode and True or False) + self.assertRaises(ValueError, parent.create_submodule, name, name, + url=empty_repo_dir, no_checkout=checkout_mode and True or False) # end for each checkout mode + @with_rw_directory + def test_list_only_valid_submodules(self, rwdir): + repo_path = osp.join(rwdir, 'parent') + repo = git.Repo.init(repo_path) + repo.git.submodule('add', self._small_repo_url(), 'module') + repo.index.commit("add submodule") + + assert len(repo.submodules) == 1 + + # Delete the directory from submodule + submodule_path = osp.join(repo_path, 'module') + shutil.rmtree(submodule_path) + repo.git.add([submodule_path]) + repo.index.commit("remove submodule") + + repo = git.Repo(repo_path) + assert len(repo.submodules) == 0 + @skipIf(HIDE_WINDOWS_KNOWN_ERRORS, """FIXME on cygwin: File "C:\\projects\\gitpython\\git\\cmd.py", line 671, in execute raise GitCommandError(command, status, stderr_value, stdout_value) @@ -771,7 +789,7 @@ def assert_exists(sm, value=True): assert_exists(csm) # Fails because there are new commits, compared to the remote we cloned from - self.failUnlessRaises(InvalidGitRepositoryError, sm.remove, dry_run=True) + self.assertRaises(InvalidGitRepositoryError, sm.remove, dry_run=True) assert_exists(sm) assert sm.module().commit() == sm_head_commit assert_exists(csm) @@ -793,7 +811,7 @@ def assert_exists(sm, value=True): csm.repo.index.commit("Have to commit submodule change for algorithm to pick it up") assert csm.url == 'bar' - self.failUnlessRaises(Exception, rsm.update, recursive=True, to_latest_revision=True, progress=prog) + self.assertRaises(Exception, rsm.update, recursive=True, to_latest_revision=True, progress=prog) assert_exists(csm) rsm.update(recursive=True, to_latest_revision=True, progress=prog, keep_going=True) @@ -904,7 +922,7 @@ def test_branch_renames(self, rw_dir): sm_mod.head.ref.name == sm_pfb.name, "should have been switched to past head" sm_mod.commit() == sm_fb.commit, "Head wasn't reset" - self.failUnlessRaises(RepositoryDirtyError, parent_repo.submodule_update, to_latest_revision=True) + self.assertRaises(RepositoryDirtyError, parent_repo.submodule_update, to_latest_revision=True) parent_repo.submodule_update(to_latest_revision=True, force_reset=True) assert sm_mod.commit() == sm_pfb.commit, "Now head should have been reset" assert sm_mod.head.ref.name == sm_pfb.name @@ -918,3 +936,12 @@ class Repo(object): relative_path = Submodule._to_relative_path(super_repo, submodule_path) msg = '_to_relative_path should be "submodule_path" but was "%s"' % relative_path assert relative_path == 'submodule_path', msg + + @skipIf(True, 'for some unknown reason the assertion fails, even though it in fact is working in more common setup') + @with_rw_directory + def test_depth(self, rwdir): + parent = git.Repo.init(osp.join(rwdir, 'test_depth')) + sm_name = 'mymodules/myname' + sm_depth = 1 + sm = parent.create_submodule(sm_name, sm_name, url=self._small_repo_url(), depth=sm_depth) + self.assertEqual(len(list(sm.module().iter_commits())), sm_depth) diff --git a/git/test/test_tree.py b/test/test_tree.py similarity index 97% rename from git/test/test_tree.py rename to test/test_tree.py index dc23f29ca..49b34c5e7 100644 --- a/git/test/test_tree.py +++ b/test/test_tree.py @@ -12,7 +12,7 @@ Tree, Blob ) -from git.test.lib import TestBase +from test.lib import TestBase from git.util import HIDE_WINDOWS_KNOWN_ERRORS import os.path as osp @@ -34,7 +34,7 @@ def test_serializable(self): # END skip non-trees tree = item # trees have no dict - self.failUnlessRaises(AttributeError, setattr, tree, 'someattr', 1) + self.assertRaises(AttributeError, setattr, tree, 'someattr', 1) orig_data = tree.data_stream.read() orig_cache = tree._cache diff --git a/git/test/test_util.py b/test/test_util.py similarity index 64% rename from git/test/test_util.py rename to test/test_util.py index 9c9932055..ddc5f628f 100644 --- a/git/test/test_util.py +++ b/test/test_util.py @@ -4,15 +4,17 @@ # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php +import os +import pickle import tempfile import time -from unittest import skipIf +from unittest import mock, skipIf from datetime import datetime import ddt from git.cmd import dashify -from git.compat import string_types, is_win +from git.compat import is_win from git.objects.util import ( altz_to_utctz_str, utctz_to_altz, @@ -20,10 +22,7 @@ parse_date, tzoffset, from_timestamp) -from git.test.lib import ( - TestBase, - assert_equal -) +from test.lib import TestBase from git.util import ( LockFile, BlockingLockFile, @@ -31,7 +30,8 @@ Actor, IterableList, cygpath, - decygpath + decygpath, + remove_password_if_present, ) @@ -125,8 +125,8 @@ def test_decygpath(self, case): self.assertEqual(wcpath, wpath.replace('/', '\\'), cpath) def test_it_should_dashify(self): - assert_equal('this-is-my-argument', dashify('this_is_my_argument')) - assert_equal('foo', dashify('foo')) + self.assertEqual('this-is-my-argument', dashify('this_is_my_argument')) + self.assertEqual('foo', dashify('foo')) def test_lock_file(self): my_file = tempfile.mktemp() @@ -142,13 +142,13 @@ def test_lock_file(self): # concurrent access other_lock_file = LockFile(my_file) assert not other_lock_file._has_lock() - self.failUnlessRaises(IOError, other_lock_file._obtain_lock_or_raise) + self.assertRaises(IOError, other_lock_file._obtain_lock_or_raise) lock_file._release_lock() assert not lock_file._has_lock() other_lock_file._obtain_lock_or_raise() - self.failUnlessRaises(IOError, lock_file._obtain_lock_or_raise) + self.assertRaises(IOError, lock_file._obtain_lock_or_raise) # auto-release on destruction del(other_lock_file) @@ -164,7 +164,7 @@ def test_blocking_lock_file(self): start = time.time() wait_time = 0.1 wait_lock = BlockingLockFile(my_file, 0.05, wait_time) - self.failUnlessRaises(IOError, wait_lock._obtain_lock) + self.assertRaises(IOError, wait_lock._obtain_lock) elapsed = time.time() - start extra_time = 0.02 if is_win: @@ -176,6 +176,10 @@ def test_user_id(self): self.assertIn('@', get_user_id()) def test_parse_date(self): + # parse_date(from_timestamp()) must return the tuple unchanged + for timestamp, offset in (1522827734, -7200), (1522827734, 0), (1522827734, +3600): + self.assertEqual(parse_date(from_timestamp(timestamp, offset)), (timestamp, offset)) + # test all supported formats def assert_rval(rval, veri_time, offset=0): self.assertEqual(len(rval), 2) @@ -186,7 +190,7 @@ def assert_rval(rval, veri_time, offset=0): # now that we are here, test our conversion functions as well utctz = altz_to_utctz_str(offset) - self.assertIsInstance(utctz, string_types) + self.assertIsInstance(utctz, str) self.assertEqual(utctz_to_altz(verify_utctz(utctz)), offset) # END assert rval utility @@ -202,9 +206,10 @@ def assert_rval(rval, veri_time, offset=0): # END for each date type # and failure - self.failUnlessRaises(ValueError, parse_date, 'invalid format') - self.failUnlessRaises(ValueError, parse_date, '123456789 -02000') - self.failUnlessRaises(ValueError, parse_date, ' 123456789 -0200') + self.assertRaises(ValueError, parse_date, datetime.now()) # non-aware datetime + self.assertRaises(ValueError, parse_date, 'invalid format') + self.assertRaises(ValueError, parse_date, '123456789 -02000') + self.assertRaises(ValueError, parse_date, ' 123456789 -0200') def test_actor(self): for cr in (None, self.rorepo.config_reader()): @@ -212,6 +217,44 @@ def test_actor(self): self.assertIsInstance(Actor.author(cr), Actor) # END assure config reader is handled + @mock.patch("getpass.getuser") + def test_actor_get_uid_laziness_not_called(self, mock_get_uid): + env = { + "GIT_AUTHOR_NAME": "John Doe", + "GIT_AUTHOR_EMAIL": "jdoe@example.com", + "GIT_COMMITTER_NAME": "Jane Doe", + "GIT_COMMITTER_EMAIL": "jane@example.com", + } + os.environ.update(env) + for cr in (None, self.rorepo.config_reader()): + committer = Actor.committer(cr) + author = Actor.author(cr) + self.assertEqual(committer.name, 'Jane Doe') + self.assertEqual(committer.email, 'jane@example.com') + self.assertEqual(author.name, 'John Doe') + self.assertEqual(author.email, 'jdoe@example.com') + self.assertFalse(mock_get_uid.called) + + @mock.patch("getpass.getuser") + def test_actor_get_uid_laziness_called(self, mock_get_uid): + mock_get_uid.return_value = "user" + for cr in (None, self.rorepo.config_reader()): + committer = Actor.committer(cr) + author = Actor.author(cr) + if cr is None: # otherwise, use value from config_reader + self.assertEqual(committer.name, 'user') + self.assertTrue(committer.email.startswith('user@')) + self.assertEqual(author.name, 'user') + self.assertTrue(committer.email.startswith('user@')) + self.assertTrue(mock_get_uid.called) + self.assertEqual(mock_get_uid.call_count, 4) + + def test_actor_from_string(self): + self.assertEqual(Actor._from_string("name"), Actor("name", None)) + self.assertEqual(Actor._from_string("name <>"), Actor("name", "")) + self.assertEqual(Actor._from_string("name last another "), + Actor("name last another", "some-very-long-email@example.com")) + @ddt.data(('name', ''), ('name', 'prefix_')) def test_iterable_list(self, case): name, prefix = case @@ -246,11 +289,11 @@ def test_iterable_list(self, case): self.assertIs(ilist.two, m2) # test exceptions - self.failUnlessRaises(AttributeError, getattr, ilist, 'something') - self.failUnlessRaises(IndexError, ilist.__getitem__, 'something') + self.assertRaises(AttributeError, getattr, ilist, 'something') + self.assertRaises(IndexError, ilist.__getitem__, 'something') # delete by name and index - self.failUnlessRaises(IndexError, ilist.__delitem__, 'something') + self.assertRaises(IndexError, ilist.__delitem__, 'something') del(ilist[name2]) self.assertEqual(len(ilist), 1) self.assertNotIn(name2, ilist) @@ -259,8 +302,8 @@ def test_iterable_list(self, case): self.assertNotIn(name1, ilist) self.assertEqual(len(ilist), 0) - self.failUnlessRaises(IndexError, ilist.__delitem__, 0) - self.failUnlessRaises(IndexError, ilist.__delitem__, 'something') + self.assertRaises(IndexError, ilist.__delitem__, 0) + self.assertRaises(IndexError, ilist.__delitem__, 'something') def test_from_timestamp(self): # Correct offset: UTC+2, should return datetime + tzoffset(+2) @@ -274,3 +317,26 @@ def test_from_timestamp(self): # Wrong offset: UTC-9000, should return datetime + tzoffset(UTC) altz = utctz_to_altz('-9000') self.assertEqual(datetime.fromtimestamp(1522827734, tzoffset(0)), from_timestamp(1522827734, altz)) + + def test_pickle_tzoffset(self): + t1 = tzoffset(555) + t2 = pickle.loads(pickle.dumps(t1)) + self.assertEqual(t1._offset, t2._offset) + self.assertEqual(t1._name, t2._name) + + def test_remove_password_from_command_line(self): + password = "fakepassword1234" + url_with_pass = "https://fakeuser:%7B%7D@fakerepo.example.com/testrepo".format(password) + url_without_pass = "https://fakerepo.example.com/testrepo" + + cmd_1 = ["git", "clone", "-v", url_with_pass] + cmd_2 = ["git", "clone", "-v", url_without_pass] + cmd_3 = ["no", "url", "in", "this", "one"] + + redacted_cmd_1 = remove_password_if_present(cmd_1) + assert password not in " ".join(redacted_cmd_1) + # Check that we use a copy + assert cmd_1 is not redacted_cmd_1 + assert password in " ".join(cmd_1) + assert cmd_2 == remove_password_if_present(cmd_2) + assert cmd_3 == remove_password_if_present(cmd_3) diff --git a/test/tstrunner.py b/test/tstrunner.py new file mode 100644 index 000000000..a3bcfa3cb --- /dev/null +++ b/test/tstrunner.py @@ -0,0 +1,7 @@ +import unittest +loader = unittest.TestLoader() +start_dir = '.' +suite = loader.discover(start_dir) + +runner = unittest.TextTestRunner() +runner.run(suite) diff --git a/tox.ini b/tox.ini index ed09c08bf..d9d1594d4 100644 --- a/tox.ini +++ b/tox.ini @@ -1,17 +1,18 @@ [tox] -envlist = py27,py34,py35,py36,flake8 +envlist = py35,py36,py37,py38,py39,flake8 [testenv] -commands = nosetests {posargs} +commands = python -m unittest --buffer {posargs} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt passenv = HOME [testenv:cover] -commands = nosetests --with-coverage {posargs} +commands = coverage run --omit="git/test/*" -m unittest --buffer {posargs} + coverage report [testenv:flake8] -commands = flake8 {posargs} +commands = flake8 --ignore=W293,E265,E266,W503,W504,E731 {posargs} [testenv:venv] commands = {posargs} @@ -22,6 +23,7 @@ commands = {posargs} # E266 = too many leading '#' for block comment # E731 = do not assign a lambda expression, use a def # W293 = Blank line contains whitespace -ignore = E265,W293,E266,E731 +# W504 = Line break after operator +ignore = E265,W293,E266,E731, W504 max-line-length = 120 exclude = .tox,.venv,build,dist,doc,git/ext/