You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philip Martin <ph...@codematters.co.uk> on 2002/01/13 03:15:53 UTC

Re: svn commit: rev 821 - trunk/subversion/include trunk/subversion/clients/cmdline

kfogel@tigris.org writes:

> Modified: trunk/subversion/clients/cmdline/status.c
> ==============================================================================
> --- OLD/trunk/subversion/clients/cmdline/status.c	Thu Jan 10 21:41:58 2002
> +++ NEW/trunk/subversion/clients/cmdline/status.c	Thu Jan 10 21:41:58 2002
> @@ -216,10 +216,15 @@
>        if ((skip_unrecognized) && (! status->entry))
>          continue;
>  
> -      if (detailed)
> -        print_long_format (path, status);
> -      else
> -        print_short_format (path, status);
> +      if (status->text_status != svn_wc_status_none)
> +        {
> +          if (detailed)
> +            print_long_format (path, status);
> +          else
> +            print_short_format (path, status);
> +        }
> +      else 
> +        printf (">>>   \"%s\" does not exist   <<<\n", path);


This "does not exist" message gets printed for files that get added to
the repository. My current working copy is rev 861 and I get

$ svn st -u ../svn
M      *       861    ../svn/build.conf
_      *       861    ../svn/subversion/libsvn_ra_dav/fetch.c
__     *       861    ../svn/subversion/tests/clients/cmdline
_      *       861    ../svn/subversion/tests/clients/cmdline/diff_tests.py
>>>   "../svn/subversion/tests/clients/cmdline/stat_tests.py" does not exist   <<<
A                0    ../svn/subversion/tests/libsvn_subr/lcs-diff-test.c
Head revision:    863

We spent days discussing what the svn status command should do, but I
don't remember this "does not exist" message or the non-standard
format. Shouldn't this message be restricted to files I explicitly put
on the command line? This is a bug isn't it?

-- 
Philip

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

Re: svn commit: rev 821 - trunk/subversion/include trunk/subversion/clients/cmdline

Posted by Ben Collins-Sussman <su...@collab.net>.
Philip Martin <ph...@codematters.co.uk> writes:

> $ svn st -u ../svn
> M      *       861    ../svn/build.conf
> _      *       861    ../svn/subversion/libsvn_ra_dav/fetch.c
> __     *       861    ../svn/subversion/tests/clients/cmdline
> _      *       861    ../svn/subversion/tests/clients/cmdline/diff_tests.py
> >>>   "../svn/subversion/tests/clients/cmdline/stat_tests.py" does not exist  
> A                0    ../svn/subversion/tests/libsvn_subr/lcs-diff-test.c
> Head revision:    863
> 
> We spent days discussing what the svn status command should do, but I
> don't remember this "does not exist" message or the non-standard
> format. Shouldn't this message be restricted to files I explicitly put
> on the command line? This is a bug isn't it?

Yeah, this is a bug.  I was about to report it to the list, but then I
thought, "maybe I should read my 46 subversion mails first".  :-)

The old behavior for printing "files that will be added if you update"
was just a single asterisk and no local revision number:



_      *          ./file-to-be-added


It's nice, because when looking at the local revision column, the
files to be added show up as spatial 'breaks'.


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

Re: svn commit: rev 821 - trunk/subversion/include trunk/subversion/clients/cmdline

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Philip Martin <ph...@codematters.co.uk> writes:
> This "does not exist" message gets printed for files that get added to
> the repository. My current working copy is rev 861 and I get
> 
> $ svn st -u ../svn
> M      *       861    ../svn/build.conf
> _      *       861    ../svn/subversion/libsvn_ra_dav/fetch.c
> __     *       861    ../svn/subversion/tests/clients/cmdline
> _      *       861    ../svn/subversion/tests/clients/cmdline/diff_tests.py
> >>>   "../svn/subversion/tests/clients/cmdline/stat_tests.py" does not exist   <<<
> A                0    ../svn/subversion/tests/libsvn_subr/lcs-diff-test.c
> Head revision:    863
> 
> We spent days discussing what the svn status command should do, but I
> don't remember this "does not exist" message or the non-standard
> format. Shouldn't this message be restricted to files I explicitly put
> on the command line? This is a bug isn't it?

Yes, this is a bug -- you're right about the intended behavior.

I've annotated and reopened the original issue, and in the meantime
reverted the code, since the buggy behavior is worse than the benefit
the change brings when operating correctly.

Thanks for mentioning it!

Joseph Dane, want to take another look at this?

-Karl

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