Merge remote-tracking branch 'fourplusone/master'
This commit is contained in:
commit
b2a34bd901
26
appveyor.yml
26
appveyor.yml
@ -3,16 +3,25 @@ image: Visual Studio 2015
|
|||||||
configuration: Release
|
configuration: Release
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- ARCH: 32
|
- GENERATOR: 'Visual Studio 10'
|
||||||
GENERATOR: 'Visual Studio 11'
|
PYTHON: 'C:\Python27\python.exe'
|
||||||
|
- GENERATOR: 'Visual Studio 10 Win64'
|
||||||
|
PYTHON: 'C:\Python27-x64\python.exe'
|
||||||
|
- GENERATOR: 'Visual Studio 10'
|
||||||
|
PYTHON: 'C:\Python33\python.exe'
|
||||||
|
- GENERATOR: 'Visual Studio 10 Win64'
|
||||||
|
PYTHON: 'C:\Python33-x64\python.exe'
|
||||||
|
- GENERATOR: 'Visual Studio 10'
|
||||||
|
PYTHON: 'C:\Python34\python.exe'
|
||||||
|
- GENERATOR: 'Visual Studio 10 Win64'
|
||||||
|
PYTHON: 'C:\Python34-x64\python.exe'
|
||||||
|
- GENERATOR: 'Visual Studio 14'
|
||||||
PYTHON: 'C:\Python35\python.exe'
|
PYTHON: 'C:\Python35\python.exe'
|
||||||
PIP: 'C:\Python35\Scripts\pip.exe'
|
- GENERATOR: 'Visual Studio 14 Win64'
|
||||||
- ARCH: 64
|
|
||||||
GENERATOR: 'Visual Studio 11 Win64'
|
|
||||||
PYTHON: 'C:\Python35-x64\python.exe'
|
PYTHON: 'C:\Python35-x64\python.exe'
|
||||||
PIP: 'C:\Python35-x64\Scripts\pip.exe'
|
|
||||||
init:
|
init:
|
||||||
- cmd: '%PIP% install nose wheel'
|
- cmd: '%PYTHON% -m pip install -U nose wheel'
|
||||||
build_script:
|
build_script:
|
||||||
- cmd: |
|
- cmd: |
|
||||||
set LIBGIT2=%APPVEYOR_BUILD_FOLDER%\build\libgit2
|
set LIBGIT2=%APPVEYOR_BUILD_FOLDER%\build\libgit2
|
||||||
@ -24,8 +33,9 @@ build_script:
|
|||||||
cmake --build . --config Release --target install
|
cmake --build . --config Release --target install
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
IF "%GENERATOR%"=="Visual Studio 10 Win64" ( call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" )
|
||||||
|
|
||||||
"%PYTHON%" setup.py bdist_wheel
|
"%PYTHON%" setup.py bdist_wheel
|
||||||
"%PIP%" install .
|
|
||||||
test_script:
|
test_script:
|
||||||
- ps: |
|
- ps: |
|
||||||
cp build\Release\git2.dll .
|
cp build\Release\git2.dll .
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
# Import from the future
|
# Import from the future
|
||||||
from __future__ import absolute_import, unicode_literals
|
from __future__ import absolute_import, unicode_literals
|
||||||
|
|
||||||
|
import weakref
|
||||||
|
|
||||||
# Import from pygit2
|
# Import from pygit2
|
||||||
from _pygit2 import Oid, Tree, Diff
|
from _pygit2 import Oid, Tree, Diff
|
||||||
from .errors import check_error
|
from .errors import check_error
|
||||||
@ -305,10 +307,12 @@ class Index(object):
|
|||||||
self._conflicts = None
|
self._conflicts = None
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if self._conflicts is None:
|
if self._conflicts is None or self._conflicts() is None:
|
||||||
self._conflicts = ConflictCollection(self)
|
conflicts = ConflictCollection(self)
|
||||||
|
self._conflicts = weakref.ref(conflicts)
|
||||||
|
return conflicts
|
||||||
|
|
||||||
return self._conflicts
|
return self._conflicts()
|
||||||
|
|
||||||
|
|
||||||
class IndexEntry(object):
|
class IndexEntry(object):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user