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

Commit2af601d

Browse files
authored
Merge pull request#649 from OddBloke/hide_re_fetch_result
FetchInfo.re_fetch_result has no reason to be public
2 parents8ef53c5 +0ef12ae commit2af601d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/remote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class FetchInfo(object):
209209
NEW_TAG,NEW_HEAD,HEAD_UPTODATE,TAG_UPDATE,REJECTED,FORCED_UPDATE, \
210210
FAST_FORWARD,ERROR= [1<<xforxinrange(8)]
211211

212-
re_fetch_result=re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
212+
_re_fetch_result=re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
213213

214214
_flag_map= {'!':ERROR,
215215
'+':FORCED_UPDATE,
@@ -264,7 +264,7 @@ def _from_line(cls, repo, line, fetch_line):
264264
265265
fetch line is the corresponding line from FETCH_HEAD, like
266266
acb0fa8b94ef421ad60c8507b634759a472cd56c not-for-merge branch '0.1.7RC' of /tmp/tmpya0vairemote_repo"""
267-
match=cls.re_fetch_result.match(line)
267+
match=cls._re_fetch_result.match(line)
268268
ifmatchisNone:
269269
raiseValueError("Failed to parse line: %r"%line)
270270

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp