Dulwich.io dulwich / 4b199bc
Merge tag 'upstream/0.16.3' into unstable Upstream version 0.16.3 Jelmer Vernooij 3 years ago
9 changed file(s) with 32 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
1010 - python: "3.4"
1111 env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
1212 - python: "3.5"
13 env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
14 - python: "3.5-dev"
15 env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
16 - python: "3.6"
17 env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
18 - python: "3.6-dev"
19 env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
20 - python: "3.7-dev"
1321 env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
1422 cache:
1523 directories:
0 0.16.3 2016-01-14
1
2 TEST FIXES
3
4 * Remove racy check that relies on clock time changing between writes.
5 (Jelmer Vernooij)
6
07 0.16.2 2016-01-14
18
29 IMPROVEMENTS
00 Metadata-Version: 1.1
11 Name: dulwich
2 Version: 0.16.2
2 Version: 0.16.3
33 Summary: Python Git Library
44 Home-page: https://www.dulwich.io/
55 Author: Jelmer Vernooij
2121
2222 """Python implementation of the Git file formats and protocols."""
2323
24 __version__ = (0, 16, 2)
24 __version__ = (0, 16, 3)
420420 :param target_path: Path to write to
421421 :param honor_filemode: An optional flag to honor core.filemode setting in
422422 config file, default is core.filemode=True, change executable bit
423 :return: stat object for the file
423424 """
424425 try:
425 oldstat = os.stat(target_path)
426 oldstat = os.lstat(target_path)
426427 except OSError as e:
427428 if e.errno == errno.ENOENT:
428429 oldstat = None
438439 if oldstat is not None and oldstat.st_size == len(contents):
439440 with open(target_path, 'rb') as f:
440441 if f.read() == contents:
441 return
442 return oldstat
442443
443444 with open(target_path, 'wb') as f:
444445 # Write out file
446447
447448 if honor_filemode:
448449 os.chmod(target_path, mode)
450
451 return os.lstat(target_path)
449452
450453
451454 INVALID_DOTNAMES = (b".git", b".", b"..", b"")
507510 # FIXME: Merge new index into working tree
508511 if S_ISGITLINK(entry.mode):
509512 os.mkdir(full_path)
513 st = os.lstat(full_path)
510514 else:
511515 obj = object_store[entry.sha]
512 build_file_from_blob(obj, entry.mode, full_path,
516 st = build_file_from_blob(obj, entry.mode, full_path,
513517 honor_filemode=honor_filemode)
514518 # Add file to index
515 st = os.lstat(full_path)
516519 if not honor_filemode or S_ISGITLINK(entry.mode):
517520 # we can not use tuple slicing to build a new tuple,
518521 # because on windows that will convert the times to
404404 build_index_from_tree(repo.path, repo.index_path(),
405405 repo.object_store, tree.id)
406406 sync()
407 self.assertNotEqual(mtime, os.stat(filea_path).st_mtime)
407 with open(filea_path, 'rb') as fh:
408 self.assertEqual(b'file a', fh.read())
408409
409410
410411 @skipIf(not getattr(os, 'symlink', None), 'Requires symlink support')
00 Metadata-Version: 1.1
11 Name: dulwich
2 Version: 0.16.2
2 Version: 0.16.3
33 Summary: Python Git Library
44 Home-page: https://www.dulwich.io/
55 Author: Jelmer Vernooij
88 from distutils.core import setup, Extension
99 from distutils.core import Distribution
1010
11 dulwich_version_string = '0.16.2'
11 dulwich_version_string = '0.16.3'
1212
1313 include_dirs = []
1414 # Windows MSVC support
00 [tox]
11 downloadcache = {toxworkdir}/cache/
2 envlist = py27, pypy, py27-noext, pypy-noext, py34, py34-noext, py35, py35-noext
2 envlist = py27, pypy, py27-noext, pypy-noext, py34, py34-noext, py35, py35-noext, py36, py36-noext
33
44 [testenv]
55
1818
1919 [testenv:py35-noext]
2020 commands = make check-noextensions
21
22 [testenv:py36-noext]
23 commands = make check-noextensions