Re: <dir>/foo,v and <dir>/Attic/foo,v
Michael Haggerty <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <[email protected]> |
William Rassieur wrote: > Hi, > > I'm actually using cvs2p4 and not cvs2svn, but if my apostasy doesn't > preclude submitting a question here, I think my question is in fact > relevant. > > Does anybody know what CVS does when it is going to operate (update, > commit, label, etc.) a file ...<dir>/foo and the backend contains > ...<dir>/foo,v as well as ...<dir>/Attic/foo,v?? > > Not having done "use the Source, Luke", it seems to me that CVS would > ONLY go to Attic for foo,v if foo,v were not in Attic/.. > > I've seen other posts to this forum that talk about how something > Bad(TM) has happened to the repository when you get doppelgangers like > this. But, I'm a pragmatic guy: if people come to me and say my > conversion is bad, the gold standard is to test against what they get > out of CVS TODAY... (it's one point of view; I like it). This situation cannot be created using the CVS client alone, but it is not hard to create with a little bit of repository manipulation: 1. Create file.txt in CVS. 2. Make a backup copy of file.txt,v from the CVS repo. 3. Delete file.txt from CVS. 4. Restore your copy of file1.txt,v to the non-Attic directory. 5. Check out freshly from CVS again and see what appears. 6. Report your results to the mailing list so that we can all benefit from your work :-) For completeness I suppose one could also test the reversed scenario, where the file was deleted from CVS, then the Attic file moved aside, then the file recreated, then the Attic file restored. Michael ------------------------------------------------------ http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2402824 To unsubscribe from this discussion, e-mail: [[email protected]].