threads / discuss / 17066

Assertion Failed when importing svn into Git

Subject: Assertion Failed when importing svn into Git

## tl;dr

3 messages between Jan 9, 2009 and Jan 9, 2009.

replies: 2people: 1as markdown or json

4jxdq6fqee2h@dyweni.com· Jan 9, 2009, 19:32 UTC · lore
Hi,

I'm trying to import my SVN repository into GIT and its throwing an Assertion Failed error message in text_delta.c Can someone help me?

The assertion failed error occurs when running 'svn diff -r 288:289' which contains only one change - a change made to a binary file. That binary file is the Eclipse dataModel file, both revs (288, 289) have the file marked as application/octet-stream using the svn:mime-type property

subversion - 1.5.4 git - 1.6.0.6

The SVN repository was started using 1.4.6, if that matters
Here's the exact error message:

------- $ svn diff -r 288:289 svn: subversion/libsvn_delta/text_delta.c:609: apply_window: Assertion `window->sview_len == 0 || (window->sview_offset >= ab->sbuf_offset && (window->sview_offset + window->sview_len >= ab->sbuf_offset + ab->sbuf_len))' failed. Aborted -------

Thanks!
4jxdq6fqee2h@dyweni.com· Jan 9, 2009, 19:43 UTC · re: 4jxdq6fqee2h@dyweni.com · lore

Re: Assertion Failed when importing svn into Git

Hi,
For more testing, I setup a brand new SVN repository (using v1.5.4).

In the old SVN Repo, I checked out the problematic file (.cache/.dataModel) from rev 288 and rev 289.

In the new SVN Repo, I added the problematic file (from rev 288) and committed, which became Rev 4.

Then I copied the problematic file (rev rev 289) ontop of that file and commited, which became Rev 5.

I'm successfully able to do a 'svn diff -r 4:5'.
Does this imply that I have corruption in my old SVN Repository?

Or is something being lost when checking out the file from Rev 289 that does break SVN in my test?

Show 31 quoted lines
> Hi,
> 
> 
> I'm trying to import my SVN repository into GIT and its throwing an
> Assertion Failed error message in text_delta.c  Can someone help me?
> 
> The assertion failed error occurs when running 'svn diff -r 288:289'
> which contains only one change - a change made to a binary file. That
> binary file is the Eclipse dataModel file, both revs (288, 289) have
> the file marked as application/octet-stream using the svn:mime-type
> property
> 
> 
> subversion - 1.5.4
> git        - 1.6.0.6
> 
> The SVN repository was started using 1.4.6, if that matters
> 
> Here's the exact error message:
> 
> -------
> $ svn diff -r 288:289
> svn: subversion/libsvn_delta/text_delta.c:609: apply_window: Assertion
> `window->sview_len == 0 || (window->sview_offset >= ab->sbuf_offset &&
> (window->sview_offset + window->sview_len >= ab->sbuf_offset +
> ab->sbuf_len))' failed.
> Aborted
> -------
> 
> 
> Thanks!
4jxdq6fqee2h@dyweni.com· Jan 9, 2009, 20:05 UTC · re: 4jxdq6fqee2h@dyweni.com · lore

Re: Assertion Failed when importing svn into Git

Hi,
I have resolved this issue.

There was either corruption in the repository or an incompatibility between the 1.4.6 and the 1.5.4 formats.

A dump / reload of the repository has resolved the issue.
I can run 'svn diff -r 288:289' successfully on the new repository.
Thanks!
Show 56 quoted lines
> Hi,
> 
> For more testing, I setup a brand new SVN repository (using v1.5.4).
> 
> In the old SVN Repo, I checked out the problematic file
> (.cache/.dataModel) from rev 288 and rev 289.
> 
> 
> In the new SVN Repo, I added the problematic file (from rev 288) and
> committed, which became Rev 4.
> 
> Then I copied the problematic file (rev rev 289) ontop of that file
> and commited, which became Rev 5.
> 
> I'm successfully able to do a 'svn diff -r 4:5'.
> 
> Does this imply that I have corruption in my old SVN Repository?
> 
> Or is something being lost when checking out the file from Rev 289
> that does break SVN in my test?
> 
> 
> 
> 
> 
> > Hi,
> > 
> > 
> > I'm trying to import my SVN repository into GIT and its throwing an
> > Assertion Failed error message in text_delta.c  Can someone help me?
> > 
> > The assertion failed error occurs when running 'svn diff -r 288:289'
> > which contains only one change - a change made to a binary file.
> > That binary file is the Eclipse dataModel file, both revs (288,
> > 289) have the file marked as application/octet-stream using the
> > svn:mime-type property
> > 
> > 
> > subversion - 1.5.4
> > git        - 1.6.0.6
> > 
> > The SVN repository was started using 1.4.6, if that matters
> > 
> > Here's the exact error message:
> > 
> > -------
> > $ svn diff -r 288:289
> > svn: subversion/libsvn_delta/text_delta.c:609: apply_window:
> > Assertion `window->sview_len == 0 || (window->sview_offset >=
> > ab->sbuf_offset && (window->sview_offset + window->sview_len >=
> > ab->sbuf_offset + ab->sbuf_len))' failed.
> > Aborted
> > -------
> > 
> > 
> > Thanks!  

← back to recent threads