[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn status proposal

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2001-09-16 03:37:47 CEST

Mo DeJong <supermo@bayarea.net> writes:

> What if we just skipped the middle number and user a letter code there?
> For example, we could use N to indicate that a given file needed to be
> patched to move from the current rev to the server rev.
>
> % svn status foo.c
> M 58 N ( 75) foo.c

This is what I originally was thinking, just an asterisk there, rather
than a number.

> % svn status foo.c
> M 58 (D 75) foo.c
>
> % svn status foo.c
> M 58 (R 75) foo.c
>

Yeah, neat ideas.

> As far as the "don't contact the server" thing goes, I think contacting the
> server should be the default. Passing a --update flag to the status command
> seems very confusing. The () pairing might look like this if the server
> could not be contacted.
>
> % svn status foo.c
> M 58 () foo.c

That's basically the status quo. If you run 'svn status' right now
without a network, you get

[sussman@kepler:~/projects/svn/trunk]$ svn st -M
M 108 ( ? ) ./subversion/include/svn_ra.h
M 108 ( ? ) ./subversion/libsvn_ra_dav/ra_dav.h

Hmmm.... I sense a holy war coming. It seems like a lot of people
*really* want the network "off" by default. I wonder if anyone
besides Mo feels strongly the other way.

Here's the latest proposal, based purely on those who have been (ahem)
the most vocal in their opinions. Mo's ideas above aren't yet in
there. Still, just to keep everyone on the same page:

   * Primary use: 'svn status'

     The subcommand normally displays only locally modified files.
     No network access is performed, and the display is simple.

        % svn status
        M subdir/foo.c
        A subdir2/bar.c
        D include/bloo.h
        _M baz.h

    * Secondary use: 'svn status --update" (-u)

     This subcommand adds information; specifically, it shows revision
     numbers on files that have impending updates. Network access is
     required.
 
        % svn status -u
        _ 21 *23 25 subdir/moo.c
        M 21 16 25 subdir/foo.c
        A 20 15 25 subdir2/bar.c
        _ 20 *24 25 subdir2/glorb.h
        _ 20 *22 25 subdir2/blarg.h
        D 21 12 25 include/bloo.h
        _M 21 10 25 baz.h

    * Maximum verbosity: 'svn status --verbose" (-v)

      Add this switch to see every single entry. The -v switch
      implies a -u switch.

        % svn status -u
        _ 21 8 25 subdir
        _ 21 *23 25 subdir/moo.c
        _ 21 21 25 subdir/gloo.c
        M 21 16 25 subdir/foo.c
        _ 20 19 25 subdir2
        A 20 15 25 subdir2/bar.c
        _ 20 *24 25 subdir2/glorb.h
        _ 20 *22 25 subdir2/blarg.h
        _ 21 15 25 include
        _ 21 5 25 include/blorg.h
        D 21 12 25 include/bloo.h
        _ 21 3 25 README
        _M 21 10 25 baz.h

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:41 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.