diff options
| author | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-10-15 10:48:40 +0900 |
|---|---|---|
| committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-10-15 10:48:40 +0900 |
| commit | 37128b6f709410763f85d112a1a3e6f9e42e1338 (patch) | |
| tree | b87eceeed61ef08a77e6ded4989ad46cff2ce0b0 | |
| parent | 143b4cc992b3602b56f1904c4a030a933b01ccc1 (diff) | |
| download | git-repo-37128b6f709410763f85d112a1a3e6f9e42e1338.tar.gz | |
Fix indentationv1.12.5
git-repo uses 2 space indentation. A couple of recent changes
introduced 4 space indentation in some modules.
Change-Id: Ia4250157c1824c1b5e7d555068c4608f995be9da
| -rw-r--r-- | manifest_xml.py | 7 | ||||
| -rw-r--r-- | subcmds/upload.py | 14 |
2 files changed, 10 insertions, 11 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index c5e2e345..b3ab098d 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
| @@ -98,7 +98,7 @@ class _XmlRemote(object): | |||
| 98 | url = self.resolvedFetchUrl.rstrip('/') + '/' + projectName | 98 | url = self.resolvedFetchUrl.rstrip('/') + '/' + projectName |
| 99 | remoteName = self.name | 99 | remoteName = self.name |
| 100 | if self.remoteAlias: | 100 | if self.remoteAlias: |
| 101 | remoteName = self.remoteAlias | 101 | remoteName = self.remoteAlias |
| 102 | return RemoteSpec(remoteName, url, self.reviewUrl) | 102 | return RemoteSpec(remoteName, url, self.reviewUrl) |
| 103 | 103 | ||
| 104 | class XmlManifest(object): | 104 | class XmlManifest(object): |
| @@ -437,9 +437,8 @@ class XmlManifest(object): | |||
| 437 | if self._default is None: | 437 | if self._default is None: |
| 438 | self._default = new_default | 438 | self._default = new_default |
| 439 | elif new_default != self._default: | 439 | elif new_default != self._default: |
| 440 | raise ManifestParseError( | 440 | raise ManifestParseError('duplicate default in %s' % |
| 441 | 'duplicate default in %s' % | 441 | (self.manifestFile)) |
| 442 | (self.manifestFile)) | ||
| 443 | 442 | ||
| 444 | if self._default is None: | 443 | if self._default is None: |
| 445 | self._default = _Default() | 444 | self._default = _Default() |
diff --git a/subcmds/upload.py b/subcmds/upload.py index 8d801e08..7d460ddf 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
| @@ -351,13 +351,13 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
| 351 | merge_branch = self._GetMergeBranch(branch.project) | 351 | merge_branch = self._GetMergeBranch(branch.project) |
| 352 | full_dest = 'refs/heads/%s' % destination | 352 | full_dest = 'refs/heads/%s' % destination |
| 353 | if not opt.dest_branch and merge_branch and merge_branch != full_dest: | 353 | if not opt.dest_branch and merge_branch and merge_branch != full_dest: |
| 354 | print('merge branch %s does not match destination branch %s' | 354 | print('merge branch %s does not match destination branch %s' |
| 355 | % (merge_branch, full_dest)) | 355 | % (merge_branch, full_dest)) |
| 356 | print('skipping upload.') | 356 | print('skipping upload.') |
| 357 | print('Please use `--destination %s` if this is intentional' | 357 | print('Please use `--destination %s` if this is intentional' |
| 358 | % destination) | 358 | % destination) |
| 359 | branch.uploaded = False | 359 | branch.uploaded = False |
| 360 | continue | 360 | continue |
| 361 | 361 | ||
| 362 | branch.UploadForReview(people, auto_topic=opt.auto_topic, draft=opt.draft, dest_branch=destination) | 362 | branch.UploadForReview(people, auto_topic=opt.auto_topic, draft=opt.draft, dest_branch=destination) |
| 363 | branch.uploaded = True | 363 | branch.uploaded = True |
