jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added projects: pywikibot-core, pywikibot-compat.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
SVN format 29 was supported last time I used an SVN checkout (Aug 2014 for 9a2d001c and
7a6dbf4d)
Now SVN on my Fedora box fails with
```[workarea] is too old (format 29) to work with client version '1.8.11
(r1643975)' (expects format 31). You need to upgrade the working copy first.```
After upgrading the SVN, the following error occurs in both core and compat (slightly
different backtrace, failing much earlier):
```
core$ python pwb.py shell
WARNING: ...pywikibot/tools/ip.py:37: ImportWarning: ipaddress backport is defective;
patching.
Welcome to the Pywikibot interactive shell!
>> import pywikibot
>> pywikibot.getversiondict()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File ".../pywikibot/tools/__init__.py", line 1158, in __getattr__
return getattr(self._module, attr)
AttributeError: 'module' object has no attribute 'getversiondict'
>> pywikibot.version.getversiondict()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File ".../pywikibot/version.py", line 64, in getversiondict
(tag, rev, date, hsh) = getversion_svn(_program_dir)
File ".../pywikibot/version.py", line 171, in getversion_svn
tag, rev, date = svn_rev_info(_program_dir)
File ".../pywikibot/version.py", line 102, in svn_rev_info
entries = open(os.path.join(_program_dir, '.svn/entries'))
IOError: [Errno 2] No such file or directory: '.../.svn/entries'
```
```
compat$ python pwb.py shell
setting UA
Traceback (most recent call last):
File "pwb.py", line 50, in <module>
import userlib
File ".../userlib.py", line 13, in <module>
import wikipedia as pywikibot
File ".../wikipedia.py", line 6063, in <module>
versionrev=(version.getversiondict()["rev"])
File ".../pywikibot/version.py", line 68, in getversiondict
(tag, rev, date, hsh) = getversion_svn(_program_dir)
File ".../pywikibot/version.py", line 128, in getversion_svn
entries = open(os.path.join(_program_dir, '.svn/entries'))
IOError: [Errno 2] No such file or directory: '.../.svn/entries'
```
And the `entries` file is missing from the `.svn` directory.
core$ ls .svn
pristine tmp wc.db
TASK DETAIL
https://phabricator.wikimedia.org/T95075
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign
<username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: pywikipedia-bugs, jayvdb, Aklapper, Anshoe