Actually it sounds like a bit of a bug and a bit of a design issue.
I seem to recall CVS didn't have revision information for a directory,
but only for the files within it.
If the path given to an svn command refers to a file, the -N flag really
doesn't apply. There is no recursion to do, it is a file:
Svn status -v foo/bar.cpp
My take on the -N is that it will limit the action of the command to the
path given and in the case of its application to a directory will not
recursive subdirectories which it encounters.
The directory structure
Main/subDirA/afile.txt
Main/subDirB/bfile.txt
And the command
Svn st -N Main
Should result in a listing like this
A subDirA
A subDirB
For instance.
It does seem that if I wanted to perform an action (a stat, log, diff)
upon just the directory, which is in svn, I really can't do it. It will
always include the files and subdirectories beneath it (but with -N can
be prevented from recursively going down the subdirectories).
-----Original Message-----
From: Michael S. Tsirkin [mailto:mst@mellanox.co.il]
Sent: Monday, August 16, 2004 8:42 AM
To: users@subversion.tigris.org
Subject: svn status -N processes all files in the directory
I noticed that even with -N switch, the svn status command
will still process all files in a directory.
The book says:
> If you pass a specific path to svn status, it gives you information
about
> that item alone:
> $ svn status stuff/fish.c
> D stuff/fish.c
However it does not work this way for directories, not even with the -N
switch:
svn status -vN ulp/
653 479 roland ulp
653 476 roland ulp/dapl
653 346 roland ulp/Kconfig
653 110 roland ulp/Makefile.24
653 476 roland ulp/ipoib
653 29 roland ulp/Makefile.26
653 432 roland ulp/sdp
653 479 roland ulp/srp-24
653 479 roland ulp/srp-26
653 346 roland ulp/Config.in
In other words subversion always applies the status command
to all files in a directory, in addition to the directory itself.
I suspect this applies to other commands, but the behaviour
does not seem to be documented. Could someone enlighten me?
This is consistent with cvs -l switch, but
1. cvs does not version directories so its different for subversion
2. how *do* I apply a command just to the directory itself?
Thanks,
MST
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 5 23:29:13 2005