opener: introduce tryread helper
This makes it easier to follow the common pattern "read a file or give
an empty string if it's missing".
revset: make matching() work on python 2.4
tuple.index() was apparently added to python 2.6:
http://bugs.python.org/
issue1696444
Also remove a trailing comma to make check-code.py happy.
revset: use list instead of tuple for compatibility with python before 2.6
'string elements'.split() instead of explicitly typing a list of strings is
used. This is done in other parts of Mercurial code, too.
archive: make it work with svn subrepos (
issue3308)
- _svncommand() in files() returns a tuple since
0ae98cd2a83f not a string.
- _svncommand() in filedata() returns a tuple not a string.
- "svn list" returns files but also directories.
- "svn list" is not recursive by default.
I have no idea what happens to svn:externals possibly embedded in the svn
subrepository.