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

Re: new bite-sized task, issue #598

From: Joseph Dane <jdane_at_studio3511.com>
Date: 2002-01-11 03:22:12 CET

Karl Fogel <kfogel@newton.ch.collab.net> writes:

> Be creative? :-)
>

I'd better not.

anyhow, the message I'm using here is long enough to be eye-catching.
using a printf with an explicit message seems anti-i18n, but that's
the way the other messages in this file are produced, so ...

Fix issue #598

* status.c (svn_cl__print_status_list): Display a meaningful message
when calling 'status' on a non-existant (as opposed to simply
non-VC'd) file.

Index: ./status.c
===================================================================
--- ./status.c
+++ ./status.c Thu Jan 10 16:15:21 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)
+ printf ("this file does not exist: %s\n", path);
+ else
+ {
+ if (detailed)
+ print_long_format (path, status);
+ else
+ print_short_format (path, status);
+ }
     }

-- 
joe
---------------------------------------------------------------------
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:56 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.