-
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1127 from jelmer/pack-windows
Factor out common _complete_thin_pack
- Loading branch information
Showing
5 changed files
with
37 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,8 @@ Most of the tests in this file require a Dulwich server, so let's start one: | |
>>> cid = repo.do_commit(b"message", committer=b"Jelmer <[email protected]>") | ||
>>> backend = DictBackend({b'/': repo}) | ||
>>> dul_server = TCPGitServer(backend, b'localhost', 0) | ||
>>> threading.Thread(target=dul_server.serve).start() | ||
>>> server_thread = threading.Thread(target=dul_server.serve) | ||
>>> server_thread.start() | ||
>>> server_address, server_port=dul_server.socket.getsockname() | ||
|
||
Remote repositories | ||
|
@@ -82,6 +83,7 @@ importing the received pack file into the local repository:: | |
>>> from dulwich.repo import Repo | ||
>>> local = Repo.init("local", mkdir=True) | ||
>>> remote_refs = client.fetch(b"/", local) | ||
>>> local.close() | ||
|
||
Let's shut down the server now that all tests have been run:: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters