Jump to content
Sign in to follow this  
Francois Bertrand

"Download once/when changed" files? (hidden_changes not working as expected)

Recommended Posts

Hi! We have some configuration files we would like to add to the repository under a basic state, so they get downloaded by clients.

However, we don't want local changes to be detected as changes (i.e. clients can have their own personal configurations).

I know adding them to the "ignored list" would work, but it would be nice to still have that "default" state in source control.

We added the files to the "hidden_changes" configuration file. Documentation says "The hidden changes are controlled items that can be changed but the user doesn't want them to appear by default on the Pending changes view.". This does work, as we do not see them in pending changes, however it seems that sometimes (I have not confirmed that this is happening every time) when switching workspace to a new changeset we get the error message:

"Warning: This file has been changed in the workspace, out of Plastic SCM control, so data has been preserved. Item is not up-to-date."

It's like it knows to ignore it for pending changes, but when switching changeset it DOES want to overwrite changes. I'm sure there is something easy I'm missing but would be great to know what. :)

Note: in the workspace explorer the file IS listed as: "Controlled  / changed  / hidden changed"

Thank you!

Francois 

Share this post


Link to post
Share on other sites

Hi,

If you want to allow switching to a different branch with pending changes (even if they are ignored in the "Pending changes" view), you can configure this behavior in the GUI "Preferences" --> "Other options" panel. You can "allow", "allow showing a warning" or "don't allow".

With this warning, we try to avoid errors like the one we explain in the following article:

https://plasticscmsupport.zendesk.com/hc/en-us/articles/360014970894-The-parent-revision-of-the-item-is-inconsistent-with-the-loaded-one-in-changeset-cs-xxx

Your feedback is welcome.

Regards,

Carlos.

 

Share this post


Link to post
Share on other sites

Hello Carlos,

So if I understand you correctly, hidden_changes doesn't do anything other than change what is displayed in the pending changes view, but the changes are still taken into account as if they were not hidden?

Thank you,

Francois

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