You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Brett Meyer <br...@cmu.edu> on 2006/09/01 17:35:02 UTC

svnadmin dump fails, "invalid stream: [tgt] insn 1786 starts beyond the target view position"

I'm trying to create a dump of my repository because I'm trying to  
fork off a portion of our code base for a second repository to be  
used independently by a second set of developers.

When I try to perform

svnadmin dump myrepos > mydump

the dump fails at revision 1102 of 1667, with the following message:

svnadmin: Invalid diff stream: [tgt] insn 1786 starts beyond the  
target view position

I can check out without any difficulty revision 1102 and later  
revisions both using file:/// and svn+ssh://.  These revisions show  
no obvious sign of corruption (the code base compiles and executes  
without error).

I'm using subversion 1.2.1 and Berkeley DB 4.1.24 (Apache Portable  
Runtime 0.9.6, but I don't think this is relevant since I can check  
out without any trouble) running on SuSE 9.3.

Thank you for your time,
Brett Meyer

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

Re: svnadmin dump fails, "invalid stream: [tgt] insn 1786 starts beyond the target view position"

Posted by Josh Pieper <jj...@pobox.com>.
Brett Meyer wrote:
> I have a correction to make to some of my initial analysis and some  
> additional questions.
> 
> Revision 1102 is clearly corrupted, however this corruption does not  
> impact the active code base because the files checked in in revision  
> 1102 are later deleted in revision 1107.  Also significantly (I  
> think), the files are not modified at all between revision 1102 and  
> revision 1107.  Further, the files impacted by revision 1102 are  
> completely isolated in their own directory (and this entire directory  
> is later removed in revision 1107).
> 
> My goal is to repair the repository so I can eventually perform  
> repository splitting with a combination of "svnadmin dump" and  
> "svndumpfilter" operations.  I can do without having this data in my  
> repository, but my question now is how I remove it?  I obviously  
> can't follow the typical path of performing a "svnadmin dump" and  
> then using "svndumpfilter" to exclude the path in question.
> 
> Is there a way I can safely remove all references to the directory  
> that was added in revision 1102 and later removed in 1107?  If this  
> is the only revision that is corrupted, I should theoretically repair  
> the repository as a whole in the process.

Are you aware of the "--incremental" and "-r" options to svnadmin
dump?  You could try repairing the repository by dumping out as many
revisions as you can, then loading them into a new repository.  You
could do 0-1101 in one go, then 1108-x in another.

Good luck!

-Josh

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

Re: Checking out files rather than directories

Posted by marc gonzalez-carnicer <ca...@gmail.com>.
hi,


2006/9/21, Eric <sp...@scoot.netis.com>:
>

...

> Did I misunderstand that capability of Subversion or is that a limitation
> of SmartSVN?
>

by reading your email, i guess you misunderstand
the way subversion works. in svn you don't checkout
(exclusively) or checkin files, as you do in VSS, CVS,
SCCS. svn has a different way of seeing things that
helps overcome the limitations of those older VCSs.

i'd suggest you to read the subversion book, more
precisely, the section "versioning models" in chapter
2.

http://svnbook.red-bean.com/en/1.2/svn-book.html#svn.basic.vsn-models

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

RE: Re: Checking out files rather than directories

Posted by Ch...@qimonda.com.
> svn co <myURL>/Imakefile file/Imakefile
svn: URL '<myURL>/Imakefile' refers to a file, not a directory

IMHO, this is another Subversion misfortune!


