You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by George Georgalis <ge...@galis.org> on 2006/07/17 16:55:20 UTC

in place add, with propset ignore

I think I've got basic in place repo creation worked out,
but what about the situation where not everything will be added?

I have a file tree on a running system which contains some
sockets, devices, and directories I'd like to exclude -- it will
be very difficult to only add the parts that belong. At first I
tried to "add *" with the intent of doing an svn rm before my ci,
for the files that don't belong in the repo.

But from what I can tell, that would remove my working copies
(very bad). Will it be possible to use propset to just not add
the items that fall into the ignore pattern?

Is there a better way to go about this?

// George


-- 
George Georgalis, systems architect, administrator <IXOYE><

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: in place add, with propset ignore

Posted by George Georgalis <ge...@galis.org>.
On Mon, Jul 17, 2006 at 01:05:17PM -0400, Duncan Murdoch wrote:
>On 7/17/2006 12:55 PM, George Georgalis wrote:
>>I think I've got basic in place repo creation worked out,
>>but what about the situation where not everything will be added?
>>
>>I have a file tree on a running system which contains some
>>sockets, devices, and directories I'd like to exclude -- it will
>>be very difficult to only add the parts that belong. At first I
>>tried to "add *" with the intent of doing an svn rm before my ci,
>>for the files that don't belong in the repo.
>>
>>But from what I can tell, that would remove my working copies
>>(very bad). Will it be possible to use propset to just not add
>>the items that fall into the ignore pattern?
>>
>>Is there a better way to go about this?
>
>You can use "svn add *", then "svn revert something". Don't remove it, 
>revert the add.

Perfect. Just what I was looking for. Thanks.

// George


-- 
George Georgalis, systems architect, administrator <IXOYE><

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: in place add, with propset ignore

Posted by Duncan Murdoch <mu...@stats.uwo.ca>.
On 7/17/2006 12:55 PM, George Georgalis wrote:
> I think I've got basic in place repo creation worked out,
> but what about the situation where not everything will be added?
> 
> I have a file tree on a running system which contains some
> sockets, devices, and directories I'd like to exclude -- it will
> be very difficult to only add the parts that belong. At first I
> tried to "add *" with the intent of doing an svn rm before my ci,
> for the files that don't belong in the repo.
> 
> But from what I can tell, that would remove my working copies
> (very bad). Will it be possible to use propset to just not add
> the items that fall into the ignore pattern?
> 
> Is there a better way to go about this?

You can use "svn add *", then "svn revert something". Don't remove it, 
revert the add.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: in place add, with propset ignore

Posted by George Georgalis <ge...@galis.org>.
On Tue, Jul 18, 2006 at 11:58:54AM +1200, Gavin Lambert wrote:
>Quoth George Georgalis <ma...@galis.org>:
>> I have a file tree on a running system which contains some
>> sockets, devices, and directories I'd like to exclude -- it
>> will be very difficult to only add the parts that belong. At
>> first I tried to "add *" with the intent of doing an svn rm
>> before my ci, for the files that don't belong in the repo.
>> 
>> But from what I can tell, that would remove my working copies
>> (very bad). Will it be possible to use propset to just not
>> add the items that fall into the ignore pattern?
>
>If you want it to pay attention to the ignore pattern, then use 'svn add
>.' instead.  (The shell expands '*' to all files, which will override
>the ignores since they've been explicitly named.  Which is why it'll
>include all files in the current dir and then start paying attention to
>the ignores for the subdirs.)

Thanks, that explains a lot... I noticed my ignore pattern did
not work and not everything got added. Apparently the error about
invalid file types got scrolled off the top and the add stopped
before it finished descending. Since I didn't check the exit code,
I didn't notice the error.

>Using spot-reverts as Duncan suggested works as well, of course :)

I was able to use revert nicely. Thanks!

// George


-- 
George Georgalis, systems architect, administrator <IXOYE><

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: in place add, with propset ignore

Posted by Gavin Lambert <ga...@compacsort.com>.
Quoth George Georgalis <ma...@galis.org>:
> I have a file tree on a running system which contains some
> sockets, devices, and directories I'd like to exclude -- it
> will be very difficult to only add the parts that belong. At
> first I tried to "add *" with the intent of doing an svn rm
> before my ci, for the files that don't belong in the repo.
> 
> But from what I can tell, that would remove my working copies
> (very bad). Will it be possible to use propset to just not
> add the items that fall into the ignore pattern?

If you want it to pay attention to the ignore pattern, then use 'svn add
.' instead.  (The shell expands '*' to all files, which will override
the ignores since they've been explicitly named.  Which is why it'll
include all files in the current dir and then start paying attention to
the ignores for the subdirs.)

Using spot-reverts as Duncan suggested works as well, of course :)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org