[viewvc-users] DeprecationWarning when rebuilding database
Simon Cevc <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <7264017.7567.1268218543263.JavaMail.httpd__49798.5669099309$1268233437$gmane$org@localhost> |
I get a DeprecationWarning when I try to do a DB rebuild.
I use the command: python cvsdbadmin rebuild [full_path_to_cvsrepo].
Some files are updated properly, without an error, but at some point (at certain file) the error shows. If I delete the file from repository (it's a copy of our repository) the error is thrown later at some other file.
The error message is:
cvsdbadmin:55: DeprecationWarning: catching of string exceptions is deprecated
except cvsdb.error, e:
Traceback (most recent call last):
File "cvsdbadmin", line 191, in <module>
command == 'update', quiet_level)
File "cvsdbadmin", line 88, in RecurseUpdate
RecurseUpdate(db, repository, path, update, quiet_level)
File "cvsdbadmin", line 88, in RecurseUpdate
RecurseUpdate(db, repository, path, update, quiet_level)
File "cvsdbadmin", line 92, in RecurseUpdate
UpdateFile(db, repository, path, update, quiet_level)
File "cvsdbadmin", line 54, in UpdateFile
commit_list = cvsdb.GetCommitListFromRCSFile(repository, path)
File "C:\Program Files\viewvc-1.1.3\lib\cvsdb.py", line 878, in GetCommitListF
romRCSFile
0, 0, {"cvs_pass_rev": 1})
File "C:\Program Files\viewvc-1.1.3\lib\vclib\ccvs\bincvs.py", line 297, in it
emlog
filtered_revs = _file_log(revs, tags, lockinfo, default_branch, rev)
File "C:\Program Files\viewvc-1.1.3\lib\vclib\ccvs\bincvs.py", line 876, in _f
ile_log
taginfo[name] = Tag(name, num)
File "C:\Program Files\viewvc-1.1.3\lib\vclib\ccvs\bincvs.py", line 382, in __
init__
self.number = _tag_tuple(revstr)
File "C:\Program Files\viewvc-1.1.3\lib\vclib\ccvs\bincvs.py", line 561, in _t
ag_tuple
t = map(int, string.split(revision_string, '.'))
ValueError: invalid literal for int() with base 10: '*'
My system is:
- ViewVC 1.1.3
- Windows 2008 Server 64 bit
- Python 2.6.4 amd64
- Python for Windows extensions 2.14 for python 2.6 (amd64)
- MySQL-python 1.2.3c1 (amd64)
Thank you for any help,
Simon
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2457532
To unsubscribe from this discussion, e-mail: [[email protected]].