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

svn_wc_status suggestion

From: Yoshiki Hayashi <yoshiki_at_xemacs.org>
Date: 2001-10-18 09:18:05 CEST

I'm trying to write simple GUI client with my Ruby binding
and Ruby/Gtk. I'm thinking about Cervisia like UI, which is
mentioned in notes/guis/planning.txt. It doesn't do any
real work yet as I'm only working on it when I'm tired of
CVS protocol but I'm hoping eventually it will be the first
GUI client. ;-)

While I was writing code to show status of WC, I encountered
not very intuitive behavior of svn_wc_status.

1. If a file is not under version control, text_status
    field contains 0 which is not defined in enum
    svn_wc_status_kind.

I think it's cleaner to add new member to enum with proper
name or just use svn_wc_status_none now that
svn_wc_status_normal is added.

2. If a directory is not under version control,
    svn_wc_status returns SVN_WC_OBSTRUCTED_UPDATE.

I'd like to have svn_status_t with NULL entry instead of
error because that's what I get with non version controlled
file. Even if returning error is preferred, I think
different error should be used because
SVN_WC_OBSTRUCTED_UPDATE is returned by svn_wc_entry and
it does not describe what's happened.

-- 
Yoshiki Hayashi
---------------------------------------------------------------------
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:45 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.