Jump to content
Sign in to follow this  
Marc S

I need urgent help. Plastic is locked because of a missing changeset.

Recommended Posts

Hi.

I'm currently locked by Plastic because of a deleted changeset. I have some local changes that I cannot undo or commit because the home changeset has been deleted from an other computer and there is no option to handle that situation. I'm stuck because of a deleted empty folder. I can't revert it, I can't commit it, I can't shelve it. I tried to create an other folder with the exact same name and it doesn't work either because Plastic think it's a new one. I tried editing the plastic.selector file to "manually" get to a valid changeset but it does nothing.

To put is simply, nothing works because of that missing changeset and Plastic doesn't know how to handle that situation. Is there any way I can force plastic to change the home changeset?

Thanks

Share this post


Link to post
Share on other sites

Hi Marc,

First, very sorry for this issue. I take full responsibility on this because this is a known bug that I personally decided not to fix yet.

Now, here goes a workaround.

Go to your workspace. Go into the hidden directory .plastic.

Show me your plastic.selector. It must be a branch, not a changeset. Does it look like this?

>type plastic.selector
rep "quake@localhost:6060"
  path "/"
    smartbranch "/main"        

If it does, you are good to go. If not, remove the "changeset" part and leave the branch.

Close your GUIs.

Delete (or backup) the plastic.wktree file inside this plastic hidden directory.

This is the workspace metadata, and the one causing the problem.

Now open the GUI, go to workspace explorer and click "update". Plastic will rehash your files, won't download much, and you'll be good to go.

 

Let me know if it helps.

 

pablo

 

 

Share this post


Link to post
Share on other sites

Hi Pablo and thanks for answering me on Sunday.

So I tried and do get the "home changeset again" but it's the first one meaning Plastic is going to redownload my whole project. This is what I'm trying to avoid because I have a bad bandwidth.

I tried editing the selector to get to my targeted changeset but Plastic ignores it. Any way I can do that?

repository "MyProject@Myplasticlcoud@cloud"
  path "/"
    smartbranch "/main/Car Tournament Retrieval" changeset "435"        

PS: I do have an other instance of Plastic working at the moment (Making a new workspace from a local repo).

Edit: re reading your message I understand it should go to my chosen changeset. Trying it and hoping I won't have to redownload the whole thing.

Share this post


Link to post
Share on other sites

It worked. 😀

And it didn't have to redownload the whole project. It went to my chosen changeset.

Thanks again for your help and I hope this will be usefull until you fix that bug.

Share this post


Link to post
Share on other sites

Hi, I have the same problem in that changesets were created ok, 1 to 5 (for example) and a few other changesets were created which I deleted using the GUI (all good so far).

However, when I manually deleted a folder and replaced it with another and then tried to check in the "changes", PlasticSCM came up with the message "The specified changeset 8 cannot be found...". 

I duly deleted the plastic.wktree and then tried to check in changes only for it to now say "The method verison 15 is not supported.  Minimum supported version 0.  Maximum supported version 1." 

Any ideas? Or should I consider it lost and start from scratch?

Share this post


Link to post
Share on other sites

After deleting the "plastic.wktree", did you update your workspace? Note: As Pablo explained, your workspace selector needs to be pointing to a branch (not changeset).

I don't understand why it doesn't work for you. You can always create a new local workspace and apply your changes in this new workspace.

Regards,

Carlos.

 

Share this post


Link to post
Share on other sites

You can manually edit the ".plastic/plastic.selector" file to point to a branch and restart the GUI.

eg:

repository "MyProject@Myplasticlcoud@cloud"
  path "/"
    smartbranch "/main/Car 

Regards,

Carlos.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...