commit - 4ab8972b5a682caf7e5ec2e76689ba4636734998
commit + c50a72c1e05831f553fce4295f292eed8cd71ac8
blob - 6a6a7f301d1936d58ecaceb85b02dbc2ff2c8e7a
blob + e0b5eca6222413b54d8849c30f61634c33b4533a
--- NEWS
+++ NEWS
probing the filesystem for trustable permissions.
(Koen Martens)
- * Fix ``porcelain.reset`` to respect the comittish argument.
+ * Fix ``porcelain.reset`` to respect the committish argument.
(Koen Martens)
* Fix dulwich.porcelain.ls_remote() on Python 3.
* Provide strnlen() on mingw32 which doesn't have it. (Hans Kolek)
- * Set bare=true in the configuratin for bare repositories. (Dirk Neumann)
+ * Set bare=true in the configuration for bare repositories. (Dirk Neumann)
FEATURES
FEATURES
- * Move named file initilization to BaseRepo. (Dave Borowitz)
+ * Move named file initialization to BaseRepo. (Dave Borowitz)
* Add logging utilities and git/HTTP server logging. (Dave Borowitz)
* Fix RefsContainer.add_if_new to support dangling symrefs.
(Dave Borowitz)
- * Non-existant index files in non-bare repositories are now treated as
+ * Non-existent index files in non-bare repositories are now treated as
empty. (Dave Borowitz)
* Always update ShaFile.id when the contents of the object get changed.
blob - 7fefafc226806b050a4e21e0be999dd10781f958
blob + 4976b90a36c6fc3693937aa1aad00137c503c98b
--- README.swift.rst
+++ README.swift.rst
Note that for now we use the same tenant to perform the requests
-against Swift. Therefor there is only one Swift account used
+against Swift. Therefore there is only one Swift account used
for storing repositories. Each repository will be contained in
a Swift container.
a regular repository.
Note the daemon subcommands starts a Git server listening for the
-Git protocol. Therefor there is no authentication or encryption
+Git protocol. Therefore there is no authentication or encryption
at all between the cGIT client and the GIT server (Dulwich).
Note on the .info file for pack object
blob - 0dd0d7e7a9dd117df456cdc48188f39e9425047e
blob + 9f1ea60edd3fb5e5450615dff45b2e77e3a65416
--- docs/tutorial/encoding.txt
+++ docs/tutorial/encoding.txt
.. _C git: https://github.com/git/git/blob/master/Documentation/i18n.txt
The library should be able to read *all* existing git repositories,
-irregardless of what encoding they use. This is the main reason why Dulwich
+regardless of what encoding they use. This is the main reason why Dulwich
does not convert paths to unicode strings.
A further consideration is that converting back and forth to unicode
blob - 5f4baf95e0c3830b82bec31d3ad82dbe0dbfd537
blob + 57677d3241bb5f2bb8fe56a7504438610bacccdf
--- dulwich/archive.py
+++ dulwich/archive.py
if format == "gz":
# Manually correct the gzip header file modification time so that
# archives created from the same Git tree are always identical.
- # The gzip header file modification time is not currenctly
+ # The gzip header file modification time is not currently
# accessible from the tarfile API, see:
# https://bugs.python.org/issue31526
buf.seek(0)
blob - 770b09cf59c2dde0ff70a8d1d119233f78dfe89e
blob + 38b805f0c7eaa07e074c0fa7683442377eeab1a2
--- dulwich/cli.py
+++ dulwich/cli.py
"-r",
"--recursive",
action="store_true",
- help="Recusively list tree contents.",
+ help="Recursively list tree contents.",
)
parser.add_option("--name-only", action="store_true", help="Only display name.")
options, args = parser.parse_args(args)
blob - b8da16cb899b73e1bc9dee14749a680b30e226ad
blob + c413ebbbe6dd4bd9cfcfa7b25c8e972f8245facf
--- dulwich/client.py
+++ dulwich/client.py
kwargs["password"] = self.password
if self.key_filename is not None:
kwargs["key_filename"] = self.key_filename
- # GIT_SSH_COMMAND takes precendence over GIT_SSH
+ # GIT_SSH_COMMAND takes precedence over GIT_SSH
if self.ssh_command is not None:
kwargs["ssh_command"] = self.ssh_command
con = self.ssh_vendor.run_command(
blob - b5a2713fc2ab4723b11ec0778d1f4db5a8249460
blob + cd475edb8c7a87f47dfce9825d2cfbefa4e97551
--- dulwich/config.py
+++ dulwich/config.py
from dulwich.file import GitFile
-SENTINAL = object()
+SENTINEL = object()
def lower_key(key):
def __getitem__(self, item):
return self._keyed[lower_key(item)]
- def get(self, key, default=SENTINAL):
+ def get(self, key, default=SENTINEL):
try:
return self[key]
except KeyError:
pass
- if default is SENTINAL:
+ if default is SENTINEL:
return type(self)()
return default
if lower_key(actual) == key:
yield value
- def setdefault(self, key, default=SENTINAL):
+ def setdefault(self, key, default=SENTINEL):
try:
return self[key]
except KeyError:
blob - 83b1638922dbd682089d554cbf247988cdb75c92
blob + 7a552ed4aedc218db9ab27c6ce475a4d5047e97a
--- dulwich/contrib/diffstat.py
+++ dulwich/contrib/diffstat.py
def main():
argv = sys.argv
- # allow diffstat.py to also be used from the comand line
+ # allow diffstat.py to also be used from the command line
if len(sys.argv) > 1:
diffpath = argv[1]
data = b""
# if no path argument to a diff file is passed in, run
# a self test. The test case includes tricky things like
- # a diff of diff, binary files, renames with futher changes
+ # a diff of diff, binary files, renames with further changes
# added files and removed files.
# All extracted from Sigil-Ebook/Sigil's github repo with
# full permission to use under this license.
blob - 33dc60fcb9d411f4a5f5eeb3ebde3eb3ecfbe9be
blob + 5b2734e7ec053960d6c3ceb6f7280d916d7de4c5
--- dulwich/contrib/release_robot.py
+++ dulwich/contrib/release_robot.py
__version__ = get_current_version()
This example assumes the tags have a leading "v" like "v0.3", and that the
-``.git`` folder is in a project folder that containts the package folder.
+``.git`` folder is in a project folder that contains the package folder.
EG::
blob - 3d76acbe73c57e9c0bbbf1bba0e533410807ccaa
blob + 80ced06cbc13f3dffe04498deecf5ab3b841babe
--- dulwich/contrib/swift.py
+++ dulwich/contrib/swift.py
"""A SwiftPackReader that mimic read and sync method
The reader allows to read a specified amount of bytes from
- a given offset of a Swift object. A read offset is kept internaly.
+ a given offset of a Swift object. A read offset is kept internally.
The reader will read from Swift a specified amount of data to complete
- its internal buffer. chunk_length specifiy the amount of data
+ its internal buffer. chunk_length specify the amount of data
to read from Swift.
"""
blob - 33496543afbf40e7153e151911ee656ebfb30b8f
blob + 712b4f6cdc8b7335a9843183ca47f47084ef94d8
--- dulwich/contrib/test_paramiko_vendor.py
+++ dulwich/contrib/test_paramiko_vendor.py
def setUp(self):
import paramiko.transport
- # reenable server functionality for tests
+ # re-enable server functionality for tests
if hasattr(paramiko.transport, "SERVER_DISABLED_BY_GENTOO"):
paramiko.transport.SERVER_DISABLED_BY_GENTOO = False
blob - 5cb540a9a23eadb6270b916c36b38c62a848db42
blob + 461f75f80d1fda5589fcb49bcce975b91e6c4ae3
--- dulwich/contrib/test_swift_smoke.py
+++ dulwich/contrib/test_swift_smoke.py
swift.SwiftRepo.init_bare(self.scon, self.conf)
tcp_client = client.TCPGitClient(self.server_address, port=self.port)
remote_refs = tcp_client.fetch(self.fakerepo, local_repo)
- # The remote repo is empty (no refs retreived)
+ # The remote repo is empty (no refs retrieved)
self.assertEqual(remote_refs, None)
def test_push_commit(self):
blob - b9d24d359b26561781c0cfd1fff1f98ad2fc2c14
blob + a948cc91862d9784e4f957c71c6a6687fe7219dc
--- dulwich/graph.py
+++ dulwich/graph.py
cstates[pcmt] = flags
wlst.append(pcmt)
- # walk final candidates removing any superceded by _DNC by later lower LCAs
+ # walk final candidates removing any superseded by _DNC by later lower LCAs
results = []
for cmt in cands:
if not (cstates[cmt] & _DNC):
blob - 309d5cf95a999b0257d02ad7c3b4bd4b0848c291
blob + 3066f42d616f148f12fda51fb08f26c90a410ede
--- dulwich/index.py
+++ dulwich/index.py
This returns an index value for files, symlinks
and tree references. for directories and
- non-existant files it returns None
+ non-existent files it returns None
Args:
path: Path to create an index entry for
def iter_fresh_objects(paths, root_path, include_deleted=False, object_store=None):
- """Iterate over versions of objecs on disk referenced by index.
+ """Iterate over versions of objects on disk referenced by index.
Args:
root_path: Root path to access from
blob - 82ab5bef310451e75665c1da2ce0ce6ff2b9b21e
blob + 8c92a878cb540f6095fc6bef3e09c06ec6614d3b
--- dulwich/patch.py
+++ dulwich/patch.py
diff_binary: Whether to diff files even if they
are considered binary files by is_binary().
- Note: the tuple elements should be None for nonexistant files
+ Note: the tuple elements should be None for nonexistent files
"""
(old_path, old_mode, old_id) = old_file
(new_path, new_mode, new_id) = new_file
blob - 926babff6efa59f964ad3881c8e3aff309284b3c
blob + f3cc5947a9924148753d6e4554f2ae7736582e9c
--- dulwich/repo.py
+++ dulwich/repo.py
if not SetFileAttributesW(path, FILE_ATTRIBUTE_HIDDEN):
pass # Could raise or log `ctypes.WinError()` here
- # Could implement other platform specific filesytem hiding here
+ # Could implement other platform specific filesystem hiding here
class ParentsProvider(object):
raise NotImplementedError(self._put_named_file)
def _del_named_file(self, path):
- """Delete a file in the contrl directory with the given name."""
+ """Delete a file in the control directory with the given name."""
raise NotImplementedError(self._del_named_file)
def open_index(self):
class Repo(BaseRepo):
"""A git repository backed by local disk.
- To open an existing repository, call the contructor with
+ To open an existing repository, call the constructor with
the path of the repository.
To create a new repository, use the Repo.init class method.
tree_entry = self.object_store[tree_id].lookup_path(
self.object_store.__getitem__, tree_path)
except KeyError:
- # if tree_entry didnt exist, this file was being added, so
+ # if tree_entry didn't exist, this file was being added, so
# remove index entry
try:
del index[tree_path]
blob - 1c5b03526d737831f8872f51a0ceb8c74793d356
blob + ab5f3ec7f9931bad0bd426620502fce33dca91d3
--- dulwich/server.py
+++ dulwich/server.py
client_refs = []
ref = self.proto.read_pkt_line()
- # if ref is none then client doesnt want to send us anything..
+ # if ref is none then client doesn't want to send us anything..
if ref is None:
return
blob - 1309ecf8cfb5dd6c274538d8b5c94b1fb54b04b2
blob + c1e093590e4f93b4ec4b8c329f5c256f9c6db414
--- dulwich/tests/__init__.py
+++ dulwich/tests/__init__.py
def setUp(self):
super(TestCase, self).setUp()
self._old_home = os.environ.get("HOME")
- os.environ["HOME"] = "/nonexistant"
+ os.environ["HOME"] = "/nonexistent"
os.environ["GIT_CONFIG_NOSYSTEM"] = "1"
def tearDown(self):
blob - 2f9cad482119221abd0c24c55b4ca10bc7b7726b
blob + 9882ba99d1f46bb6170a44b80843264a991330cb
--- dulwich/tests/compat/test_client.py
+++ dulwich/tests/compat/test_client.py
-# test_client.py -- Compatibilty tests for git client.
+# test_client.py -- Compatibility tests for git client.
# Copyright (C) 2010 Google, Inc.
#
# Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
# License, Version 2.0.
#
-"""Compatibilty tests between the Dulwich client and the cgit server."""
+"""Compatibility tests between the Dulwich client and the cgit server."""
import copy
from io import BytesIO
blob - 08036aa9de6ae01bd1554b0010537136d41bc09f
blob + 71a48fd691bb7dfd344632f49253cc2f1caee162
--- dulwich/tests/compat/utils.py
+++ dulwich/tests/compat/utils.py
Args:
required_version: A tuple of ints of the form (major, minor, point,
- sub-point); ommitted components default to 0.
+ sub-point); omitted components default to 0.
git_path: Path to the git executable; defaults to the version in
the system path.
Raises:
blob - e5d0dbb4a9f21db19fa8eb1494ccf6bc0f4358b9
blob + 3078b6e638646abf6b8a5f739aa6d380b89f3cb2
--- dulwich/tests/test_config.py
+++ dulwich/tests/test_config.py
def test_default_backends(self):
StackedConfig.default_backends()
- @skipIf(sys.platform != "win32", "Windows specfic config location.")
+ @skipIf(sys.platform != "win32", "Windows specific config location.")
def test_windows_config_from_path(self):
from dulwich.config import get_win_system_paths
paths,
)
- @skipIf(sys.platform != "win32", "Windows specfic config location.")
+ @skipIf(sys.platform != "win32", "Windows specific config location.")
def test_windows_config_from_reg(self):
import winreg
blob - c5868953bb5193a9aafb12a6d72a65c2f85865a5
blob + 2606aea97affdc0c3080d0cf82b96489da5f485b
--- dulwich/tests/test_greenthreads.py
+++ dulwich/tests/test_greenthreads.py
finder = GreenThreadsMissingObjectFinder(
self.store, wants[0 : int(self.cmt_amount / 2)], wants
)
- # sha_done will contains commit id and sha of blob refered in tree
+ # sha_done will contains commit id and sha of blob referred in tree
self.assertEqual(len(finder.sha_done), (self.cmt_amount / 2) * 2)
self.assertEqual(len(finder.objects_to_send), self.cmt_amount / 2)
blob - 33d6ee89596d0b16eedd60843f5234d234dbb7a0
blob + c3749a8e1d9362b5562f92d93bc7a3de1a00c5f6
--- dulwich/tests/test_porcelain.py
+++ dulwich/tests/test_porcelain.py
with tempfile.TemporaryDirectory() as parent:
target_path = os.path.join(parent, "target")
self.assertRaises(
- Exception, porcelain.clone, "/nonexistant/repo", target_path
+ Exception, porcelain.clone, "/nonexistent/repo", target_path
)
self.assertFalse(os.path.exists(target_path))
blob - 11ed944005a3036f9ac42657e840bb5d1ffd05fd
blob + c381f42b0df713b8fdc8f87fce1f8808467913eb
--- dulwich/tests/test_refs.py
+++ dulwich/tests/test_refs.py
self.assertEqual(nines, self._refs[b"refs/heads/master"])
self.assertTrue(
- self._refs.set_if_equals(b"refs/heads/nonexistant", ZERO_SHA, nines)
+ self._refs.set_if_equals(b"refs/heads/nonexistent", ZERO_SHA, nines)
)
- self.assertEqual(nines, self._refs[b"refs/heads/nonexistant"])
+ self.assertEqual(nines, self._refs[b"refs/heads/nonexistent"])
def test_add_if_new(self):
nines = b"9" * 40
b"42d06bd4b77fed026b154d16493e5deab78f02ec",
self._refs.read_ref(b"refs/heads/packed"),
)
- self.assertEqual(None, self._refs.read_ref(b"nonexistant"))
+ self.assertEqual(None, self._refs.read_ref(b"nonexistent"))
def test_read_loose_ref(self):
self._refs[b"refs/heads/foo"] = b"df6800012397fb85c56e7418dd4eb9405dee075c"