You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Sohail Somani <so...@taggedtype.net> on 2008/02/01 00:06:23 UTC

Re: Is it possible to 'unimport'?

On Thu, 31 Jan 2008 14:55:03 -0800, Blair Zajac wrote:

> Mark Knoop wrote:
>>>
>>> On Jan 31, 2008, at 16:34, Mark Knoop wrote:
>>>
>>>> If I import a large file into a repository by accident is it possible
>>>> to reverse the action so as not to permanently increase  the size of
>>>> the repository?
[snip]
> That's why I recommend never using import.  Create the top level
> directory where you want to "import" your files, check out this
> directory, then copy the files into it you want to use, then add them. 
> Finally, do a commit.

I don't see how the two are even remotely related. If you add files and 
you want to reverse the action so as to not permanently increase the size 
of the repository (i.e., fantasy_svn obliterate) you still have to do the 
svndumpfilter magic.

-- 
Sohail Somani
http://uint32t.blogspot.com


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

Re: Is it possible to 'unimport'?

Posted by Blair Zajac <bl...@orcaware.com>.
Sohail Somani wrote:
> On Thu, 31 Jan 2008 14:55:03 -0800, Blair Zajac wrote:
> 
>> Mark Knoop wrote:
>>>> On Jan 31, 2008, at 16:34, Mark Knoop wrote:
>>>>
>>>>> If I import a large file into a repository by accident is it possible
>>>>> to reverse the action so as not to permanently increase  the size of
>>>>> the repository?
> [snip]
>> That's why I recommend never using import.  Create the top level
>> directory where you want to "import" your files, check out this
>> directory, then copy the files into it you want to use, then add them. 
>> Finally, do a commit.
> 
> I don't see how the two are even remotely related. If you add files and 
> you want to reverse the action so as to not permanently increase the size 
> of the repository (i.e., fantasy_svn obliterate) you still have to do the 
> svndumpfilter magic.

There is no separate commit step with import, as it does a commit immediately 
when it's finished.  With add, it's two steps, so you can verify your work 
before you do the commit.

If you get a typo or anything wrong in an import, and you aren't quick with that 
Control-C, then it's been committed :)

Blair

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

Re: Is it possible to 'unimport'?

Posted by Andy Levy <an...@gmail.com>.
On Jan 31, 2008 7:06 PM, Sohail Somani <so...@taggedtype.net> wrote:
> On Thu, 31 Jan 2008 14:55:03 -0800, Blair Zajac wrote:
>
> > Mark Knoop wrote:
> >>>
> >>> On Jan 31, 2008, at 16:34, Mark Knoop wrote:
> >>>
> >>>> If I import a large file into a repository by accident is it possible
> >>>> to reverse the action so as not to permanently increase  the size of
> >>>> the repository?
> [snip]
> > That's why I recommend never using import.  Create the top level
> > directory where you want to "import" your files, check out this
> > directory, then copy the files into it you want to use, then add them.
> > Finally, do a commit.
>
> I don't see how the two are even remotely related. If you add files and
> you want to reverse the action so as to not permanently increase the size
> of the repository (i.e., fantasy_svn obliterate) you still have to do the
> svndumpfilter magic.

But by doing the "in-place import", you have an extra chance to check
your work and undo the add before committing. As opposed to just
importing the whole directory in one shot.

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