Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Miroslav Fris on May 21, 2012, 05:42:10 pm

Title: How to delete Version controled package.
Post by: Miroslav Fris on May 21, 2012, 05:42:10 pm
I woul like to remove VC controlled package. It is Checked out, also parent package is checked-out.
Only way I know is to remove the  packagr from version control, but the XML remains in the repository as a garbage.
On menu it is not possible to delete such a package, the message says "It is checked out", but I don't understand why this is a reason I cannot remove the package.

Thanks
Title: Re: How to delete Version controled package.
Post by: OpenIT Solutions on May 26, 2012, 03:31:40 am
Have you tried with the latest version of sparx - think i spotted a remove from version control option has been added...you can then just delete the package ???

Regards,

Jon.
Title: Re: How to delete Version controled package.
Post by: Miroslav Fris on May 26, 2012, 02:10:48 pm
Removing from VC is a bad way - the *.XML file remains in repository as a garbage. I found the way anyway. The deleted package has to be Checked-in and the parent checked-out. After that it can be deleted. But I will have to explore if the corresponding XML file is deleted from the disk and from repository (after commiting).
I use Subversion.
Title: Re: How to delete Version controled package.
Post by: Helmut Ortmann on May 29, 2012, 05:50:05 pm
Hi,

to remove a package from VC you have to make sure that:
Then select Package, Package Control, Configure, deselect Control Package.
Then you can delete the packe in EA and the XML-File with your VC Tool.

Good luck,

Helmut
Title: Re: How to delete Version controled package.
Post by: Miroslav Fris on May 29, 2012, 08:19:42 pm
The problem is we have to delete XML files manualy. We have hundreds of files in format s1231g2g2d132dfgd.xml - the option when each package is controlled. And the team is about 5 people.
It is very easy to make mistake and remove wrong file from disk /repository, because EA doens't solve this. And it is very hard to teach team members to manualy delete the correct file - unpossible.

So there is growing garbage of orphan XML files and I don't have any idea how to delete those XML files, which are not in model any more.

I see it as a gap in EA VC system.
Title: Re: How to delete Version controled package.
Post by: Helmut Ortmann on May 30, 2012, 04:11:54 am
I understand.

If it's important for you write a little Addin. This Addin checks for every *.xml file if it is used in EA and...

Kind regards,

Helmut
Title: Re: How to delete Version controled package.
Post by: Miroslav Fris on May 30, 2012, 06:40:02 am
It is not a bad idea - shouldn't be so complicated. Meanwhile I wrote a support request to improve this to Sparx :-)