info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Hard Links


From: Amit Sharma
Subject: RE: Hard Links
Date: Sat, 4 Jan 2003 12:38:03 +0530

Ok,
        I will explain:
1) I have 2 directories inside CVSROOT with different names A and B.
2) I have a1,a2 files in A directory
3) I have b1,b2 files in B directory 
4) I want that if i modify file a1, b1 should be modified automatically and
vice versa
5) If i will modify a2, b2 would be modified automatically  and vice versa

I don't  want to modify the module defination to checkout coomon file from
one common location for both these projects As file names a1,b1 are
different and same is the case for a2,be but files are exactly copies of
each other I can attain this functionality by doing soft links in Linux and
can modify the files in wincvs to get my results but not through hard links

One More Question:
As mentioned by you linking files, you
have defeated CVS's locking system and you're asking for a corrupted
repository.  Soft linking directories isn't dangerous

Could you please suggest me more on this

Regrads,
Amit Sharma






-----Original Message-----
From: address@hidden [mailto:address@hidden
Sent: Saturday, January 04, 2003 12:23 AM
To: address@hidden
Cc: address@hidden
Subject: Re: Hard Links


Amit Sharma writes:
> 
> I have created Soft Links in the Repository and is working fine for me
from
> last ten months but now there are few requirements for hard links for
which
> i was getting the problem I have found on the website
http://www.cvshome.org
> that there are few problems with the hard links's preservepermisions which
> causes repository corruption Is it the same you are talking about, and
> should i continue with the soft links.

Are you soft linking files or directories?  If you're linking files, you
have defeated CVS's locking system and you're asking for a corrupted
repository.  Soft linking directories isn't dangerous, but it's almost
always better to use CVS's modules file instead.  The
PreservePermissions code (which is so buggy as to be unusable) was
intended to allow you to store links in the repository as normal RCS
files, not to allowing linking repository files together.  Perhaps if
you explain in detail exactly what it is that you're trying to
accomplish, someone will have a suggestion of how best to do it.

-Larry Jones

What better way to spend one's freedom than eating chocolate
cereal and watching cartoons! -- Calvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]