I am experiencing a problem with Clearcase. What happened was the following: I had a file ValidationScripts.js, and wanted to create another file in the same directory, MiscScripts.js. However, instead of creating a new file, I accidentally renamed ValidationScripts.js to MiscScripts.js. I tried to recreate the ValidationScripts.js file using merge, and now I am stuck with the same file, but with two different names: ValidationScripts.js and MiscScripts.js. So, whenever I try to change to contents of ValidationScripts.js, they are also reflected on MiscScripts.js. Is there any way to fix this?
TIA.
To add to Jonathan's answer, you need to check the history (
cleartool lsvtree -graph
) of the parent directory ofValidationScripts.js
: you will see what has been added/removed in said directory.A simple 'cleartool ls' in that directory can also show you if there is a symlink between
ValidationScripts.js
andMiscScripts.js
.That would be like you tried to restored a deleted file, as described in "Restore an element that has been rmnamed", but made the wrong '
cleartool ln
'.It isn't completely clear what you did, but what you should have done is this, assuming that the file
MiscScripts.js
already existed as a plain (view private) text file, and that 'ct
' is an alias forcleartool
:Now we have to try and guess what you actually did.
I will assume you checked out the directory. You then said:
There are two possibilities:
mv ValidationScripts.js MiscScripts.js
ct mv ValidationScripts.js MiscScripts.js
To fix case 1, you should simply have run:
To fix case 2, you should either cancel the directory checkout or undo the move:
Either
Or
You then go on to say:
And this has me puzzled...I can't see how merge would help. The latter comment sounds as if you did something like:
Without knowing exactly what you've done, it is a little difficult to know what to recommend. Key issues are:
ct mkelem
to create a new file?lost+found
directory.lost+found
files.MiscScripts.js
yet?