문제

I have a module in my repository. Let's call it module1.

If I just checkout it, it's alright, it shows up in my machine and I can work on it.

There's a parameter in checkout command named -c - according to help, '"cat" the module database.'.

But when I run this command

cvs co -c

The module isn't showing up. Why? Is there a cache file, something in my machine that needs to be updated, flushes or something? module1 exists, but doesn't show up when cvs co -c is called. Why?

도움이 되었습니까?

해결책

cvs checkout -c simply dumps the contents of the $CVSROOT/modules file in alphabetical order minus the comments. This file has to be maintained manually. You can find information about it in the CVS manual.

If you want to list physical modules (as opposed to the virtual modules defined in the modules file, then what you're looking for is the cvs ls command. Note however that this command is only supported as of CVS 1.12.x as well as by most versions of CVSNT.

An alternative approach for listing physical modules that also works with older versions of CVS/CVSNT is described in this answer:

How can I list files in CVS without an initial checkout?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top