Author Topic: How to delete Version controled package.  (Read 4449 times)

Miroslav Fris

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
  • That's me!
    • View Profile
How to delete Version controled package.
« 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

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: How to delete Version controled package.
« Reply #1 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.

Miroslav Fris

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
  • That's me!
    • View Profile
Re: How to delete Version controled package.
« Reply #2 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.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: How to delete Version controled package.
« Reply #3 on: May 29, 2012, 05:50:05 pm »
Hi,

to remove a package from VC you have to make sure that:
  • You have checked out parent package
  • The package you want to remove from VC is checked in
  • With Right Click on Package, Package Control, Resynch Status with VC Provider you can update package status in EA
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
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Miroslav Fris

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
  • That's me!
    • View Profile
Re: How to delete Version controled package.
« Reply #4 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.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: How to delete Version controled package.
« Reply #5 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
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Miroslav Fris

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
  • That's me!
    • View Profile
Re: How to delete Version controled package.
« Reply #6 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 :-)