Book a Demo

Author Topic: Undo check out to a complete branch  (Read 4665 times)

baerliner

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Undo check out to a complete branch
« on: January 10, 2014, 02:36:31 am »
Hello everyone,
I'm using EA in combination with a SVN and wanted to know if there is a possibility of undoing the checkout to a complete branch in EA?

Here's my problem:
1. Navigate to the top level element in the project browser which is tracked in SVN and I'd like to edit.
2. Select Package Control > "Checkout Branch..." This recursively checks out all the xmi-files from SVN which are under this element.
3. I get interrupted and don't do any changes at all.
4. Therefore I want to make the branch read-only again.
5. I don't want to use the "Check in branch..." function as if I use it a new SVN revision is created.
6. I now manually have to select every package which is represented by a own xmi-file (which are a lot) and select "Package Control > Undo Check out".

Is there a better way than that? Maybe one which recursivley undos the checkout to a complete branch?

Best regards
Baerliner

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Undo check out to a complete branch
« Reply #1 on: January 10, 2014, 03:21:03 am »
Either write a script for that or construct a new repos from scratch. AFAIK there is no better way to do that.

q.

baerliner

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Undo check out to a complete branch
« Reply #2 on: January 10, 2014, 06:43:53 pm »
Thank you for your reply,
that's really a bummer.

I had a look at the VersionControl* methods which are offered by the EA.Package class, but didn't find any which offers a way to undo a checkout.
The only way really seems to be to do it manually.

Best Regards
Baerliner

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Undo check out to a complete branch
« Reply #3 on: January 10, 2014, 10:27:52 pm »
Another way is to use the VC client doing the undo and then call VersionControlResynchPkgStatus which can also be called manually.

q.