diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-11-14 11:36:51 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-11-14 11:38:57 +0900 |
commit | c1b86a232383748811c6faf17f364e63e10f7dd4 (patch) | |
tree | 8f28c8e8a922ffd4165f48a1988500070936bd39 /project.py | |
parent | 98ffba1401056e2d88d3f3898b6fbf5d7d3931a4 (diff) | |
download | git-repo-c1b86a232383748811c6faf17f364e63e10f7dd4.tar.gz |
Fix inconsistent indentation
The repo coding style is to indent at 2 characters, but there are
many places where this is not followed.
Enable pylint warning "W0311: Bad indentation" and make sure all
indentation is at multiples of 2 characters.
Change-Id: I68f0f64470789ce2429ab11104d15d380a63e6a8
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -585,14 +585,14 @@ class Project(object): | |||
585 | return self._userident_email | 585 | return self._userident_email |
586 | 586 | ||
587 | def _LoadUserIdentity(self): | 587 | def _LoadUserIdentity(self): |
588 | u = self.bare_git.var('GIT_COMMITTER_IDENT') | 588 | u = self.bare_git.var('GIT_COMMITTER_IDENT') |
589 | m = re.compile("^(.*) <([^>]*)> ").match(u) | 589 | m = re.compile("^(.*) <([^>]*)> ").match(u) |
590 | if m: | 590 | if m: |
591 | self._userident_name = m.group(1) | 591 | self._userident_name = m.group(1) |
592 | self._userident_email = m.group(2) | 592 | self._userident_email = m.group(2) |
593 | else: | 593 | else: |
594 | self._userident_name = '' | 594 | self._userident_name = '' |
595 | self._userident_email = '' | 595 | self._userident_email = '' |
596 | 596 | ||
597 | def GetRemote(self, name): | 597 | def GetRemote(self, name): |
598 | """Get the configuration for a single remote. | 598 | """Get the configuration for a single remote. |
@@ -1381,14 +1381,14 @@ class Project(object): | |||
1381 | tag_name = None | 1381 | tag_name = None |
1382 | 1382 | ||
1383 | def CheckForSha1(): | 1383 | def CheckForSha1(): |
1384 | try: | 1384 | try: |
1385 | # if revision (sha or tag) is not present then following function | 1385 | # if revision (sha or tag) is not present then following function |
1386 | # throws an error. | 1386 | # throws an error. |
1387 | self.bare_git.rev_parse('--verify', '%s^0' % self.revisionExpr) | 1387 | self.bare_git.rev_parse('--verify', '%s^0' % self.revisionExpr) |
1388 | return True | 1388 | return True |
1389 | except GitError: | 1389 | except GitError: |
1390 | # There is no such persistent revision. We have to fetch it. | 1390 | # There is no such persistent revision. We have to fetch it. |
1391 | return False | 1391 | return False |
1392 | 1392 | ||
1393 | if current_branch_only: | 1393 | if current_branch_only: |
1394 | if ID_RE.match(self.revisionExpr) is not None: | 1394 | if ID_RE.match(self.revisionExpr) is not None: |