aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* cvstree.getentries: handle "ignored" files in cvsZac Medico2012-02-271-2/+8
| | | | | | | | | It's possible for files to be under version control even though they match our ignore filter, so don't ignore them if they are listed in the "Entries" file. Thanks to Mike Gilbert <floppym@gentoo.org> for reporting in this blog post: http://floppym.blogspot.com/2012/02/cvs-status-display-cvs-checkout-in-svn.html
* Migrate from codecs.open() to io.open().Zac Medico2011-07-101-3/+3
| | | | | | | | | | | | | | | | | The io.open() function is the same as the built-in open() function in python3, and its implementation is optimized in python-2.7 and later. In addition to the possible performance improvement, this also allows us to avoid any future compatibility issues with codecs.open() that may arise if it is delegated to the built-in open() function as discussed in PEP 400. The main caveat involved with io.open() is that TextIOWrapper.write() raises TypeError if given raw bytes, unlike the streams returned from codecs.open(). This is mainly an issue for python2 since literal strings are raw bytes. We handle this by wrapping TextIOWrapper.write() arguments with our _unicode_decode() function. Also, the atomic_ofstream class overrides the write() method in python2 so that it performs automatic coercion to unicode when necessary.
* Fix some typos.Arfrever Frehtes Taifersar Arahesis2011-05-151-3/+3
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* When integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of theZac Medico2009-12-211-1/+2
| | | | | | float st_mtime in order to avoid rounding *up* in some rare cases. svn path=/main/trunk/; revision=15125
* Remove some old debug code that should not have been committed.Zac Medico2009-12-211-21/+0
| | | | svn path=/main/trunk/; revision=15124
* Remove code that's been commented out.Zac Medico2009-09-221-18/+0
| | | | svn path=/main/trunk/; revision=14383
* Define long as int when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-211-0/+4
| | | | svn path=/main/trunk/; revision=14343
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-2/+2
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Add back a line which I erroneously removed when committing the patch forZac Medico2009-09-201-0/+1
| | | | | | | bug 203733. Thanks to Alexis Ballier <aballier@g.o> for reporting the related KeyError. svn path=/main/trunk/; revision=14297
* Support print() function with Python 2 in more files.Arfrever Frehtes Taifersar Arahesis2009-09-201-0/+2
| | | | svn path=/main/trunk/; revision=14295
* Update syntax of calls to print() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-16/+16
| | | | | | (2to3-3.1 -f print -nw ${FILES}) svn path=/main/trunk/; revision=14290
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-3/+3
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Bug #257660 - Handle directories that are unlisted in Entries, which is normalZac Medico2009-09-121-1/+5
| | | | | | | when checked out without -P. Thanks to Christian Ruppert <idl0r@gentoo.org> for this patch. svn path=/main/trunk/; revision=14222
* Use portage.os and _encodings where appropriate.Zac Medico2009-08-191-5/+14
| | | | svn path=/main/trunk/; revision=14095
* Py3k compatibility patch #1 by Ali Polatel <hawking@g.o>.Zac Medico2008-07-011-8/+8
| | | | | | Replace dict.has_key() calls with "in" and "not in" operators.. svn path=/main/trunk/; revision=10870
* Bug #190406 - Filter the myheaders list so that it doesn't include binary ↵Zac Medico2007-08-271-1/+18
| | | | | | blobs added to cvs with the -kb option. svn path=/main/trunk/; revision=7705
* Remove more unnecessary list generation.Zac Medico2007-06-211-10/+10
| | | | svn path=/main/trunk/; revision=6912
* Namespace sanitizing, step 1Marius Mauch2007-01-251-0/+295
svn path=/main/trunk/; revision=5778