Svn Status -u and ignore files from specific directory

565 Views Asked by At

i am running a command SVN STATUS -U, and now i want it to bring all the changes except /temporary folder. I don't have any idea how can i do this? Because i don't want to see all entries of /temporary folder when i run svn status -u (hundreds of files added in temp directory on server, and it brings lot of entries when executing the command)

I am using putty after logging via SSH.

2

There are 2 best solutions below

3
On

You could add the files in /temporary to the svn:ignore property of /temporary:

svn propset svn:ignore "*" path/to/temporary

That, however, will also keep the files in /temporary from being tracked by svn (they are ignored, after all), so if this is not what you want, please be more specific.

0
On

Yes, Sometimes it is desirable to have files that reside in a repository that you do not want overwritten in your workspace in a similar fashion to the way Subversion can ignore files that you commit. Config files with your local settings are an example where you would want files ignored during updates.

Subversion does not have this feature. The answers that "work" that I have seen over the years are:

  • write a script that updates the individual files and/or directories and ignores the files and/or directories that you want left alone (tedious)

  • remove the files or directories from subversion and then obviously they are not there to overwrite your files (seems sketchy to me)


Mark