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

Re: shelve is (surprisingly) sensitive to working directory

From: Branko Čibej <brane_at_apache.org>
Date: Thu, 4 Jan 2018 12:07:55 +0100

On 04.01.2018 05:28, James McCoy wrote

>> The other commands, "svn unshelve foo", "svn shelve --delete foo" and "svn
>> shelves" don't currently accept paths but maybe they could.
> I don't really see the use for that. I referenced git's stash
> implementation, since I somewhat regularly use that, and was surprised
> to learn that it supports specifying paths when creating and listing
> stashes.

This is a trap we should steer well clear of. Git's way of handling its
checkout is fundamentally different from Subversion's handling of the
working copy: except for clone, you can't do anything outside the
checkout tree, and any command within it affects the whole tree.

Instead of looking at Git's semantics, it would be better to see how,
e.g., 'svn diff' works with regard to the default path and path
arguments, and make shelve consistent with that.

-- Brane
Received on 2018-01-04 12:08:02 CET

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.