The Developer Stash

Arbitrary Contemplations
posts - 20, comments - 29, trackbacks - 0

My Links

News




Locations of visitors to this page

 





Elroy D'silva's Blog

Twitter












Archives

Post Categories

Blogs I read

Developer's Stash - ClearCase and My uncontrolled Source


     I had some really funny time working with the Rational ClearCase source control software yesterday.


     I'm not a regular ClearCase guy. In fact, I hate source control softwares. They're always a pain until you realize it's power. I've been working on ClearCase for like, five months or something, but, I still don't feel comfortable with it, especially when it's installed with Visual Studio 2005.


     Yesterday, I tried renaming a file from "abc.cpp" to "xyz.cpp". Some crap happened in there and BOOM!!, the file was gone. Nowhere to be seen neither in the Clearcase Explorer nor using Windows Explorer. My mouth was left open and my lungs deflated by the very thought of writing 1000 lines of code again. Where did the file go?? I don't know!


     The only thing I could think about then was to search for it. But how? Not manually through each directory, of course. Pop! I opened up Windows Explorer Search(which was unbelievably slow, considering the fact the my files were stored on a "high-speed" processing server connected by a "high-speed" network). Was it an attack by some freaky terrorist trying to destroy my valuable work? Windows search disagreed to my thoughts. Results showed that there a file named "xyz.cpp.04ac136e421d4108b617d79bf2aec045" in a directory called "lost+found". Now, what does that mean? Was my file lost?? Probably, it was, which is in turn very very strange and no one likes such surprises.


     Thanks anyways to ClearCase for preserving a copy of the file before it lost it and folks, remember, to take care of this when renaming files using Visual Studio which are managed by ClearCase. Did you have any such crazy experience? More ClearCase and Visual Studio fun coming up from a developer's stash.

kick it on DotNetKicks.com

Print | posted on Thursday, August 28, 2008 5:33 PM | Filed Under [ Visual Studio Rational ClearCase Developer's Stash ]

Feedback

Gravatar

# re: Developer's Stash - ClearCase and My uncontrolled Source

Hi,

When you change a version of a directory, any files that are subsequently removed and not deleted are placed in lost+found.

Clearcase is really powerful, and its merging and branching are excellent, however its integration into VS is a pain in the back side.... Make sure you are running the latest version as it integrates with VS2005 a lot better. Renames where always a problem.

Some times the best thing to do is to check the *directory* out first rename the*file* and check the *directory* back in.... sometimes renaming an already checked out *file* can cause problems

Paul.
8/28/2008 7:21 PM | Paul Kinlan
Gravatar

# re: Developer's Stash - ClearCase and My uncontrolled Source

Thanks Paul.

That's definitely some valuable stuff I've got from you. I know ClearCase is a powerful tool. It's just that it'll take some time to get used to. That's what I said in my post.

"They are a real pain until you realize their power."
8/29/2008 7:36 AM | Elroy
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: