[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
subversion [2007/02/22 15:57]
zeman
subversion [2007/05/15 16:10]
zeman Ignoring unversioned files in svn status.
Line 88: Line 88:
 svn update svn update
 </code> </code>
 +
 +
 +
 +===== Ignoring unversioned files in svn status =====
 +
 +Imagine that your makefile creates a ''tmp'' file or directory. You do not want to version this file, because it can be any time recreated by calling ''make''. And you do not want to see the file listed in ''svn status'' output. Then you need to edit the ''svn:ignore'' property of the folder containing ''tmp''.
 +
 +  - Go to the folder containing ''tmp''.
 +  - Call ''svn propedit svn:ignore .''.
 +  - Enter files to be ignored, one per line. But you can use wildcards, as in ''*.d''. Note that some files are ignored by default (e.g. ''*.o'').
 +  - Call ''svn status''. Now you should not see the files you said should be ignored, but for now you will see the folder containing them. That's because this folder's property (''svn:ignore'') has changed.
 +  - You need to call ''svn commit'' to make the property stored in the repository and available to other users.
 +
 +Note that you just set property of one folder, not of a whole subtree of folders. That is, ''tmp'' files in subfolders will not be ignored until you set the same property in the subfolders. In general, properties can be set recursively but it is not trivial with multi-line property values, which is the case of ''svn:ignore''.
  
  
Line 346: Line 360:
  
 : $ Change your mind when you realize those bug fixes did more harm than good.: ''svn merge -r 475:474 file:///fs/clip-mteval/svn/Programs/branches/bittorrent .'' : $ Change your mind when you realize those bug fixes did more harm than good.: ''svn merge -r 475:474 file:///fs/clip-mteval/svn/Programs/branches/bittorrent .''
- 
-=== Ignoring unversioned files in ''svn status'' === 
- 
-Imagine that your makefile creates a ''tmp'' file or directory. You do not want to version this file, because it can be any time recreated by calling ''make''. And you do not want to see the file listed in ''svn status'' output. Then you need to edit the ''svn:ignore'' property of the folder containing ''tmp''. 
- 
-# Go to the folder containing ''tmp''. 
-# Call ''svn propedit svn:ignore .''. 
-# Enter files to be ignored, one per line. But you can use wildcards, as in ''*.d''. Note that some files are ignored by default (e.g. ''*.o''). 
-# Call ''svn status''. Now you should not see the files you said should be ignored, but for now you will see the folder containing them. That's because this folder's property (''svn:ignore'') has changed. 
-# You need to call ''svn commit'' to make the property stored in the repository and available to other users. 
- 
-Note that you just set property of one folder, not of a whole subtree of folders. That is, ''tmp'' files in subfolders will not be ignored until you set the same property in the subfolders. In general, properties can be set recursively but it is not trivial with multi-line property values, which is the case of ''svn:ignore''. 
  
  

[ Back to the navigation ] [ Back to the content ]