Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8c6d952

Browse files
committed
Merge branch 'matt-jordan-remote_source'
2 parentse129846 +abd23a3 commit8c6d952

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎git/test/test_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def test_init_repo_object(self, rw_dir):
9494
# [11-test_init_repo_object]
9595
assertnow.commit.message!=past.commit.message
9696
# You can read objects directly through binary streams, no working tree required
97-
assert (now.commit.tree/'VERSION').data_stream.read().decode('ascii').startswith('0')
97+
assert (now.commit.tree/'VERSION').data_stream.read().decode('ascii').startswith('1')
9898

9999
# You can traverse trees as well to handle all contained files of a particular commit
100100
file_count=0

‎git/util.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ class RemoteProgress(object):
164164
Handler providing an interface to parse progress information emitted by git-push
165165
and git-fetch and to dispatch callbacks allowing subclasses to react to the progress.
166166
"""
167-
_num_op_codes=7
168-
BEGIN,END,COUNTING,COMPRESSING,WRITING,RECEIVING,RESOLVING= [1<<xforxinrange(_num_op_codes)]
167+
_num_op_codes=8
168+
BEGIN,END,COUNTING,COMPRESSING,WRITING,RECEIVING,RESOLVING,FINDING_SOURCES= \
169+
[1<<xforxinrange(_num_op_codes)]
169170
STAGE_MASK=BEGIN|END
170171
OP_MASK=~STAGE_MASK
171172

@@ -227,6 +228,8 @@ def _parse_progress_line(self, line):
227228
op_code|=self.RECEIVING
228229
elifop_name=='Resolving deltas':
229230
op_code|=self.RESOLVING
231+
elifop_name=='Finding sources':
232+
op_code|=self.FINDING_SOURCES
230233
else:
231234
# Note: On windows it can happen that partial lines are sent
232235
# Hence we get something like "CompreReceiving objects", which is

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp