You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by MikeW <mw...@yahoo.co.uk> on 2007/04/26 11:56:12 UTC

Import of hidden files/dirs - no 'dry-run' ?

I want to create a new repository (svn import) from a tree containing a hidden
directory at the top level (i.e. dir name starts with a '.')

I thought I'd test this using the --dry-run option, but for some
reason, the --dry-run option is unavailable, just when you need it !!

Can I be certain that the dir will be imported - I would like
it all to go in on the same commit. Docs are silent on the subject.

(And does anyone else think dry-run should exist for more than just 'merge' ?!)

Thanks,
MikeW

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

Re: Import of hidden files/dirs - no 'dry-run' ?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 26, 2007, at 09:51, MikeW wrote:

> Found that I needed to add the .dir with an additional svn add,
> but it all went in together with the svn commit.

Presumably you used "svn add *" and your .dir was not added. This is  
because your shell (not Subversion) expanded the "*" to all items not  
beginning with dot.

You could probably "svn add * .*" instead if you want to add  
everything including dot-items.


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


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

Re: Import of hidden files/dirs - no 'dry-run' ?

Posted by MikeW <mw...@yahoo.co.uk>.
Duncan Murdoch <murdoch <at> stats.uwo.ca> writes:

> 
> Not exactly answering your question, but I wouldn't use svn import. 
> Instead create an empty copy of the target directory in the repository 
> (one rev) and then check it out on top of the dir you want to import, 
> and add all the files.  Then svn status will report on what got added 
> and you can revert the additions before committing them (a second rev).
> 
> This ends up with two revisions, but the files all get added in one, and 
> you have a chance to fine tune the additions.  It also has the side 
> effect (which is usually beneficial) of leaving you with a working copy 
> of the newly added directory.
> 
> I suspect the fact that you can do imports this way relieves some of the 
> motivation for developers to add features to svn import.
> 
> Duncan Murdoch
> 

I did as you suggested (found others suggesting the same approach too),
also used the --force option for good measure !

Found that I needed to add the .dir with an additional svn add,
but it all went in together with the svn commit.

Cheers,
MikeW

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

Re: Import of hidden files/dirs - no 'dry-run' ?

Posted by Duncan Murdoch <mu...@stats.uwo.ca>.
On 4/26/2007 7:56 AM, MikeW wrote:
> I want to create a new repository (svn import) from a tree containing a hidden
> directory at the top level (i.e. dir name starts with a '.')
> 
> I thought I'd test this using the --dry-run option, but for some
> reason, the --dry-run option is unavailable, just when you need it !!
> 
> Can I be certain that the dir will be imported - I would like
> it all to go in on the same commit. Docs are silent on the subject.
> 
> (And does anyone else think dry-run should exist for more than just 'merge' ?!)

Not exactly answering your question, but I wouldn't use svn import. 
Instead create an empty copy of the target directory in the repository 
(one rev) and then check it out on top of the dir you want to import, 
and add all the files.  Then svn status will report on what got added 
and you can revert the additions before committing them (a second rev).

This ends up with two revisions, but the files all get added in one, and 
you have a chance to fine tune the additions.  It also has the side 
effect (which is usually beneficial) of leaving you with a working copy 
of the newly added directory.

I suspect the fact that you can do imports this way relieves some of the 
motivation for developers to add features to svn import.

Duncan Murdoch

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

Re: Import of hidden files/dirs - no 'dry-run' ?

Posted by Andreas Schweigstill <an...@schweigstill.de>.
Hello!

MikeW schrieb:
> Can I be certain that the dir will be imported - I would like
> it all to go in on the same commit. Docs are silent on the subject.

I also have a repository which contains directories starting with "."
and this caused no problems at all (under Linux). The only directory
name which is forbidden is ".svn" which is used internally by
Subversion.

But I don't know what happens if you add a ".svn" directory with SVK and
afterwards check out a working copy with Subversion...

> (And does anyone else think dry-run should exist for more than just 'merge' ?!)

Yes, that would be really nice. But it can be quite complicated to
implement such an option for commands which do modifications to the
working copy, especially recursive "svn add".


With best regards
Andreas Schweigstill

-- 
Dipl.-Phys. Andreas Schweigstill
Schweigstill IT | Embedded Systems
Schauenburgerstraße 116, D-24118 Kiel, Germany
Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436
Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/

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