Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: hipgeek on October 06, 2009, 01:15:02 am

Title: Lost Locks when using Subversion
Post by: hipgeek on October 06, 2009, 01:15:02 am
hi,

We use  subversion for package control, and we have a couple of packages that are locked by a user and we need to clear those locks.
  
I have tried clearing them in subversion, but this does not help, it would appear that there is a reference in the EAP file too as to who has the package checked out. How can I clear this lock?

Cheers
Adrian
Title: Re: Lost Locks when using Subversion
Post by: Geert Bellekens on October 06, 2009, 06:03:44 pm
There is an option to synchronize the vc status of packages with their provider.
I think that should help.

Geert
Title: Re: Lost Locks when using Subversion
Post by: hipgeek on October 07, 2009, 02:43:24 am
Hi Geert,

thanks for this suggestion, I have just tried it with the following results:

The menu command is "Project->Version Control->Validate Package Configurations"

This checks each package status in the VC system (SVN in this case) and in fact it reports the "lost" package in question as "checked in" on the output console. So far So good!

Regrettably however when I try check it out in the project browser it still reports it as checked out to another user.

Looks like a bug?  :-/

Title: Re: Lost Locks when using Subversion
Post by: Paul Lotz on October 07, 2009, 03:55:36 am
I'm not sure this will help in your particular case, but here are a couple things I have found:
1) Right-clicking on a package and choosing Package Control... File Properties brings up some information including which user has a lock.
2) I have previously encountered the situation where a package shows as locked but shouldn't.  In these cases I have been able to use the TortoiseSVN "Release lock" command successfully and then everything works.  It sounds like you have already tried to release the lock through Subversion, though.  I haven't seen that so I don't know how to resolve that issue.
Title: Re: Lost Locks when using Subversion
Post by: hipgeek on October 07, 2009, 04:01:49 am
Hi Paul,

Yeah that's pretty much what I did, I went and stole the lock using TortoiseSVN and then I released it.

I just ran "get all latest" from the package control context menu. Umm not good. It sort of hangs EA half way through with a message saying "application error" and then a modal xmi dialog appears that cannot be closed.

What is "get all latest" supposed to do?  :o

Restoring from backup now.....

I don't want to be snide here, but this isn't the best part of their otherwise very nice product is it?

c'est la vie and all that.
Title: Re: Lost Locks when using Subversion
Post by: Paul Lotz on October 07, 2009, 04:25:16 am
"Get All Latest" retrieves the latest version of a package (and its subpackages) from version control.  See http://www.sparxsystems.com/uml_tool_guide/uml_model_management/vcmenu.html.  It is quite a useful command!

I do agree that there is room for improvement in EA's version control, but we have found that once we've become accustomed to it (there are a couple quirks, yes) it has nonetheless been amazingly helpful,  reliable so far, and really pretty easy to use.  Don't give up yet!  It won't be long before you're glad you invested a little time getting it up and running.

I'm guessing you are past this point, but if you or someone else is setting up Version Control I recommend reading the white paper on the topic here: http://www.sparxsystems.com/resources/whitepapers/.

Some general recommendations with respect to EA's version control:
1) Check in packages, not .eap files!
2) Here if we want to add packages to version control we configure the package for version control manually.  That way we have the option to specify (EA still makes the logical suggestion) the name of the .xmi file.  I don't think this is critical, but it works well for us.
Title: Re: Lost Locks when using Subversion
Post by: hipgeek on October 07, 2009, 04:34:55 am
Yes we're finding it invaluable just for controlling our concurrent working by checking in out. It's essential in a team of 5 people concurrently designing!

As you have guessed we are a little along the way, and the white paper was fairly useful to get going.

I have had mixed success with things like:

Cheers
Title: Re: Lost Locks when using Subversion
Post by: hipgeek on October 07, 2009, 04:41:48 am
Just spotted this: http://www.sparxsystems.com/uml_tool_guide/uml_model_management/resynchronize_the_status_of_ve.html:

Quote
"Right-click on any package and select the Package Control | Re-synch all statuses with VC Providers context menu option."

...and I don't have that option. I guess 7.5.845 is NOT the latest build?
Title: Re: Lost Locks when using Subversion
Post by: Paul Lotz on October 07, 2009, 04:45:35 am
I haven't experienced crashes viewing the history or undoing check-outs, both of which we do all the time.  It surprises me that you have that happen.  I guess we've been lucky!  You might contact Sparx support for issues like that (if you haven't already).  That seems very unusual to me.
Title: Re: Lost Locks when using Subversion
Post by: Paul Lotz on October 07, 2009, 04:47:31 am
[/quote]

...and I don't have that option. I guess 7.5.845 is NOT the latest build?[/quote]

7.5.849 is the latest....
Title: Re: Lost Locks when using Subversion
Post by: hipgeek on October 07, 2009, 04:48:50 am
Quote
I haven't experienced crashes viewing the history or undoing check-outs, both of which we do all the time.  It surprises me that you have that happen.  I guess we've been lucky!  You might contact Sparx support for issues like that (if you haven't already).  That seems very unusual to me.

Well that's good to hear!

Hopefully its something that can be fixed then.
Title: Re: Lost Locks when using Subversion
Post by: hipgeek on October 07, 2009, 04:50:38 am
Quote
[


7.5.849 is the latest....

er on the download page its 848, where have you managed to get 849 from?
Title: Re: Lost Locks when using Subversion
Post by: Paul Lotz on October 07, 2009, 04:55:15 am
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1254695921
Title: Re: Lost Locks when using Subversion
Post by: hipgeek on October 07, 2009, 04:56:27 am
F5 was required  ;D