Re: [viewvc-users] rebuild adds parent directory

"C. Michael Pilato" <[email protected]> Mon, 4 Nov 2013 08:11:30 -0500
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <[email protected]>
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: [[email protected]].
>

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

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