Jump to content
Sign in to follow this  
BladeOfOdin

Lock and read only problem

Recommended Posts

I'm currently evaluating plastic SCM and am having an issue with a specific lock and ready only situation that i want.

I want certain files to be readonly until unlocked. I have achieved this by configuring "lock.conf" and "readonly.conf" to be the same [ie: *.png].  I also have the option "Update and checkin operations set files as read-only" set to false.

Now this is almost good for me but it is wrong in one situation which i'm not happy about.  The problem is when you first setup a new workspace from a pre-existing repo, any files that should be lock and readonly are NOT read-only until you have modified and checked-in that file once.  THEN that file will be marked as read-only.  It is as if plastic SCM isn't doing read-only permission handling until checkins are done and not when it first created the files on your file system.  This can lead to someone being allowed to change a file that is suppose to be locked file but without locking it and leading to first time conflict issues later on.

Can this be fixed?

Share this post


Link to post
Share on other sites

Hi,

Regarding "readonly.conf":

Contains the paths of the controlled items to keep as "readonly" after an update.

This config file is located in the plastic4 directory (under $HOME/.plastic4 on Linux/Mac systems or C:\Users\user\AppData\Local\plastic4 on Windows), or in the plastic-global-config repository so that all clients have the same settings by default.

You need to be sure that the "readonly.conf" file is already in the workspace before running the initial update (or distribute it via "plastic-global-config"). This way, the configured files will be read-only after the initial update.

Quote

This can lead to someone being allowed to change a file that is suppose to be locked file but without locking it and leading to first time conflict issues later on.

It's very important to train the users working with binaries so they checkout the file always before locally modify it.

We are open to arranging a free training session with your team.

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...