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
Received on Thu Apr 26 14:45:41 2007