<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/error.py, branch v2.12</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.12</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.12'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2021-01-21T19:41:52+00:00</updated>
<entry>
<title>sync: Added --use-superproject option and support for superproject.</title>
<updated>2021-01-21T19:41:52+00:00</updated>
<author>
<name>Raman Tenneti</name>
<email>rtenneti@google.com</email>
</author>
<published>2021-01-15T03:17:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=6a872c9daeec58dda61786e6f65591330709f6ad'/>
<id>urn:sha1:6a872c9daeec58dda61786e6f65591330709f6ad</id>
<content type='text'>
Added "--use-superporject" option to sync.py to fetch project SHAs from
superproject. If there are any missing projects in superprojects, it
prints the missing entries and exits. If there are no missing entries,
it will use SHAs from superproject to fetch the projects from git.

Tested the code with the following commands.

$ ./run_tests tests/test_manifest_xml.py
$ ./run_tests -v tests/test_git_superproject.py
$ ./run_tests -v

Tested the sync code by copying all the repo changes into my Android
AOSP checkout and adding &lt;superporject&gt; tag to default.xml. With
local modification to the code to print the status,

.../WORKING_DIRECTORY$ repo sync --use-superproject
repo: executing 'git clone' url: sso://android/platform/superproject
repo: executing 'git ls-tree'
Success: []

Bug: https://crbug.com/gerrit/13709
Tested-by: Raman Tenneti &lt;rtenneti@google.com&gt;
Change-Id: Id18665992428dd684c04b0e0b3a52f46316873a0
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/293822
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>strip python2-only coding:utf-8 &amp; print_function settings</title>
<updated>2021-01-06T18:53:05+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2021-01-01T13:42:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=784ccfc040dc8efa1a64d3c7d4070b66beb15d08'/>
<id>urn:sha1:784ccfc040dc8efa1a64d3c7d4070b66beb15d08</id>
<content type='text'>
We're committed to Python 3 at this point, so clean up boilerplate.

Bug: https://crbug.com/gerrit/10418
Change-Id: Ib1719ba2eb65c53b94881a1a1bf203ddfcaaafed
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/292382
Reviewed-by: Chris Mcdonald &lt;cjmcdonald@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>Fix blank line issues reported by flake8</title>
<updated>2020-02-12T06:36:40+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>dpursehouse@collab.net</email>
</author>
<published>2020-02-12T06:20:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=819827a42ddb364f98c3a1a7eae2536dc54bc4cc'/>
<id>urn:sha1:819827a42ddb364f98c3a1a7eae2536dc54bc4cc</id>
<content type='text'>
- E301 expected 1 blank line
- E302 expected 2 blank lines
- E303 too many blank lines
- E305 expected 2 blank lines after class or function definition
- E306 expected 1 blank line before a nested definition

Fixed automatically with autopep8:

  git ls-files | grep py$ | xargs autopep8 --in-place \
    --select E301,E302,E303,E305,E306

Manually fix issues in project.py caused by misuse of block comments.

Change-Id: Iee840fcaff48aae504ddac9c3e76d2acd484f6a9
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254599
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
</content>
</entry>
<entry>
<title>manifest: add basic path checks for &lt;copyfile&gt; &amp; &lt;linkfile&gt;</title>
<updated>2020-02-04T20:34:01+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2019-08-01T03:32:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=04122b7261319dae3abcaf0eb63af7ed937dc463'/>
<id>urn:sha1:04122b7261319dae3abcaf0eb63af7ed937dc463</id>
<content type='text'>
Reject paths in &lt;copyfile&gt; &amp; &lt;linkfile&gt; that point outside of their
respective scopes.  This validates paths while parsing the manifest
as this should be quick &amp; cheap: we don't access the filesystem as
this code runs before we've synced.

Bug: https://crbug.com/gerrit/11218
Change-Id: I8e17bb91f3f5b905a9d76391b29fbab4cb77aa58
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/232932
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: Michael Mortensen &lt;mmortensen@google.com&gt;
</content>
</entry>
<entry>
<title>set default file encoding to utf-8</title>
<updated>2019-06-13T14:30:52+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2019-06-13T06:30:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=f601376e13e6beca7ab8d660e00d6c14714f305f'/>
<id>urn:sha1:f601376e13e6beca7ab8d660e00d6c14714f305f</id>
<content type='text'>
There's no reason to support any other encoding in these files.
This only affects the files themselves and not streams they open.

Bug: https://crbug.com/gerrit/10418
Change-Id: I053cb40cd3666ce5c8a0689b9dd938f24ca765bf
</content>
</entry>
<entry>
<title>error: fix typos</title>
<updated>2015-06-04T00:21:16+00:00</updated>
<author>
<name>Anthony King</name>
<email>anthonydking@slimroms.net</email>
</author>
<published>2015-06-03T15:59:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=be4456cf249f29371eef41bed4e15f6d3c1a2cc0'/>
<id>urn:sha1:be4456cf249f29371eef41bed4e15f6d3c1a2cc0</id>
<content type='text'>
Change-Id: I09c47024ef54c360ea3c15c5d4f169e13444e412
</content>
</entry>
<entry>
<title>More verbose errors for NoManifestExceptions.</title>
<updated>2014-03-11T05:33:43+00:00</updated>
<author>
<name>Dan Sandler</name>
<email>dsandler@android.com</email>
</author>
<published>2014-03-09T17:20:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=53e902a19b0b80e07ac55966d13c5c84c5b0e8ce'/>
<id>urn:sha1:53e902a19b0b80e07ac55966d13c5c84c5b0e8ce</id>
<content type='text'>
The old "manifest required for this command -- please run
init" is replaced by a more helpful message that lists the
command repo was trying to execute (with arguments) as well
as the str() of the NoManifestException. For example:

&gt; error: in `sync`: [Errno 2] No such file or directory:
&gt; 	'path/to/.repo/manifests/.git/HEAD'
&gt; error: manifest missing or unreadable -- please run init

Other failure points in basic command parsing and dispatch
are more clearly explained in the same fashion.

Change-Id: I6212e5c648bc5d57e27145d55a5391ca565e4149
</content>
</entry>
<entry>
<title>Raise a NoManifestException when the manifest DNE</title>
<updated>2012-11-16T02:50:11+00:00</updated>
<author>
<name>Conley Owens</name>
<email>cco3@android.com</email>
</author>
<published>2012-11-16T01:33:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=75ee0570da09abb1d2bbefe0d25f0560727e6b71'/>
<id>urn:sha1:75ee0570da09abb1d2bbefe0d25f0560727e6b71</id>
<content type='text'>
When a command (eg, `repo forall`) expects the manifest project to
exist, but there is no manifest, an IOException gets raised.  This
change defines a new Exception type to be raised in these cases and
raises it when project.py fails to read the manifest.

Change-Id: Iac576c293a37f7d8f60cd4f6aa95b2c97f9e7957
</content>
</entry>
<entry>
<title>More coding style cleanup</title>
<updated>2012-10-22T03:30:14+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2012-10-11T07:44:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=5c6eeac8f0350fd6b14cf226ffcff655f1dd9582'/>
<id>urn:sha1:5c6eeac8f0350fd6b14cf226ffcff655f1dd9582</id>
<content type='text'>
Fixing more issues found with pylint.  Some that were supposed to
have been fixed in the previous sweep (Ie0db839e) but were missed:

C0321: More than one statement on a single line
W0622: Redefining built-in 'name'

And some more:

W0631: Using possibly undefined loop variable 'name'
W0223: Method 'name' is abstract in class 'name' but is not overridden
W0231: __init__ method from base class 'name' is not called

Change-Id: Ie119183708609d6279e973057a385fde864230c3
</content>
</entry>
<entry>
<title>Coding style cleanup</title>
<updated>2012-10-09T10:45:30+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2012-09-24T03:15:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=8a68ff96057ec58e524a3e41a2d8dca7b5d016bc'/>
<id>urn:sha1:8a68ff96057ec58e524a3e41a2d8dca7b5d016bc</id>
<content type='text'>
Fix the following issues reported by pylint:

C0321: More than one statement on a single line
W0622: Redefining built-in 'name'
W0612: Unused variable 'name'
W0613: Unused argument 'name'
W0102: Dangerous default value 'value' as argument
W0105: String statement has no effect

Also fixed a few cases of inconsistent indentation.

Change-Id: Ie0db839e7c57d576cff12d8c055fe87030d00744
</content>
</entry>
</feed>
