I've made one svn:external
in my repository. Everything works fine, except the output of the svn status
command. In the output there is lot of information I don't need:
$ svn st
X lib
Performing status on external item at 'lib'
I can run svn st --ignore-externals -q
and I can place this line in a small script, but maybe there is better solution. How can I see status of my working copy without seeing info about externals?
I think no answer yet really solves the problem in the sense that if changes in a part of svn:externals has been made, they of course should be displayed. This propably makes no sense for really external repositories. But I use svn:externals to add a general build folder from the same repository into projects (because no general hierarchie of the modules exist). And I don't want to use the options
--ignore-externals -q
as I loose information about unadded files and changes in the general build script I have done in this project (which I might want to commit). My solution was to patch the subversion java command line implemantation svnkit.This solves the problem because changes in externals are also marked with 'M' for modified...
That seems to be the proper way to ignore externals to appear in your
svn status
output.Reference:
http://svnbook.red-bean.com/en/1.4/svn.ref.svn.html
Searching turns up a clever Bash script implementation that overrides the
svn
command with a script. However, I wanted to do something similar in Windows. Remove thesvn
directory from yourPATH
, then create a batch script namedsvn.bat
and put it somewhere in yourPATH
(likeC:\Windows
):