<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitpython.git/git/test/test_tree.py, branch 2.1.6</title>
<subtitle>github.com: gitpython-developers/GitPython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/'/>
<entry>
<title>Python 3.6 invalid escape sequence deprecation fixes</title>
<updated>2017-04-09T17:59:44+00:00</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2017-03-09T09:40:20+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=32da7feb496ef31c48b5cbe4e37a4c68ed1b7dd5'/>
<id>32da7feb496ef31c48b5cbe4e37a4c68ed1b7dd5</id>
<content type='text'>
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixes to support Python 2.6 again.</title>
<updated>2016-10-24T14:02:31+00:00</updated>
<author>
<name>Andreas Maier</name>
<email>maiera@de.ibm.com</email>
</author>
<published>2016-10-21T09:11:22+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=f3d5df2ce3addd9e9e1863f4f33665a16b415b71'/>
<id>f3d5df2ce3addd9e9e1863f4f33665a16b415b71</id>
<content type='text'>
Details:

- Added Python 2.6 again to .travis.yml (it was removed in commit 4486bcb).

- Replaced the use of dictionary comprehensions in `git/cmd.py` around
  line 800 with the code before that change (in commit 25a2ebf).
  Reason: dict comprehensions were introduced only in Python 2.7.

- Changed the import source for `SkipTest` and `skipIf` from `unittest.case`
  to first trying `unittest` and upon ImportError from `unittest2`.
  This was done in `git/util.py` and in several testcases.
  Reason: `SkipTest` and `skipIf` were introduced to unittest only
  in Python 2.7, and `unittest2` is a backport of `unittest` additions
  to Python 2.6.

- In git/test/lib/helper.py, fixed the definition of `assertRaisesRegex`
  to work on py26.

- For Python 2.6, added the `unittest2` dependency to `requirements.txt`
  and changed `.travis.yml` to install `unittest2`. Because git/util.py
  uses SkipTest from unittest/unittest2, the dependency could not be added
  to `test-requirements.txt`.

- Fixed an assertion in `git/test/test_index.py` to also allow
  a Python 2.6 specific exception message.

- In `is_cygwin_git()` in `git/util.py`, replaced `check_output()` with
  `Popen()`. It was added in Python 2.7.

- Enabled Python 2.6 for Windows:

  - Added Python 2.6 for MINGW in .appveyor.yml.

  - When defining `PROC_CREATIONFLAGS` in `git/cmd.py`, made use of certain
    win32 and subprocess flags that were introduced in Python 2.7, dependent
    on whether we run on Python 2.7 or higher.

  - In `AutoInterrupt.__del__()` in `git/cmd.py`, allowed for `os` not having
    `kill()`. `os.kill()` was added for Windows in Python 2.7 (For Linux, it
    existed in Python 2.6 already).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Details:

- Added Python 2.6 again to .travis.yml (it was removed in commit 4486bcb).

- Replaced the use of dictionary comprehensions in `git/cmd.py` around
  line 800 with the code before that change (in commit 25a2ebf).
  Reason: dict comprehensions were introduced only in Python 2.7.

- Changed the import source for `SkipTest` and `skipIf` from `unittest.case`
  to first trying `unittest` and upon ImportError from `unittest2`.
  This was done in `git/util.py` and in several testcases.
  Reason: `SkipTest` and `skipIf` were introduced to unittest only
  in Python 2.7, and `unittest2` is a backport of `unittest` additions
  to Python 2.6.

- In git/test/lib/helper.py, fixed the definition of `assertRaisesRegex`
  to work on py26.

- For Python 2.6, added the `unittest2` dependency to `requirements.txt`
  and changed `.travis.yml` to install `unittest2`. Because git/util.py
  uses SkipTest from unittest/unittest2, the dependency could not be added
  to `test-requirements.txt`.

- Fixed an assertion in `git/test/test_index.py` to also allow
  a Python 2.6 specific exception message.

- In `is_cygwin_git()` in `git/util.py`, replaced `check_output()` with
  `Popen()`. It was added in Python 2.7.

- Enabled Python 2.6 for Windows:

  - Added Python 2.6 for MINGW in .appveyor.yml.

  - When defining `PROC_CREATIONFLAGS` in `git/cmd.py`, made use of certain
    win32 and subprocess flags that were introduced in Python 2.7, dependent
    on whether we run on Python 2.7 or higher.

  - In `AutoInterrupt.__del__()` in `git/cmd.py`, allowed for `os` not having
    `kill()`. `os.kill()` was added for Windows in Python 2.7 (For Linux, it
    existed in Python 2.6 already).
</pre>
</div>
</content>
</entry>
<entry>
<title>src: import os.path as osp</title>
<updated>2016-10-16T00:46:31+00:00</updated>
<author>
<name>Kostis Anagnostopoulos</name>
<email>ankostis@gmail.com</email>
</author>
<published>2016-10-15T11:11:16+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=0210e394e0776d0b7097bf666bebd690ed0c0e4f'/>
<id>0210e394e0776d0b7097bf666bebd690ed0c0e4f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>FIX #526: Do not depend on test-sources</title>
<updated>2016-10-11T11:06:02+00:00</updated>
<author>
<name>Kostis Anagnostopoulos</name>
<email>ankostis@gmail.com</email>
</author>
<published>2016-10-11T11:06:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=74c7ed0e809d6f3d691d8251c70f9a5dab5fb18d'/>
<id>74c7ed0e809d6f3d691d8251c70f9a5dab5fb18d</id>
<content type='text'>
+ Move `HIDE_WINDOWS_KNOWN_ERRORS` flag from
`git.test.lib.helper--&gt;git.util`;
  regular modules in main-sources folder also depend on that flag.
