[cvsnt] Re: Annotate Commands?

Jay j.javed at sherara.com
Tue May 18 15:07:55 BST 2004

Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.

Bo Berglund wrote:

> Since you are writing advanced cvs command scripts it was assumed you knew
> about the meaning of "sandbox"....
> The "sandbox" is s short word for a working file set checked out of CVS.
> In each of the file set folders there is a hidden CVS subfolder containing
> vital administrative files for the management of the file set.
> Any cvs command issued within a sandbox folder will see by the existence
> of the CVS subfolder that this is a sandbox and go there to pick up all 
> the needed extra data like which server to connect to using which protocol etc.
> Bo
Fair comment, you are right, and thanks for explaining it. Yes, I have 
all that (the hidden CVS folder within each directory). Just for the 
record though, I'm not actually writing these scripts myself. I'm trying 
to use Chora, but it's not working. I know next to nothing about CVS and 
hence I'm just starting off now. However, I do know my way around PHP 
like the back of my hand, so I've gone through the code to find out 
where the errors are. It is quite buggy (especially on a windows 
platform, which is cause for all the bugs, I'd imagine it works fine on 

Anyway, to cut a long story short, I'm stuck at this point now where it 
sends the request to the cvs executable to return the results of an 
annotation for a particular file. I've also checked out CVSWeb which 
uses an almost identical approach. Both use 'annotate' as opposed to 
'rannotate', and both reference the repository. There is no reference at 
any time to the sandbox or working directory. The file paths it sends to 
the executable are completely messed up, and hence I'm not sure exactly 
what they're supposed to be or what they're supposed to represent, hence 
I'm trying to work out what it's supposed to be and how to get it to 
work on Windows.

What's supposed to happen is that the temporary file location is 
supposed to contain the output of the annotation, for further parsing 
into a web readable format. But nothing is being written to the file. I 
could change the paths to point to the sandbox (C:/Web Sites/Cinema/ is 
the folder containing everything), but I'm not sure where this would 
need to be specified.

Just in case I'm not understanding what annotate is actually supposed to 
do, or perhaps not explained clearly, this script is supposed to display 
a specific file (specific to version number too) and basically display 
it line by line with comments on the side as to who inserted any 
particular line, and in what version it was inserted/changed. You can 
see an example of this here:

That's not my site btw, just some random one which allowed public access 
and used Chora.



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook