开发者

Way to ignore files with Surround SCM?

开发者 https://www.devze.com 2023-01-26 14:52 出处:网络
I am using surround SCM with a directory structure that looks like the following: root/ src/ somecode/ lib/

I am using surround SCM with a directory structure that looks like the following:

root/
  src/
    somecode/
  lib/

my working directory looks like this:

root/
  .settings/
  src/
    somecode/
  lib/
  someotherdirectory/
    file.txt

Basically, I don't want surround to report to me if my local copy of .settings (a directory) or file.txt have changed. It seems simple - like an ignore in svn, but I can't seem to find a way to do it with surround. I seem to have a lot of these local files around that don't need to be dealt wit开发者_StackOverflow中文版h by the scm tool I'm using, and I'd prefer them not to show up in my recursive differences screen.

Any thoughts on how I might do this?


Maybe a way to emulate that feature would be to use directory cloaking:

Cloak repositories to skip them when recursively getting, checking in, checking out, or undoing checked out files. If a user does not work with specific repositories in Surround SCM, cloaking can shorten the time it takes to perform the get, check in, check out, and undo check out commands. It can also save local disk space by reducing cache needs.

So you could first get that directory, then cloak it.


Go to the Server Options dialog in the Surround SCM Client and navigate to the File Names/Extensions category. There is an "Ignore file or directory name" setting that allows you to perform this functionality. There is also an "Ignore file extension" setting that might be useful for things like .OBJ files.

As VonC pointed out, you could also use the cloak repository feature in Surround SCM, but you would need to do that for each instance of the .settings directory and you only cloak directories after they are added into the Surround SCM database. Using the ignore setting tells Surround SCM to apply this option to all instances and it is applied before the add operation occurs.


You can just set the folder "hidden" on windows OS level, that will also hide it for surround SCM.


In earlier Surround SCM versions, there was only a server/mainline option to ignore files or directories, which was useful if all projects on that mainline applied the same ignore rules. Starting in Surround SCM 2019.1, in addition to the server/mainline options, there are two other methods to specify ignore rules.

  1. Add repository-specific rules to ignore files and directories for recursively adding files, viewing working directory differences, and pushing changes to repositories. Rules are defined in .sscmignore files, which use a glob-style pattern and are stored in local working directories. Check in .sscmignore files if you want to share these rules with other team members.
  2. Set user options to add user-specific rules to ignore files and directories for recursively adding files, viewing working directory differences, and pushing changes to repositories. These rules are specific to this user and are not shared across the team.
0

精彩评论

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