Re: [viewvc-users] rebuild adds parent directory

"C. Michael Pilato" <[email protected]> Wed, 6 Nov 2013 15:06:58 -0500
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <527AA162.7010001__26419.1297036179$1383768491$gmane$org@collab.net>
Hrm.  I can't seem to reproduce this problem myself.

I'm running effectively 1.1.21 in the transcript below on a local copy
of the original ViewCVS CVS root.  It has two top-level subdirectories
within it -- "viewcvs" and "CVSROOT".  As you can see in the transcript
below, the actual root directory name "ViewCVS" is not captured as part
of the database data.

{{{
$ /usr/local/viewvc-1.1.x/bin/cvsdbadmin rebuild /usr/local/cvs/ViewCVS/
Using repository root `/usr/local/cvs/ViewCVS'
Purging existing data for repository root `/usr/local/cvs/ViewCVS'
[CVSROOT/checkoutlist [3 commits]]...
[CVSROOT/commitinfo [2 commits]]..
[CVSROOT/cvswrappers [1 commits]].

...

[viewcvs/www/mod_python/.htaccess [1 commits]].
[viewcvs/html-templates/querytemplate.html [2 commits]]..
[viewcvs/html-templates/queryformtemplate.html [2 commits]]..
$ mysql -u root -p
Enter password: ********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 78
Server version: 5.5.34-0ubuntu0.13.04.1 (Ubuntu)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.

mysql> use ViewVC;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from dirs;
+----+----------------------------------+
| id | dir                              |
+----+----------------------------------+
| 92 | viewcvs/templates/include        |
| 91 | viewcvs/templates/docroot/images |
| 90 | viewcvs/templates/docroot        |
| 89 | viewcvs/templates                |
| 87 | viewcvs/elemx                    |
| 88 | viewcvs/elemx/python             |
| 86 | viewcvs/elemx/java               |
| 85 | viewcvs/tools                    |
| 84 | viewcvs/windows/aspfool          |
| 83 | viewcvs/windows                  |
| 82 | viewcvs/windows/icons            |
| 81 | viewcvs/windows/icons/small      |
| 80 | viewcvs/cgi                      |
| 79 | viewcvs/website/images           |
| 78 | viewcvs/website                  |
| 77 | viewcvs/tparse                   |
| 76 | viewcvs/tests/vclib              |
| 75 | viewcvs/tests                    |
| 74 | viewcvs/lib/vclib/svn_ra         |
| 73 | viewcvs/lib/vclib                |
| 72 | viewcvs/lib/vclib/ccvs/rcsparse  |
| 71 | viewcvs/lib/vclib/ccvs           |
| 70 | viewcvs/lib/vclib/bincvs         |
| 69 | viewcvs/lib/vclib/svn            |
| 68 | viewcvs/lib                      |
| 67 | viewcvs                          |
| 66 | viewcvs/contrib                  |
| 65 | CVSROOT                          |
| 93 | viewcvs/www/asp                  |
| 94 | viewcvs/www/cgi                  |
| 95 | viewcvs/www/mod_python           |
| 96 | viewcvs/html-templates           |
+----+----------------------------------+
32 rows in set (0.00 sec)

mysql>
}}}

How does your DB data look by comparison?

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

To unsubscribe from this discussion, e-mail: [[email protected]].