11 comments
Comment actions Permalink

Jacques, do you plan to publish source files?
There was a discussion some time ago about
reusing transparent.jar for Perforce...

"Jacques Morel" <jacmorel@yahoo.com> wrote in message
news:3430653.1036177844729.JavaMail.jrun@is.intellij.net...

http://www.intellij.org/twiki/bin/view/Main/ClearcasePlugin



0
Comment actions Permalink

The source is linked to from the intellij.org page. It's a sourceforge project.

0
Comment actions Permalink

But a little outdated. Also, I don't use CVS so zipped sources (like
transparentsrc.xxx)
are better at least for me.

r.

"Russell Egan" <russegan@email.com> wrote in message
news:4872253.1036189262373.JavaMail.jrun@is.intellij.net...

The source is linked to from the intellij.org page. It's a sourceforge

project.


0
Comment actions Permalink

I upload a new source bundle. It is slightly beyond 1.18.

Knock yourself out!

Jacques
"Richard Nemec" <rndzank@attbi.com> wrote in message
news:apvqi0$rja$1@is.intellij.net...

But a little outdated. Also, I don't use CVS so zipped sources (like
transparentsrc.xxx)
are better at least for me.

>

r.

>

"Russell Egan" <russegan@email.com> wrote in message
news:4872253.1036189262373.JavaMail.jrun@is.intellij.net...

The source is linked to from the intellij.org page. It's a sourceforge

project.

>
>


0
Comment actions Permalink

http://www.intellij.org/twiki/bin/view/Main/ClearcaseP
ugin


Jacques,

what is the best place to submit bugs for this plugin or just to talk about it?

I see sourceforge but it seems to be out of date, intellij.org but I'm not sure how to use that, this forum, your direct email maybe..

Also, do you have plans to work on it or is it a side project you don't really want to spend time on?

Thanks

Vince.

0
Comment actions Permalink

As you can see in the history I am actively working on it.

My preferred way to file a bug is to post to the plugins intellij news group. If it is very urgent email me directly.

Now, do you have a problem or you are just testing the support of the plugin ;)

Jacques

0
Comment actions Permalink

Ok, good to know.

I do have problems with it and have filed two of them on sourceforge. Would you like me to repost them here then?

Vince.

0
Comment actions Permalink

I fixed the bug you reported (thanks BTW) and in order to add Multisite
support I will need your assistance since I do not have ClearCase MultiSite.
Look at my comments on sourceforge

Jacques
"Vincent Mallet" <itnadmin@jetbrains.com> wrote in message
news:6963816.1036782083548.JavaMail.jrun@is.intellij.net...

Ok, good to know.

>

I do have problems with it and have filed two of them on sourceforge.

Would you like me to repost them here then?
>

Vince.



0
Comment actions Permalink

Excellent!

I'll put some docs together and send them to you.
I downloaded the 1.18 tarball to see how you were doing the NativeClearCase but the jni source isn't in there. How do you talk to native ClearCase? Through CAL?

Vince.

0
Comment actions Permalink

Yes it does use CAL.
If you look at the src tarball I upload on wiki (these.http://www.intellij.org/twiki/pub/Main/ClearcasePlugin/transparentsrc.tar.gz) there is a bunch of classes ICCXXXX classes that are the java mapping of CAL classes. I am working on moving the native implementation to these since it will allow me to only have java implementation. These classes use OLE automation to call CAL. I use jawin to generate these classes. Its runtime library jawin.dll needs to be in your IDEA_DIR/bin directory.
There is an example of file checkout at C:\Dev\Projects\transparent\src\net\transparent\ccjni\ClearCase\test\IClearCaseTest.java

Let me know if I can help you more.

Jacques

0
Comment actions Permalink

Hey Jacques,

I finally found some time to mess around with CC mastership and the CC plugin.

When dealing with replicated VOBs, it is necessary to have branch mastership in order to perform a checkin, a reserved checkout or a "mastered" unreserved checkout. It happens at a replica level: only one replica can have mastership of branch at a time.

Here's a little piece of code that will request branch mastership for the visible version of a file, using your jawin version of ClearCase:

");
        ICCVOB vob = rootVersion.getVOB();

        String myReplica = vob.getThisReplica();

        // mastership lovin'
        ICCVersion version = cc.getVersion("somepath/somefile.java");

        ICCBranch branch = version.getBranch();
        String master = branch.getMaster();

        // If branch is mastered somewhere else, request mastership!
        if (!myReplica.equals(master)) {
            branch.RequestMaster("Transfering Mastership to: " + myReplica);
        }]]>


The most common cause for the transfer to fail is if there are checkouts on the branch in the master replica that are not "unreserved, nonmastered". RequestMaster will throw something like:


I haven't figured out a way to do an unreserved, nonmastered checkout from CAL. When trying to checkout a version which is not mastered by the current replica, here's what is thrown:


It would be great if ClearCasePlugin could check whether the file is mastered by the current replica before performing a checkout (or checkin) and offer to request the branch mastership if not. Maybe this behavior could be dependent on an option "Enable MultiSite" or something like that in the Plugin parameters.

Having an action "Request branch mastership..." in the clearcase popup could be very useful too.

I hope that could help! Let me know if you need more info.

Vince.

0

Please sign in to leave a comment.