<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/git_refs.py, branch v1.13.11</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=v1.13.11</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=v1.13.11'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2019-11-12T03:44:39+00:00</updated>
<entry>
<title>use open context managers in more places</title>
<updated>2019-11-12T03:44:39+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2019-11-11T10:40:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=3164d40e2247d42537aef8e80fa7e048e14bec9f'/>
<id>urn:sha1:3164d40e2247d42537aef8e80fa7e048e14bec9f</id>
<content type='text'>
Use open() as a context manager to simplify the close logic and make
the code easier to read &amp; understand.  This is also more Pythonic.

Change-Id: I579d03cca86f99b2c6c6a1f557f6e5704e2515a7
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/244734
Reviewed-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
</content>
</entry>
<entry>
<title>rename local trace module</title>
<updated>2019-08-27T07:08:52+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2019-08-27T04:26:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=8a11f6f24cecac28e7cdb3f5d0d7c83aec0df017'/>
<id>urn:sha1:8a11f6f24cecac28e7cdb3f5d0d7c83aec0df017</id>
<content type='text'>
There is a standard Python "trace" module, so having a local trace.py
prevents us being able to import that.  Rename the module to avoid.

Change-Id: I23e29ec95a2204bb168a641323d05e76968d9b57
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/234832
Reviewed-by: David Pursehouse &lt;dpursehouse@collab.net&gt;
Tested-by: Mike Frysinger &lt;vapier@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>Add support for long paths</title>
<updated>2018-10-22T15:16:35+00:00</updated>
<author>
<name>Renaud Paquay</name>
<email>rpaquay@google.com</email>
</author>
<published>2018-09-27T17:46:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=bed8b62345e484b27e048e8f21280c5611f795df'/>
<id>urn:sha1:bed8b62345e484b27e048e8f21280c5611f795df</id>
<content type='text'>
* Add more file i/o wrappers in platform_utils to allow using
  long paths (length &gt; MAX_PATH) on Windows.

* Paths using the long path syntax ("\\?\" prefix) should never
  escape the platform_utils API surface area, so that this
  specific syntax is not visible to the rest of the repo code base.

* Forward many calls from os.xxx to platform_utils.xxx in various place
  to ensure long paths support, specifically when repo decides to delete
  obsolete directories.

* There are more places that need to be converted to support long paths,
  this commit is an initial effort to unblock a few common use cases.

* Also, fix remove function to handle directory symlinks

Change-Id: If82ccc408e516e96ff7260be25f8fd2fe3f9571a
</content>
</entry>
<entry>
<title>Handle Windows line endings when reading binary files</title>
<updated>2017-08-31T19:13:52+00:00</updated>
<author>
<name>Renaud Paquay</name>
<email>rpaquay@google.com</email>
</author>
<published>2016-11-01T20:48:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=2a4be948788dfe5ae9437b048fba229a96bbff2d'/>
<id>urn:sha1:2a4be948788dfe5ae9437b048fba229a96bbff2d</id>
<content type='text'>
Without this change, '.git\HEAD' files, for examples, are sometime
read incorrectly resulting in the current branch to be reset to
"master" when running a "repo init -b xxx" on an already initialized
repository.

Change-Id: I48c7ef85ff81626edf156914329a560e14252f2a
</content>
</entry>
<entry>
<title>When starting a branch, do not use a tag or change value for branch.merge</title>
<updated>2017-08-25T00:10:29+00:00</updated>
<author>
<name>Zac Livingston</name>
<email>zacl@codeaurora.org</email>
</author>
<published>2017-06-13T14:29:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=9ead97bb51f5b1ad1d0a45e0c5442f15e1e38fd7'/>
<id>urn:sha1:9ead97bb51f5b1ad1d0a45e0c5442f15e1e38fd7</id>
<content type='text'>
When starting a branch, branch.merge is set to project revision unless
the revision is a SHA1. In that case, branch.merge is set to dest_branch
if defined or manifest default revision otherwise. This special handling
allows repo upload to work when the project revision is a SHA1.

Extend the special handling to also happen when the project revision
is a tag value or a change value so that repo upload will work in those
case as well.

Change-Id: Iff81ece40e770cd02535e80dcb023564d42dcf47
</content>
</entry>
<entry>
<title>Fix some python3 encoding issues</title>
<updated>2013-11-21T06:03:22+00:00</updated>
<author>
<name>Chirayu Desai</name>
<email>cdesai@cyanogenmod.org</email>
</author>
<published>2013-11-19T13:16:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=0eb35cbe5096128e4a760aca6842ecdbea5baf1a'/>
<id>urn:sha1:0eb35cbe5096128e4a760aca6842ecdbea5baf1a</id>
<content type='text'>
* Add .decode('utf-8') where needed
* Add 'b' to `open` where needed, and remove where unnecessary

Change-Id: I0f03ecf9ed1a78e3b2f15f9469deb9aaab698657</content>
</entry>
<entry>
<title>Some fixes for supporting python3</title>
<updated>2013-04-18T16:05:49+00:00</updated>
<author>
<name>Chirayu Desai</name>
<email>cdesai@cyanogenmod.org</email>
</author>
<published>2013-03-01T13:44:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=217ea7d2747e3098009afe0b389fc4b45f55ea5a'/>
<id>urn:sha1:217ea7d2747e3098009afe0b389fc4b45f55ea5a</id>
<content type='text'>
* Fix imports.
* Use python3 syntax.
* Wrap map() calls with list().
* Use list() only wherever needed.
  (Thanks Conley!)
* Fix dictionary iteration methods
  (s/iteritems/items/).
* Make use of sorted() in appropriate places
* Use iterators directly in the loop.
* Don't use .keys() wherever it isn't needed.
* Use sys.maxsize instead of sys.maxint

TODO:
* Make repo work fully with python3. :)

Some of this was done by the '2to3' tool [1], by
applying the needed fixes in a way that doesn't
break compatibility with python2.

Links:
[1]: http://docs.python.org/2/library/2to3.html

Change-Id: Ibdf3bf9a530d716db905733cb9bfef83a48820f7
Signed-off-by: Chirayu Desai &lt;cdesai@cyanogenmod.org&gt;
</content>
</entry>
<entry>
<title>Even more coding style cleanup</title>
<updated>2012-10-30T01:28:20+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2012-10-25T03:23:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=1d947b30342163b723c96db563967323535fef45'/>
<id>urn:sha1:1d947b30342163b723c96db563967323535fef45</id>
<content type='text'>
Fixing some more pylint warnings:

W1401: Anomalous backslash in string
W0623: Redefining name 'name' from outer scope
W0702: No exception type(s) specified
E0102: name: function already defined line n

Change-Id: I5afcdb4771ce210390a79981937806e30900a93c
</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>
