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

Re: prop ops on schedule-delete

From: <kfogel_at_collab.net>
Date: 2006-03-12 19:37:15 CET

"Ed Price" <ed.price@gmail.com> writes:
> Should propget/propset/proplist work on a "schedule-delete" file?
> Strangely, ps/pl both actually appear to work on a schedule-delete
> file. But pg does *not* (ie doesnt return the value set with ps).
>
> I think that all three should be consistent, and all three should
> return a warning to the effect that the file doesn't exist, or has
> been scheduled for deletion, or whatever.
>
> $ svnadmin create repos
> $ svn co file://`pwd`/repos wc
> Checked out revision 0.
> $ cd wc
> $ touch foo
> $ svn add foo
> A foo
> $ svn ci -m ""
> Adding foo
> Transmitting file data .
> Committed revision 1.
> $ svn rm foo
> D foo
> $ svn ps p 1 foo
> property 'p' set on 'foo'
> $ svn pl foo
> Properties on 'foo':
> p
> $ svn pg p foo
> $ # huh?
> $ svn st
> D foo
> $ svn ps p 1 does_not_exist
> svn: warning: 'does_not_exist' is not under version control
> $ svn pg p does_not_exist
> subversion/libsvn_client/prop_commands.c:579: (apr_err=200005)
> svn: 'does_not_exist' is not under version control
> $ svn pl does_not_exist
> svn: warning: 'does_not_exist' is not under version control
> $ touch not_versioned
> $ svn ps p 1 not_versioned
> svn: warning: 'not_versioned' is not under version control
> $ svn pl not_versioned
> svn: warning: 'not_versioned' is not under version control
> $ svn pg p not_versioned
> subversion/libsvn_client/prop_commands.c:579: (apr_err=200005)
> svn: 'not_versioned' is not under version control
> $
>
> Shall I file an issue?
> What is the correct behavior?

I think pg should work, but ps and pedit should not (unless --force is
passed) since the object has been scheduled to not exist "soon". But
I can see how others might prefer different behavior(s). I'm really
not sure there's one Right Answer here.

The errors above, "is not under version control" seem definitely
wrong, though. They should say "is scheduled for deletion", if
anything.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Mar 12 21:27:34 2006

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