Re: [viewvc-users] DeprecationWarning when rebuilding database

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <4B97C6F7.1070907__28728.9073727608$1268238095$gmane$org@collab.net>
DeprecationWarning is annoying, but shouldn't be a problem.

As for the ValueError you're getting, it would seem that while parsing the
output of 'rlog', ViewVC is coming across a revision number it doesn't like.
 Do your RCS ,v backing files have branch/tag mappings that have revision
strings with asterisks in them?  Something like '1.2.1.*' perhaps?


Simon Cevc wrote:
> 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]].


-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2457701

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkuXxvcACgkQokEGqRcG/W6W8ACbBpwMfKWfl4XhyiVfsfvhCzAu
ac8AoKBNaszhGwM94kX4VRaegyTQTlBX
=pqUY
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.