You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Michael Maxwell <mm...@casl.umd.edu> on 2008/08/05 22:05:07 UTC

svn status recursion (again)

A few days ago, I asked how to make the 'svn status' command recursive.  I was told it already was, by default.  I accepted that, but now I have trouble explaining the following behavior:

   > svn status | grep "^[MA]"
   M      verb.import.xml
   M      fragVerbStemAllomorphyRules.xml
   A      fragSpellCrxn.xml
   M      Chapter_7.xml
   > cd ..
   > svn status | grep "^[MA]"
   M      makefile
It is not the case that I somehow have the -N (non-recursive) flag turned on, because if I go another directory level up, 'svn status' shows me modified files in other subdirectories--just not this one.

The 'src' subdirectory is an ordinary directory (not a symlink).

What could I be doing wrong?

   Mike Maxwell
   CASL/ U Md 

RE: svn status recursion (again)

Posted by Michael Maxwell <mm...@casl.umd.edu>.
Mark Phippard wrote:
> Is the "src" subdirectory also a subdirectory of the parent 
> within your Subversion repository?  

   > svn ls https://svn.casl.umd.edu/tto308/trunk/Data/Bangla
   <omit some irrelevant lines...>
   makefile
   src/

> IOW, was this entire WC 
> created with a single svn co?

Ah, looks like that's the clue: a month ago (according to the log), I used 'svn move' to change the name of the 'src' directory to its present name.  But somehow svn doesn't seem to think they're the same:

   > svn update
   svn: Failed to add directory 'src': object of the same name already exists

So I guess I must be confused about the way 'svn mv' and 'mv' work...  I guess the solution would be to check in all the files in my current "real" src directory, then delete that dir and its files, and re-run 'svn update'.  Correct?

> Also, what is the other output you are getting from svn 
> status that is causing you to run it through grep?  "Normal" 
> svn status output would only contain similar lines anyway.

Yes, but they contain other lines that I don't care about.  The '-q' parameter gets rid of some of these, but still leaves the 'D' lines:

   > svn -q status
   !      .
   D      Bengali_Morphology.xml
   D      fragQualifierStemContexts.xml
   D      fragQualifierStemEnvironments.xml
   D      fragGenericContexts.xml
   D      fragNounAffixContexts.xml
   D      fragNounAffixEnvironments.xml
   D      fragVerbCombinationContexts.xml
   !      BanglaGrammar
   M      makefile

   Mike Maxwell
   CASL/ U Md  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: svn status recursion (again)

Posted by Mark Phippard <ma...@gmail.com>.
On Tue, Aug 5, 2008 at 6:05 PM, Michael Maxwell <mm...@casl.umd.edu> wrote:
> A few days ago, I asked how to make the 'svn status' command recursive.  I was told it already was, by default.  I accepted that, but now I have trouble explaining the following behavior:
>
>   > svn status | grep "^[MA]"
>   M      verb.import.xml
>   M      fragVerbStemAllomorphyRules.xml
>   A      fragSpellCrxn.xml
>   M      Chapter_7.xml
>   > cd ..
>   > svn status | grep "^[MA]"
>   M      makefile
> It is not the case that I somehow have the -N (non-recursive) flag turned on, because if I go another directory level up, 'svn status' shows me modified files in other subdirectories--just not this one.
>
> The 'src' subdirectory is an ordinary directory (not a symlink).
>
> What could I be doing wrong?

Is the "src" subdirectory also a subdirectory of the parent within
your Subversion repository?  IOW, was this entire WC created with a
single svn co?

Also, what is the other output you are getting from svn status that is
causing you to run it through grep?  "Normal" svn status output would
only contain similar lines anyway.


-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org