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

Commit27b4efe

Browse files
committed
Added assertion to better detect diff issues.
Helps fixinggitpython-developers#35Also, the production status was changed to 'stable', which shouldhave been done much earlier.
1 parentf7b7eb6 commit27b4efe

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

‎git/diff.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ def _index_from_patch_format(cls, repo, stream):
302302
diff_header=cls.re_header.match
303303
fordiffin ('\n'+text).split('\ndiff --git')[1:]:
304304
header=diff_header(diff)
305+
assertheaderisnotNone,"Failed to parse diff header from "%diff
305306

306307
a_path,b_path,similarity_index,rename_from,rename_to, \
307308
old_mode,new_mode,new_file_mode,deleted_file_mode, \

‎git/remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def exists(self):
404404
self.config_reader.get('url')
405405
returnTrue
406406
exceptcp.NoOptionError:
407-
# we have the section at least ...
407+
# we have the section at least ...
408408
returnTrue
409409
exceptcp.NoSectionError:
410410
returnFalse

‎git/test/test_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_diff_interface(self):
8080
forotherin (None,commit.Index,commit.parents[0]):
8181
forpathsin (None,"CHANGES", ("CHANGES","lib")):
8282
forcreate_patchinrange(2):
83-
diff_index=diff_item.diff(other,paths,create_patch)
83+
diff_index=diff_item.diff(other=other,paths=paths,create_patch=create_patch)
8484
assertisinstance(diff_index,DiffIndex)
8585

8686
ifdiff_index:

‎setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ def _stamp_version(filename):
9797
# "Development Status :: 1 - Planning",
9898
# "Development Status :: 2 - Pre-Alpha",
9999
# "Development Status :: 3 - Alpha",
100-
"Development Status :: 4 - Beta",
101-
#"Development Status :: 5 - Production/Stable",
100+
#"Development Status :: 4 - Beta",
101+
"Development Status :: 5 - Production/Stable",
102102
# "Development Status :: 6 - Mature",
103103
# "Development Status :: 7 - Inactive",
104104
"Environment :: Console",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp