You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Mo DeJong <md...@cygnus.com> on 2001/03/16 13:23:26 UTC

How many targets do propget and propset accept?

Hi all.

The documentation and TODO file are a little fuzzy
when it comes to the number of targets that
propget and propset accept and if an implicit
"." is assumed.

For example:

% svn help propget
propget (pget, pg): Get the value of property PROPNAME on files and 
directories.
usage: propget PROPNAME [TARGETS]

This leads me to believe that if no TARGETS were
passed, the current dir "." would be assumed.

% svn propget someprop

Is that correct?


Now for the more tricky one:

% svn help propset
propset (pset, ps): Set property PROPNAME to PROPVAL on the named files 
and directories.
usage: propset PROPNAME [PROPVAL | --valfile VALFILE] [TARGET1 [TARGET2] ...]

Note to [TARGET1 [TARGET2] ...] in the usage text.
Does this mean that an implicit "." directory should
not be assumed for the propset command and that an
error should be generated if no targets are found?
If so, why does this use differ from the use of propget?
Should the usage text for propset be changed
to [TARGETS] so that it matches propget?

thanks
Mo DeJong
Red Hat Inc