开发者

Ignoring locks in SVN commit

How to make SVN to ignore the lock errors it faces when committing a collection of files? Pointing out the locked files, each time you want to c开发者_开发问答ommit the whole repository is time consuming and SVN fails when you commit the whole folder since there are some locked files in it.

Any solution?


Just an idea how to change the situation in a positive way for you (I have read all the comments, so I think the main problem are files that should be examples from the server, but normally not changed locally).

The base idea is here to give the files that should be examples, but not real configuration files a suffix to just denote that. It is similar to the repository hooks you get in each installation of Subversion with the suffix .tmpl. These indicate that a repository hook could be implemented by that, but you have to manually change the ending of that file.

In your case, the following should be done:

  1. Find the files you only want to be "one way".
  2. Give them an ending, so that every one sees that these files are just examples.
  3. Have a build process or do manual a copy of that file.
  4. Tell the people what and how to change.
  5. Add to your directory in the "ignore list" the file with the name its normally used locally, so the file will not be added by accident to the repository again.
  6. You may even add a pre-commit hook to ensure that these files are not added any more.
  7. You have to have a build process that takes you example files and copies them to the real name for the deployment then. But it is a good idea anyway to have a build process for such tasks.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