P
P
pdx2011-02-18 01:48:08
CVS
pdx, 2011-02-18 01:48:08

SVN: remove file from version control

But not from a working copy.

Is that possible?

The svn delete (svn rm) command, as far as I understood from the SVN manual, prepares the file for deletion, and then, when up, it necessarily deletes the file from the working copy as well.

Is it possible to make SVN just start ignoring specific files? (removed them from the repository, but did not affect them in the working copies)

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
anatoly_rr, 2011-02-18
@anatoly_rr

Delete a file from the repository but leave it on the file system: svn rm filename --keep-local
Force certain files to be ignored:

  1. Make a file listwith names or masks separated by newlines
  2. Runsvn propset 'svn:ignore' -F list .
  3. listcan be deleted.

Read more here: Properties in SvnBook.

S
Sannis, 2011-02-18
@Sannis

.svignore?

D
Denis Ilinykh, 2011-02-18
@greyhard

You can’t ignore already created files ...
more precisely, you need to delete files (move) set ignoring rules, commit and then return back
after that the files will be ignored by SVN ohm
, ignoring rules can be edited easier, for example,
svn propedit svn:ignore log
an editor opens on the log folder and we can set ignore masks , save commit everything ignore settings only affect new files... even if the files were not added to SVN but existed SVN will swear at them that they are not under control, they must be moved, committed and reverted
* - игнорит все
*.log - игнорит по маске только .log

A
Alexey Grichenko, 2011-02-18
@Kalobok

You can copy the file, delete it via svn, and then copy it back. I think after that it will just show up as unknown.

T
tampere, 2011-02-18
@tampere

The solution is simple: rename the file filename to filename.tmpl, and tell the developers to create a copy of the file with the necessary changes in the working copy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question