<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/git_refs.py, branch v1.12.28</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=v1.12.28</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=v1.12.28'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2013-11-21T06:03:22+00:00</updated>
<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>
<entry>
<title>Remove unused imports</title>
<updated>2012-08-23T10:15:26+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2012-08-22T01:46:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=e15c65abc25cd1d5d77ec6815a3c011b9f57ddac'/>
<id>urn:sha1:e15c65abc25cd1d5d77ec6815a3c011b9f57ddac</id>
<content type='text'>
There are several imports that are not used.  Remove them.

Change-Id: I2ac3be66827bd68d3faedcef7d6bbf30ea01d3f2
</content>
</entry>
<entry>
<title>Improve error handling when reading loose refs</title>
<updated>2011-11-29T22:43:04+00:00</updated>
<author>
<name>Shawn O. Pearce</name>
<email>sop@google.com</email>
</author>
<published>2011-11-29T20:32:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=cc14fa9820a4c9fb7a403bbe1264856c6437bf96'/>
<id>urn:sha1:cc14fa9820a4c9fb7a403bbe1264856c6437bf96</id>
<content type='text'>
When repo is trying to figure out branches the repository has by
traversing refs/heads, add exception handling for readline.

Change-Id: If3b2a3720c6496f52f629aa9a2539f186d6ec882
</content>
</entry>
<entry>
<title>Make usage of open safer by setting binary mode and closing fds</title>
<updated>2009-04-18T21:48:03+00:00</updated>
<author>
<name>Shawn O. Pearce</name>
<email>sop@google.com</email>
</author>
<published>2009-04-18T21:48:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=76ca9f8145f367f83df19981da4dd934fdda471b'/>
<id>urn:sha1:76ca9f8145f367f83df19981da4dd934fdda471b</id>
<content type='text'>
Signed-off-by: Shawn O. Pearce &lt;sop@google.com&gt;
</content>
</entry>
<entry>
<title>Fix `repo --trace` to show ref and config loads</title>
<updated>2009-04-18T16:54:51+00:00</updated>
<author>
<name>Shawn O. Pearce</name>
<email>sop@google.com</email>
</author>
<published>2009-04-18T16:54:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=ad3193a0e587073dee0edef46bdf24f6c6e09779'/>
<id>urn:sha1:ad3193a0e587073dee0edef46bdf24f6c6e09779</id>
<content type='text'>
The value of the varible TRACE was copied during the import, which
happens before the --trace option can be processed.  So instead we
now use a function to determine if the value is set, as the function
can be safely copied early during import.

Signed-off-by: Shawn O. Pearce &lt;sop@google.com&gt;
</content>
</entry>
<entry>
<title>Enable tracing of ref scans and config unpickling</title>
<updated>2009-04-18T04:03:45+00:00</updated>
<author>
<name>Shawn O. Pearce</name>
<email>sop@google.com</email>
</author>
<published>2009-04-18T03:44:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=b81ac9e65444d0f54d2b6dd24d20b74945c9a36a'/>
<id>urn:sha1:b81ac9e65444d0f54d2b6dd24d20b74945c9a36a</id>
<content type='text'>
These are not as expensive as spawning a git command, but they are
not free either.  We want to keep track of how many times we wind
up calling them on any particular operation.

Signed-off-by: Shawn O. Pearce &lt;sop@google.com&gt;
</content>
</entry>
<entry>
<title>Avoid unnecessary git symbolic-ref calls during repo sync</title>
<updated>2009-04-18T04:03:45+00:00</updated>
<author>
<name>Shawn O. Pearce</name>
<email>sop@google.com</email>
</author>
<published>2009-04-18T03:32:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=0f3dd233ecaf8d145ddb33a5ef1b8d3d71ade476'/>
<id>urn:sha1:0f3dd233ecaf8d145ddb33a5ef1b8d3d71ade476</id>
<content type='text'>
If the m/BRANCH ref is already pointing at the value set in the
manifest there is no reason to set it again.  Leave it alone,
thus saving a full fork+exec call.

Signed-off-by: Shawn O. Pearce &lt;sop@google.com&gt;
</content>
</entry>
</feed>
