Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2554)

Side by Side Diff: appengine/findit/util_scripts/git_checkout/local_git_parsers.py

Issue 2538373003: [Culprit-Finder] Merge lib/ to libs/. (Closed)
Patch Set: . Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Parse output of local git commands into Gitile response format.""" 5 """Parse output of local git commands into Gitile response format."""
6 6
7 from collections import namedtuple 7 from collections import namedtuple
8 from collections import defaultdict 8 from collections import defaultdict
9 from datetime import datetime 9 from datetime import datetime
10 import re 10 import re
11 11
12 from lib import time_util 12 from libs import time_util
13 from lib.gitiles import commit_util 13 from libs.gitiles import commit_util
14 from lib.gitiles.blame import Blame 14 from libs.gitiles.blame import Blame
15 from lib.gitiles.blame import Region 15 from libs.gitiles.blame import Region
16 from lib.gitiles.change_log import ChangeLog 16 from libs.gitiles.change_log import ChangeLog
17 from lib.gitiles.change_log import FileChangeInfo 17 from libs.gitiles.change_log import FileChangeInfo
18 from lib.gitiles.diff import ChangeType 18 from libs.gitiles.diff import ChangeType
19 19
20 REGION_START_COUNT_PATTERN = re.compile(r'^(\S+) \d+ (\d+) (\d+)') 20 REGION_START_COUNT_PATTERN = re.compile(r'^(\S+) \d+ (\d+) (\d+)')
21 21
22 DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S' 22 DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S'
23 23
24 AUTHOR_NAME_PATTERN = re.compile(r'^author (.*)') 24 AUTHOR_NAME_PATTERN = re.compile(r'^author (.*)')
25 AUTHOR_MAIL_PATTERN = re.compile(r'^author-mail (\S+)') 25 AUTHOR_MAIL_PATTERN = re.compile(r'^author-mail (\S+)')
26 AUTHOR_TIME_PATTERN = re.compile(r'^author-time (.+)') 26 AUTHOR_TIME_PATTERN = re.compile(r'^author-time (.+)')
27 AUTHOR_TIMEZONE_PATTERN = re.compile(r'^author-tz (.*)') 27 AUTHOR_TIMEZONE_PATTERN = re.compile(r'^author-tz (.*)')
28 28
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 + 'printPreviewSummaryFormatShort', 387 + 'printPreviewSummaryFormatShort',
388 + '<b>' + numSheets.toLocaleString() + '</b>', 388 + '<b>' + numSheets.toLocaleString() + '</b>',
389 + '<b>' + summaryLabel + '</b>'); 389 + '<b>' + summaryLabel + '</b>');
390 label = loadTimeData.getStringF('printPreviewSummaryFormatShort', 390 label = loadTimeData.getStringF('printPreviewSummaryFormatShort',
391 - numSheets, summaryLabel); 391 - numSheets, summaryLabel);
392 + numSheets.toLocaleString(), 392 + numSheets.toLocaleString(),
393 + summaryLabel); 393 + summaryLabel);
394 } 394 }
395 """ 395 """
396 return output if output else None 396 return output if output else None
OLDNEW
« no previous file with comments | « appengine/findit/model/suspected_cl_confidence.py ('k') | appengine/findit/util_scripts/git_checkout/local_git_repository.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698