问题
After a crash we are trying to get EA and subversion to play nicely with each other.
When I try to check out a package from EA, I get the following Message:
The ability to import is currently locked by user: WSxxxx
Where WSxxxx is the name of my work station
I tried:
svn cleanup : Returns no information
svn status : Returns no information
From EA Resync Statuses With all all packages
From EA Get Latest : Reports locked then hangs
Any idea what else I could try?
回答1:
Since svn status doesn't return information, you don't have any edited files in your working copy.
Steal the lock on the file that contains the package (if you're not sure about the file name and location, you can look it up here: right-click on the package in EA, Package Control, Configure...):
- if you're using TortoiseSVN: Get Lock..., and mark checkbox Steal the locks (http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-locking.html)
- if you're using svn: svn lock --force (http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.lock.html)
Then unlock the file again, and check out the package in Enterprise Architect.
回答2:
You can try with this (if you have e edited files):
- Copy edited items to another location.
- Delete the folder containing the problem path.
- Update the containing folder through Subversion.
- Copy your files back.
Or:
delete the top level folder and check out again. Hopefully it doesn't come to that though.
Can you look in your .svn folder? There will be a file in it called lock.
find . -name 'lock' -exec rm -v {} \;
Cheers
来源:https://stackoverflow.com/questions/21783249/enterprise-architect-and-subversion-the-ability-to-import-is-currently-locked