RE: Re: [viewvc-users] rebuild adds parent directory

Steve Gale <[email protected]> Wed, 6 Nov 2013 08:21:55 -0800 (PST)
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <2011895315.2479.1383754915749.JavaMail.httpd@localhost>
Hi Mike,

Thanks for your help.

The version I'm using is "Powered by ViewVC 1.1.21"

Your description of the problem is accurate. There is only 1 CVS repository and only 1 directory named CVSROOT, just as you described.

Here are some of the parameter settings in my viewvc.conf file:

cvs_roots = cvs: /opt/whatever/cvsroot
#root_parents =
default_root = cvs
root_as_url_component = 0

Thanks again!

Steve


> Steve,
> 
> Thanks for the report.  I just want to make sure I understand the
> situation.  Speaking about CVS roots can get tricky since the actual CVS
> root is one directory, yet it has a subdir called "CVSROOT", and yet
> most folks tend to think of (and ViewVC allows you to configure itself
> such that) individual modules are treated as CVS roots, etc.
> 
> What version of ViewVC are you running?
> 
> How do you have your CVS root enabled in your viewvc.conf?  Via the
> cvs_roots option, or via root_parents?
> 
> Say you have a CVS root at /opt/cvs/myroot, implying that there also
> exists an /opt/cvs/myroot/CVSROOT directory and assuming that there is
> *not* an /opt/cvs/CVSROOT directory.  You're saying that when you run
> 'cvsdbadmin rebuild /opt/cvs/myroot', the stored info is such that
> queries return paths such as:
> 
>    myroot/project1/src/foo.c
>    myroot/project1/src/foo.h
>    myroot/notes/README.txt
>    ...
> 
> But any revisions populated by 'loginfo-handler' for those same files
> would show up as merely:
> 
>    project1/src/foo.c
>    project1/src/foo.h
>    notes/README.txt
>    ...
> 
> Is that correct?
> 
> Thanks.
> 
> -- Mike
> 
> On 11/03/2013 10:12 AM, Steve Gale wrote:
> > I'm having an issue with viewvc rebuild:
> > 
> > viewvc/bin/cvsdbadmin rebuild /opt/whatever/cvsroot
> > 
> > Files added by the rebuild contain the parent directory, cvsroot, in the file path when querying.  For example, cvsroot/sandbox/foo.txt instead of just sandbox/foo.txt.
> > 
> > On the other hand, cvs commit info added using viewvc/bin/loginfo-handler does not have the extra parent directory.
> > 
> > Can anybody suggest how to fix this?
> > 
> > Thanks,
> > Steve
> > 
> > ------------------------------------------------------
> > http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3067721
> > 
> > To unsubscribe from this discussion, e-mail: [users-unsubscribe at viewvc dot tigris dot org].
> >

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

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