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

[non]recursive semantics revisited.

From: Kevin Pilch-Bisson <kevin_at_pilch-bisson.net>
Date: 2001-10-22 16:22:30 CEST

We had previously agreed that the semantics of non-recursive for directories
would be:

run command on dir and all file entries in dir. Do nothing with dirs.

I would like to make an ammendment to that. Consider property subcommands, and
the revert command. That would mean that there is no way to run a property
or revert command on just a directory, which I think is bogus. So I thought
of this proposal.

1) For commands that are recursive by default (checkout, import, update, etc),
use the behaviour described above.

2) For commands that are _nonrecursive_ by default (plist, pget, pset, pdel,
revert) run command only on dir.

This would mean that svn revert [.], would revert only property changes on .,
but that you could revert everything in the current dir with svn revert *.
Similarly with property commands, i.e. svn pset blah "some value" would set
the property only on the current dir.

What do people think of this scheme?

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  • application/pgp-signature attachment: stored
Received on Sat Oct 21 14:36:45 2006

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