>-----Original Message-----
>From: Talden [mailto:talden@gmail.com] 
>Sent: Wednesday, September 20, 2006 6:31 PM
>To: users@subversion.tigris.org
>Subject: Re: Checking out files rather than directories
>
>You can get the contents of a file but it isn't 'checked out' 
>(and therefore modifiable).
>
>  svn cat svn://someserver/path/filename.txt >filename.txt
>
>If you want a 'working copy' you do, AFAIK, need to checkout a folder.
>
>--
>Talden
>
>
>On 9/21/06, Eric <sp...@scoot.netis.com> wrote:
>>
>> Is this forum a suitable place to discuss things like some 
>of the GUIs 
>> that are available to use with Subversion?
>>
>> I thought that Subversion was supposed to support checking out/in of 
>> individual files in addition to whole directories, but SmartSVN 
>> doesn't seem to want to do that, i.e. if I try to check out 
>a file it 
>> tells me I have to check out the whole directory.
>>
>> Did I misunderstand that capability of Subversion or is that a 
>> limitation of SmartSVN?
>>
>> Versions:
>>
>> SmartSVN version 2.0.7, Windows 2000 Pro SP1 (old 
>non-updated Windows 
>> box I use for testing)
>>
>> Subversion version 1.3.2, Fedora Core 5
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: users-help@subversion.tigris.org
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org
>

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


Re: Checking out files rather than directories

Posted by Talden <ta...@gmail.com>.
You can get the contents of a file but it isn't 'checked out' (and
therefore modifiable).

  svn cat svn://someserver/path/filename.txt >filename.txt

If you want a 'working copy' you do, AFAIK, need to checkout a folder.

--
Talden


On 9/21/06, Eric <sp...@scoot.netis.com> wrote:
>
> Is this forum a suitable place to discuss things like some of the GUIs that
> are available to use with Subversion?
>
> I thought that Subversion was supposed to support checking out/in of
> individual files in addition to whole directories, but SmartSVN doesn't
> seem to want to do that, i.e. if I try to check out a file it tells me I
> have to check out the whole directory.
>
> Did I misunderstand that capability of Subversion or is that a limitation
> of SmartSVN?
>
> Versions:
>
> SmartSVN version 2.0.7, Windows 2000 Pro SP1 (old non-updated Windows box I
> use for testing)
>
> Subversion version 1.3.2, Fedora Core 5
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

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

Checking out files rather than directories

Posted by Eric <sp...@scoot.netis.com>.
Is this forum a suitable place to discuss things like some of the GUIs that 
are available to use with Subversion?

I thought that Subversion was supposed to support checking out/in of 
individual files in addition to whole directories, but SmartSVN doesn't 
seem to want to do that, i.e. if I try to check out a file it tells me I 
have to check out the whole directory.

Did I misunderstand that capability of Subversion or is that a limitation 
of SmartSVN?

Versions:

SmartSVN version 2.0.7, Windows 2000 Pro SP1 (old non-updated Windows box I 
use for testing)

Subversion version 1.3.2, Fedora Core 5


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

Re: Resource that lists differences between CVS and SVN

Posted by Andy Levy <an...@gmail.com>.
On 9/1/06, Eric <sp...@scoot.netis.com> wrote:
>
> Is there a resource that lists, preferably in tabular form, the
> differences, advantages, and disadvantages between Subversion and CVS?
>
> We are migrating from CVS to Subversion and I'm pretty much convinced that
> Subversion is "better" but I need to know exactly what to tell others
> (clients, associates, etc.) who ask me why we are bothering making the switch.
>
> If there is a link to which I can point people that would be most helpful.
>
> I have seen a few points raised up here and there in "the book" and on the
> Subversion website but if all of that information is collected together in
> one place it will make life so much easier.

A similar topic was just discussed earlier this week, Subversion vs.
Perforce. Specifically for SVN vs. CVS, have a look at
http://www.pushok.com/soft_svn_vscvs.php

There's also "Subversion vs. <insert product of choice here>", at
http://www.szabgab.com/subversion_vs_xyz.html

A shortish blog post:
http://www.joestump.net/913108051/subversion-vs-cvs-review.html

There have been numerous threads on the subject on this mailing list,
I'm sure.  A simple Google search for "Subversion vs. CVS" turns up
over a half-million hits.

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

RE: Resource that lists differences between CVS and SVN

Posted by Chance Yohman <cy...@technologysystemsinc.com>.
Eric,

Here is one of the references my company consulted when adopting svn.

http://better-scm.berlios.de/comparison/comparison.html

Since their site is down for maintenance currently, consult the cached
version from Google-

