logo       
Google Custom Search
    AddThis Social Bookmark Button

[Issue 237] Exception ValueError in _tag_tuple() for revision "1": msg#00066

Subject: [Issue 237] Exception ValueError in _tag_tuple() for revision "1"
http://viewvc.tigris.org/issues/show_bug.cgi?id=237






------- Additional comments from rey4@xxxxxxxxxx Mon May 15 15:49:05 -0700 2006 
-------
Instead of just commenting out the error check, can you try the following fix?


Index: lib/vclib/bincvs/__init__.py
===================================================================
--- lib/vclib/bincvs/__init__.py        (revision 1358)
+++ lib/vclib/bincvs/__init__.py        (working copy)
@@ -474,7 +474,7 @@
     t = map(int, string.split(revision_string, '.'))
     l = len(t)
     if l == 1:
-      raise ValueError
+      return ()
     if l > 2 and t[-2] == 0 and l % 2 == 0:
       del t[-2]
     return tuple(t)



It should be do pretty much the same thing, except that it should allow trunk
branch tags to match all trunk revisions, not just the ones that begin with "1"



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>