Ignorirovanie files already tracked?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
6 views
Let's say we have database_config.php with all the comments and descriptions of all of the lines already under versioned control. (For example, we just imported empty, not configured the framework to the repository containing "raw" database_config.php)


How to make this file once suckawilly to the developer, but then not updated (ignored) when you receive fresh data from the repository?


svn:ignore works only for files not yet added to repose. How to be?
by | 6 views

6 Answers

0 like 0 dislike
usually configuration files are in a separate folder, and we don't swapon and apim only the folder ID.
by
0 like 0 dislike
If I understand correctly, you will only work with a centralized brunches. In our project, no one works with trunk, per trunk similar files have a standard configuration. And every developer working on your branch, changes these config files by themselves. As far as I know, in svn you cannot do as you want, except to write their clever hooks to the server that is if that reverting such files on the trunk or something. But IMHO it is somehow svetnenko.
by
0 like 0 dislike
1) is Created database_config.example.php where are the actual settings
2) It is added to the repository
3) For directories in which it lies dobavlen svn:ignore = database_config.php
4) After chakuuta create a copy database_config.example.php with the name database_config.php and specify in it the individual settings
\r
Of the disadvantages only what is necessary from time to time to update your database_config.php when you add settings in database_config.example.php
by
0 like 0 dislike
The option is similar to the previous one, but he is not the same to use something like inheritance or cascade: Yes database_config.common.php where described the model configuration and which versionseries (there is a new feature in the project default settings there committse and crawl on all developers), and ignored VCS database_config.instance.php which are overridden, only the necessary settings. Roughly speaking, the first recorded host, port, user, password, database, prefix, and the second overrides only the user, password, and database or only the host.
by
0 like 0 dislike
svn:ignore won't work for file that is already attached to the turnips
by
0 like 0 dislike
have you tried locking? Turtles have a description of the action (EN, EN)
\r... If you lock the file, then only you will be able to fix this file. Fixing other users will be blocked until then, until you release the lock. A locked file cannot be modified in the repository in any way, and this means that it cannot be deleted or renamed either, except by the lock owner...
by

Related questions

0 like 0 dislike
1 answer
asked Mar 28, 2019 by Renzo
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Mar 27, 2019 by script88
0 like 0 dislike
4 answers
110,608 questions
257,186 answers
0 comments
27,898 users