Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: emacs integration ccm.el incomplete
Topic Summary:
Created On: 21-Nov-2005 11:06
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 21-Nov-2005 11:06
User is offline View Users Profile Print this message


Mogens Dybæk Christensen

Posts: 4
Joined: 31-May-2005

Found version 0.6 of this integration at sourceforge.net. here

It works partly, and looks old.

The links to the authors mail and web site are dead. Do anyone know of newer versions?

I think it can be fixed, but would like the best starting point.  ;-)
Report this to a Moderator Report this to a Moderator
 25-Jan-2006 12:05
User is offline View Users Profile Print this message


Henrik Jönsson

Posts: 9
Joined: 3-Jun-2003

Hi,

I'm the author of the emacs integration. I haven't used it for a couple of years, and my lisp knowledge is getter smaller and smaller. What are your problems?

/Henrik
Report this to a Moderator Report this to a Moderator
 25-Jan-2006 12:51
User is offline View Users Profile Print this message


Mogens Dybæk Christensen

Posts: 4
Joined: 31-May-2005

Hi Henrik!

Nice to meet you. ;-)

We are preparing to roll out Synergy/CM 6.4 and Synergy/Change 4.4. Going live in 2 weeks.

Status of the emacs integration as I see it:

- Basically it works with the "classic" client, but the new Java Client has no visble command line session behind, that emacs can use, and inherit task and role selection from. Thus it would be nice to be able to start a session and select task (and role) inside emacs.

- Should execute a work area sync in the background when accessing a controlled file. This will assure my changes are in the cache.

- dos2unix conversion not necessary in the integration, since it is handled by Synergy. May cause problems if both try?

- Buffer is not reloaded at check-out, so it ramains read-only.

The reason for asking at the forum was, that somone might already have updated the code, and we want the best available version to start from. :-)

We have a home made emacs integration for the old version control system we are abandoning, and if it is not already there, we will also make something suitable for Synergy.

/Mogens

Edited: 25-Jan-2006 at 12:55 by Mogens Dybæk Christensen
Report this to a Moderator Report this to a Moderator
 25-Jan-2006 14:30
User is offline View Users Profile Print this message


Lothar Hermann

Posts: 1
Joined: 23-Jan-2006

 



Edited: 25-Jan-2006 at 15:41 by Lothar Hermann
Report this to a Moderator Report this to a Moderator
 25-Jan-2006 15:46
User is offline View Users Profile Print this message


Philipp Weißmann

Posts: 28
Joined: 12-Oct-2004

Hello Mogens, Hello Hendrik,

actually its easy as pie to use a tool written for Synergy/CM Classic with Synergy/CM:

You only have to set the environment variable CCM_ADDR to the value of the current running session.

Example:

C:\Program Files\Telelogic\SYNERGY CM 6.4\bin>ccm status
Sessions for user username:

INTERFACE_TYPE @ LOCALIP:PORT
Database: DATABASEPATH

Then you do the following

Win: set CCM_ADDR="LOCALIP:PORT" (Fetch these values out of the ccm status lines)
Unix: export CCM_ADDR="LOCALIP:PORT" (the same here)

Afterwards you can do whatever you like with the commandline tools again.

Hope this helps,

Greetings,

Philipp Weißmann
Report this to a Moderator Report this to a Moderator
 25-Jan-2006 16:42
User is offline View Users Profile Print this message


Mogens Dybæk Christensen

Posts: 4
Joined: 31-May-2005

Hi Philipp

Just checked again (cygwin prompt on Win XP box):


## First make sure the table is clean

mdc mdc $ ccm status

Sessions for user mdc:


No sessions found.


Current project could not be identified.


## Started Java client, then we try again

mdc mdc $ ccm status

Sessions for user mdc:


Command Interface @ khxa:2260:10.100.152.89

Database: /data/ccmdb/ME_ECS


Developer Interface @ 10.100.152.89:2249

Database: /data/ccmdb/ME_ECS


Current project could not be identified.


## Setting CCM_ADDR

mdc mdc $ export CCM_ADDR=khxa:2260:10.100.152.89


## Java client has Current task set tpo 153. Trying to find it:
 
mdc mdc $ ccm task -default

The current task is not set.

mdc mdc $


## This session clearly does not interact with the Java client

## Trying the other one

mdc mdc $ export CCM_ADDR=10.100.152.89:2249

mdc mdc $ ccm task -default

The current task is not set.

mdc mdc $


# No, does not work



- - - -


So, we are back at, that a command line session follows or "inherits" the selections done in the old client, now called "classic", but this does not work with the new Java client (previously known as Developer Client). You have explicitly to select task through the CLI.

And thus, as I stated in my posting earlier today, the emacs integration should be able to open its own session and select default task etc.

Edited: 25-Jan-2006 at 16:46 by Mogens Dybæk Christensen
Report this to a Moderator Report this to a Moderator
 26-Jan-2006 07:43
User is offline View Users Profile Print this message


Philipp Weißmann

Posts: 28
Joined: 12-Oct-2004

I dont know the Emacs integration, but that should work:

C:\Program Files\Telelogic\SYNERGY CM 6.4\bin>ccm status
Sessions for user weissph:

No sessions found.

Current project could not be identified.

Ok, here we go, I am starting Synergy/CM (the new client)

C:\Program Files\Telelogic\SYNERGY CM 6.4\bin>ccm query "type='folder' and owner='weissph'"
Warning: Cannot connect to address COMPUTERNAME:3076:172.27.41.43:192.168.0.1:192.168.174.1.

ok, something is set wrong, lets try out that one...

C:\Program Files\Telelogic\SYNERGY CM 6.4\bin>ccm status
Sessions for user weissph:

Developer Interface @ 172.27.41.43:1349
Database: /data/ccmdb_64/DBNAME

Command Interface @ halw0627:1355:172.27.41.43:192.168.0.1:192.168.174.1
Database: /data/ccmdb_64/DBNAME/

Current project could not be identified

Command Interface - That sounds interesting, so lets set it
C:\Program Files\Telelogic\SYNERGY CM 6.4\bin>set CCM_ADDR="COMPUTERNAME:1355:172.27.41.43:192.168.0.1:192.168.174.1"

and again - here we go:

C:\Program Files\Telelogic\SYNERGY CM 6.4\bin>ccm query "type='folder' and owner='weissph'"
1) ???#1009 working_folder weissph folder <void> DBNAME <void>
2) ???#1026 working_folder weissph folder <void> DBNAME <void>
. .
. .
. .


So you should have to add this feature to the emacs integration and it should work with the ex-developer client.

Greetings,

Philipp Weißmann
Report this to a Moderator Report this to a Moderator
 26-Jan-2006 08:55
User is offline View Users Profile Print this message


Mogens Dybæk Christensen

Posts: 4
Joined: 31-May-2005

Hi Philipp

Thanks, very similar to  what I found.

And yes, the discussion started with my note, that if the emacs integration should work nicely with the new client, "start session" and "select task" should be added to its menu. - Probably relatively simple with the nuts and bolts we already have, and a lisp freak at hand.

;-)

Mogens

PS I will update this thread when we get time to work on it. Henrik, are you still listening? Can we put my fixes into the sourcforge project? Contact me here, or use mdc@manbw.dk.

Edited: 26-Jan-2006 at 09:07 by Mogens Dybæk Christensen
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.