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

Re: '--make-parents' for 'svn add'

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: 2007-05-14 17:03:40 CEST

C. Michael Pilato wrote:
> Martin Furter wrote:
>> On Fri, 11 May 2007, Hyrum K. Wright wrote:
>>> So, after adding '--make-parents' support for mkdir, copy and move, I
>>> though up another possible use. 'svn add' could be augmented to support
>>> this functionality as well. If asked, the client would recurse up the
>>> directory tree looking for a working copy, and then back down to the
>>> target, adding directories to that working copy as it goes.
>>> Is this functionality actually useful? The scenario I envision is
>>> somebody (or some tool) creating a large tree structure, and then a user
>>> just wanted to add a single file without having to figure out which
>>> directories need to be added as well.
>>> Thoughts?
>> Can also be useful when versioning $HOME or /etc or any other existing
>> directory structure when only parts should be versioned, for example:
>> svn add --make-parents ~/.ut2004/System/UT2004.ini
>> svn add --make-parents /etc/X11/xorg.conf
>> I like the idea :)
> I was +0 until reading this specific example, which I've lived through
> multiple times in the past few years already. +1.

It seems like the response it positive; I'll go ahead an add it. I'm
also going to change the switch from '--make-parents' to simply
'--parents'. This is more consistent with traditional *nix commands,
and in the case of 'svn add', we aren't making any parents at all, just
adding them to the repository.


Received on Mon May 14 17:04:08 2007

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