+ Use unittest.SkipTest instead of from non-standard `nose` lib.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
+ Move `HIDE_WINDOWS_KNOWN_ERRORS` flag from
`git.test.lib.helper--&gt;git.util`;
  regular modules in main-sources folder also depend on that flag.
+ Use unittest.SkipTest instead of from non-standard `nose` lib.</pre>
</div>
</content>
</entry>
<entry>
<title>hidden win-errs: Let leaking TCs run till end, then hide</title>
<updated>2016-10-03T23:26:51+00:00</updated>
<author>
<name>Kostis Anagnostopoulos</name>
<email>ankostis@gmail.com</email>
</author>
<published>2016-10-03T10:25:09+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=be44602b633cfb49a472e192f235ba6de0055d38'/>
<id>be44602b633cfb49a472e192f235ba6de0055d38</id>
<content type='text'>
+ Detect code breaking the body of TCs eventually hidden win-errors by
raising SkipTest ALAP.
+ submodule.base.py: import classes from `git.objects` instead of
`utils`.
+ had to ++ ulimit 100-&gt;110 for the extra code tested (more leaks :-)
+ Centralize is_win detection.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
+ Detect code breaking the body of TCs eventually hidden win-errors by
raising SkipTest ALAP.
+ submodule.base.py: import classes from `git.objects` instead of
`utils`.
+ had to ++ ulimit 100-&gt;110 for the extra code tested (more leaks :-)
+ Centralize is_win detection.
</pre>
</div>
</content>
</entry>
<entry>
<title>Appveyor: Set HIDE_WINDOWS_KNOWN_ERRORS=True</title>
<updated>2016-10-03T02:29:10+00:00</updated>
<author>
<name>Kostis Anagnostopoulos</name>
<email>ankostis@gmail.com</email>
</author>
<published>2016-10-03T02:01:40+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=a46f670ba62f9ec9167eb080ee8dce8d5ca44164'/>
<id>a46f670ba62f9ec9167eb080ee8dce8d5ca44164</id>
<content type='text'>
+ Update error-conditions for PY-versions.
+ The purpose is to have NO TC FAILURES (with the minimum possible
conditions).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
+ Update error-conditions for PY-versions.
+ The purpose is to have NO TC FAILURES (with the minimum possible
conditions).</pre>
</div>
</content>
</entry>
<entry>
<title>Appveyor: Add and set HIDE_WINDOWS_KNOWN_ERRORS=False</title>
<updated>2016-10-03T02:00:11+00:00</updated>
<author>
<name>Kostis Anagnostopoulos</name>
<email>ankostis@gmail.com</email>
</author>
<published>2016-10-03T01:22:18+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=6df78b19b7786b15c664a7a1e0bcbb3e7c80f8da'/>
<id>6df78b19b7786b15c664a7a1e0bcbb3e7c80f8da</id>
<content type='text'>
+ Collect all "acknowledged" failing TCs on Appveyor and use
"HIDE_WINDOWS_KNOWN_ERRORS" var to hide them.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
+ Collect all "acknowledged" failing TCs on Appveyor and use
"HIDE_WINDOWS_KNOWN_ERRORS" var to hide them.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(tree): remove Tree.cache - use IndexFile.write_tree() instead</title>
<updated>2015-12-14T18:29:29+00:00</updated>
<author>
<name>Sebastian Thiel</name>
<email>byronimo@gmail.com</email>
</author>
<published>2015-12-14T18:29:29+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=b295c13140f48e6a7125b4e4baf0a0ca03e1e393'/>
<id>b295c13140f48e6a7125b4e4baf0a0ca03e1e393</id>
<content type='text'>
For more information, see CHANGES.rst

Fixes #369
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For more information, see CHANGES.rst

Fixes #369
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(tree): show that fixing Tree.cache is not possible</title>
<updated>2015-12-14T18:19:19+00:00</updated>
<author>
<name>Sebastian Thiel</name>
<email>byronimo@gmail.com</email>
</author>
<published>2015-12-14T18:19:19+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=4f1110bd9b00cb8c1ea07c3aafe9cde89b3dbf9b'/>
<id>4f1110bd9b00cb8c1ea07c3aafe9cde89b3dbf9b</id>
<content type='text'>
The problem is that a per-tree modification API cannot work properly, as the sorting is based
on full paths of all entries within the repository. This feat can only be achieved by the index,
which to my knowledge already does it correctly.

The only fix is to remove the misleading API entirely, which will happen in the next commit.

Related to #369
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The problem is that a per-tree modification API cannot work properly, as the sorting is based
on full paths of all entries within the repository. This feat can only be achieved by the index,
which to my knowledge already does it correctly.

The only fix is to remove the misleading API entirely, which will happen in the next commit.

Related to #369
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(tree): tree item sort now uses git-style</title>
<updated>2015-12-13T12:10:33+00:00</updated>
<author>
<name>Sebastian Thiel</name>
<email>byronimo@gmail.com</email>
</author>
<published>2015-12-13T12:10:33+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=d82a6c5ed9108be5802a03c38f728a07da57438e'/>
<id>d82a6c5ed9108be5802a03c38f728a07da57438e</id>
<content type='text'>
Previously it was possible to generate trees which didn't
appear legit to git as gitpython's sorting was a simple alpha-numeric
sort. Git uses one that minimizes literal string comparisons though,
and thus behaves slightly differently sometimes.

Fixes #369
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously it was possible to generate trees which didn't
appear legit to git as gitpython's sorting was a simple alpha-numeric
sort. Git uses one that minimizes literal string comparisons though,
and thus behaves slightly differently sometimes.

Fixes #369
</pre>
</div>
</content>
</entry>
</feed>
