korbin Posted August 12, 2011 Report Share Posted August 12, 2011 I have a branch that I haven't worked on in a long time and don't want to merge it back into my main branch so it' no longer needed. When I go to delete the branch in the branch explorer I get the following message: Can't remove this branch because it has revisions. How do I remove this branch? Link to comment Share on other sites More sharing options...
miller Posted August 12, 2011 Report Share Posted August 12, 2011 Korbin, if the branch has no revisions you would be able to delete it. But Im afraid you cannot delete a branch, it is not supported in 3.0. What you can do is to hide this branch by means of adjusting permissions, be careful when dealing with permissions, understand them well, and even try them on another system before implementing them. here is the security guide: http://www.plasticscm.com/releases/3.0.1/manuals-html/en/securityguide.htm cheers, Miller Link to comment Share on other sites More sharing options...
korbin Posted August 12, 2011 Author Report Share Posted August 12, 2011 Korbin' date=' if the branch has no revisions you would be able to delete it. But Im afraid you cannot delete a branch, it is not supported in 3.0.What you can do is to hide this branch by means of adjusting permissions, be careful when dealing with permissions, understand them well, and even try them on another system before implementing them. here is the security guide: http://www.plasticscm.com/releases/3.0.1/manuals-html/en/securityguide.htm cheers, Miller Ok, thanks for the reply. Do you happen to know if this feature will be supported in 4.0? It's not a huge deal, I'm just one of those people that likes to keep my branches neat and tidy Link to comment Share on other sites More sharing options...
psantosl Posted August 15, 2011 Report Share Posted August 15, 2011 Hi korbin, If you check the 4.0 beta you'll see we've a "delete changeset" feature already there. It means you can delete the last cset on a branch... which, at the end of the day, means you can "empty" a branch and then delete it Link to comment Share on other sites More sharing options...
Byron Posted November 29, 2011 Report Share Posted November 29, 2011 In Plastic 3, even if you create a new and virgin branch, you will not be able to delete it right away because there is a single changeset in it. This changeset is purely virtual I assume and required only to justify a new branch. Link to comment Share on other sites More sharing options...
manu Posted November 29, 2011 Report Share Posted November 29, 2011 Hi Sebastian, mmmmmm, in PlasticSCM 3.0 if you create a new and virgin branch you ARE able to remove it. It's true there is a virtual cset, but it doesn´t have revisions inside... so there is no problem about deleting the new branch.... Regards, manu Link to comment Share on other sites More sharing options...
Byron Posted December 6, 2011 Report Share Posted December 6, 2011 Hi Manu, I updated to Plastic 3.0.187.32 - and I indeed seem to be able to remove virgin branches in our test repository, as well as from our main one. However, we have a virgin branch which I actually wanted to delete, and it still refuses saying: "Can't remove this branch because it hsa revisions" . It doesn't have anything in its default "virtual changeset", if I diff for changes in that branch it states the also states the truth: "No content to compare." . I believe that our main repository is broken somehow, as this is not the only inconsistency it shows. Regards, Sebastian But you are right, it definitely works for all the branches which are not my one. I wished I could reproduce this state in a test repository, but I don't see anything special about this particular branch. Link to comment Share on other sites More sharing options...
manu Posted December 7, 2011 Report Share Posted December 7, 2011 Hello Sebastian, can you switch to the branch you want to delete and check if you have pending checkouts on it? Regards, Manu Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.