http://64.233.167.104/search?q=cache:PHAwfzkmjXwJ:better-scm.berlios.de/comp
arison/comparison.html+http://better-scm.berlios.de/comparison/comparison.ht
ml&hl=en&gl=us&ct=clnk&cd=1&client=firefox-a

Have a nice day,

Chance Yohman
Engineer
Technology Systems, Inc.
Fort Andross
14 Maine St Box 41
Brunswick, ME 04011
 v (207) 798-4646 ext 217
 f (207) 798-4644 
http://www.technologysystemsinc.com
-----Original Message-----
From: Eric [mailto:spamsink@scoot.netis.com] 
Sent: Friday, September 01, 2006 5:22 PM
To: users@subversion.tigris.org
Subject: Resource that lists differences between CVS and SVN


Is there a resource that lists, preferably in tabular form, the 
differences, advantages, and disadvantages between Subversion and CVS?

We are migrating from CVS to Subversion and I'm pretty much convinced that 
Subversion is "better" but I need to know exactly what to tell others 
(clients, associates, etc.) who ask me why we are bothering making the
switch.

If there is a link to which I can point people that would be most helpful.

I have seen a few points raised up here and there in "the book" and on the 
Subversion website but if all of that information is collected together in 
one place it will make life so much easier.

Thanks...


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

Resource that lists differences between CVS and SVN

Posted by Eric <sp...@scoot.netis.com>.
Is there a resource that lists, preferably in tabular form, the 
differences, advantages, and disadvantages between Subversion and CVS?

We are migrating from CVS to Subversion and I'm pretty much convinced that 
Subversion is "better" but I need to know exactly what to tell others 
(clients, associates, etc.) who ask me why we are bothering making the switch.

If there is a link to which I can point people that would be most helpful.

I have seen a few points raised up here and there in "the book" and on the 
Subversion website but if all of that information is collected together in 
one place it will make life so much easier.

Thanks...


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

Re: svnadmin dump fails, "invalid stream: [tgt] insn 1786 starts beyond the target view position"

Posted by Brett Meyer <br...@cmu.edu>.
I have a correction to make to some of my initial analysis and some  
additional questions.

Revision 1102 is clearly corrupted, however this corruption does not  
impact the active code base because the files checked in in revision  
1102 are later deleted in revision 1107.  Also significantly (I  
think), the files are not modified at all between revision 1102 and  
revision 1107.  Further, the files impacted by revision 1102 are  
completely isolated in their own directory (and this entire directory  
is later removed in revision 1107).

My goal is to repair the repository so I can eventually perform  
repository splitting with a combination of "svnadmin dump" and  
"svndumpfilter" operations.  I can do without having this data in my  
repository, but my question now is how I remove it?  I obviously  
can't follow the typical path of performing a "svnadmin dump" and  
then using "svndumpfilter" to exclude the path in question.

Is there a way I can safely remove all references to the directory  
that was added in revision 1102 and later removed in 1107?  If this  
is the only revision that is corrupted, I should theoretically repair  
the repository as a whole in the process.

Thanks again for your time,
Brett Meyer

On Sep 1, 2006, at 1:35 PM, Brett Meyer wrote:

> I'm trying to create a dump of my repository because I'm trying to  
> fork off a portion of our code base for a second repository to be  
> used independently by a second set of developers.
>
> When I try to perform
>
> svnadmin dump myrepos > mydump
>
> the dump fails at revision 1102 of 1667, with the following message:
>
> svnadmin: Invalid diff stream: [tgt] insn 1786 starts beyond the  
> target view position
>
> I can check out without any difficulty revision 1102 and later  
> revisions both using file:/// and svn+ssh://.  These revisions show  
> no obvious sign of corruption (the code base compiles and executes  
> without error).
>
> I'm using subversion 1.2.1 and Berkeley DB 4.1.24 (Apache Portable  
> Runtime 0.9.6, but I don't think this is relevant since I can check  
> out without any trouble) running on SuSE 9.3.
>
> Thank you for your time,
> Brett Meyer

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