Error running svn-import ... ghost in ancestry?

Dan MacMillan danm at emerald-associates.com
Fri Mar 23 23:30:46 UTC 2012


Jelmer,

 

No joy.  Same error, same stack trace.

 

2012-03-23 17:27:49.16 D:\Develop\bzrconvert>bzr svn-import -Derror
--layout=trunk2 --verbose --keep --all https://dev.emerald-assoc

iates.com/cosmic/svn/tng/mrld-p3e-activity-property-rollup-svc

Using repository layout: trunk2

bzr: ERROR: bzrlib.errors.GhostRevisionsHaveNoRevno: Could not determine
revno for {svn-v4:f28f6c95-3c17-0410-b47b-f95b9e4a518a:tng/

mrld-p3e-activity-property-rollup-svc/branches/api6.2.1:5152} because
its ancestry shows a ghost at {svn-v4:f28f6c95-3c17-0410-b47b-

f95b9e4a518a:tng/mrld-p3e-activity-property-rollup-svc/branches/api6.2.1
:5152}

 

Traceback (most recent call last):

  File "bzrlib\commands.pyo", line 920, in exception_to_return_code

  File "bzrlib\commands.pyo", line 1131, in run_bzr

  File "bzrlib\commands.pyo", line 673, in run_argv_aliases

  File "bzrlib\commands.pyo", line 695, in run

  File "bzrlib\cleanup.pyo", line 136, in run_simple

  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups

  File "C:/Program Files (x86)/Bazaar/plugins\svn\commands.py", line
192, in run

  File "C:/Program Files (x86)/Bazaar/plugins\svn\convert.py", line 402,
in convert_repository

  File "C:/Program Files (x86)/Bazaar/plugins\svn\convert.py", line 273,
in __init__

  File "C:/Program Files (x86)/Bazaar/plugins\svn\convert.py", line 353,
in _create_branches

  File "bzrlib\branch.pyo", line 1133, in pull

  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 995,
in pull

  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 948,
in _basic_pull

  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 883,
in _update_revisions

  File "bzrlib\decorators.pyo", line 218, in write_locked

  File "bzrlib\branch.pyo", line 815, in generate_revision_history

  File "bzrlib\graph.pyo", line 374, in find_distance_to_null

GhostRevisionsHaveNoRevno: Could not determine revno for
{svn-v4:f28f6c95-3c17-0410-b47b-f95b9e4a518a:tng/mrld-p3e-activity-prope
rty

-rollup-svc/branches/api6.2.1:5152} because its ancestry shows a ghost
at {svn-v4:f28f6c95-3c17-0410-b47b-f95b9e4a518a:tng/mrld-p3e-

activity-property-rollup-svc/branches/api6.2.1:5152}

Importing branches with prefix
/tng/mrld-p3e-activity-property-rollup-svc/

 

Dan MacMillan | Integration Specialist
Emerald Associates Inc.

Direct: 403.686.7100 ext 8930
Toll Free: 1.877.316.6005 ext 8930

 

Canada's Exclusive Oracle Primavera Platinum Partner

 

From: Jelmer [mailto:jvernooij at gmail.com] On Behalf Of Jelmer Vernooij
Sent: Friday, March 23, 2012 17:17
To: Dan MacMillan
Cc: bazaar at lists.canonical.com
Subject: Re: Error running svn-import ... ghost in ancestry?

 

Hi Dan,

It looks like the problem is that --keep doesn't imply --all at the
moment, whereas it should. Can you try again with --all too?

Cheers,

Jelmer

Am 24/03/12 00:03, schrieb Dan MacMillan: 

Jelmer,

 

I'm using Bazaar 2.5.0 and bzr-svn 1.1.2.

 

The error seems to be happening when it says "browsing branches".  It's
after it copies all the revisions in.  It's kind of hard to tell because
the line where that information gets printed keeps overwriting itself.
I copied the following output from just before the error happened.  I
think the information about how much data has been transferred etc. is
interfering with the output but I don't know how to turn that off.

 

  4217kB     2kB/s \
tng/mrld-p3e-activity-property-rollup-svc/branches/api6.2.1:5152
1/3es:browsing branches 0/5

 

2012-03-23 16:56:46.30 D:\Develop\bzrconvert>bzr svn-import -Derror
--layout=trunk2 --verbose --keep https://dev.emerald-associates.

com/cosmic/svn/tng/mrld-p3e-activity-property-rollup-svc

Using repository layout: trunk2

bzr: ERROR: bzrlib.errors.GhostRevisionsHaveNoRevno: Could not determine
revno for {svn-v4:f28f6c95-3c17-0410-b47b-f95b9e4a518a:tng/

mrld-p3e-activity-property-rollup-svc/branches/api6.2.1:5152} because
its ancestry shows a ghost at {svn-v4:f28f6c95-3c17-0410-b47b-

f95b9e4a518a:tng/mrld-p3e-activity-property-rollup-svc/branches/api6.2.1
:5152}

 

Traceback (most recent call last):

  File "bzrlib\commands.pyo", line 920, in exception_to_return_code

  File "bzrlib\commands.pyo", line 1131, in run_bzr

  File "bzrlib\commands.pyo", line 673, in run_argv_aliases

  File "bzrlib\commands.pyo", line 695, in run

  File "bzrlib\cleanup.pyo", line 136, in run_simple

  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups

  File "C:/Program Files (x86)/Bazaar/plugins\svn\commands.py", line
192, in run

  File "C:/Program Files (x86)/Bazaar/plugins\svn\convert.py", line 402,
in convert_repository

  File "C:/Program Files (x86)/Bazaar/plugins\svn\convert.py", line 273,
in __init__

  File "C:/Program Files (x86)/Bazaar/plugins\svn\convert.py", line 353,
in _create_branches

  File "bzrlib\branch.pyo", line 1133, in pull

  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 995,
in pull

  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 948,
in _basic_pull

  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 883,
in _update_revisions

  File "bzrlib\decorators.pyo", line 218, in write_locked

  File "bzrlib\branch.pyo", line 815, in generate_revision_history

  File "bzrlib\graph.pyo", line 374, in find_distance_to_null

GhostRevisionsHaveNoRevno: Could not determine revno for
{svn-v4:f28f6c95-3c17-0410-b47b-f95b9e4a518a:tng/mrld-p3e-activity-prope
rty

-rollup-svc/branches/api6.2.1:5152} because its ancestry shows a ghost
at {svn-v4:f28f6c95-3c17-0410-b47b-f95b9e4a518a:tng/mrld-p3e-

activity-property-rollup-svc/branches/api6.2.1:5152}

Importing branches with prefix
/tng/mrld-p3e-activity-property-rollup-svc/

 

Dan MacMillan | Integration Specialist
Emerald Associates Inc.

Direct: 403.686.7100 ext 8930
Toll Free: 1.877.316.6005 ext 8930

 

Canada's Exclusive Oracle Primavera Platinum Partner

 

From: Jelmer [mailto:jvernooij at gmail.com] On Behalf Of Jelmer Vernooij
Sent: Friday, March 23, 2012 16:53
To: Dan MacMillan
Cc: bazaar at lists.canonical.com
Subject: Re: Error running svn-import ... ghost in ancestry?

 

Hi Dan,

Am 23/03/12 23:36, schrieb Dan MacMillan: 

I think I figured this out.  I have some revisions in my Subversion
repository which BOTH delete a node, AND create another node by copying
from the node I'm deleting.  In the same revision.  I think Subversion's
flexibility is a detriment to me here.  The svn log output for that
revision follows:

 

------------------------------------------------------------------------

r5152 | danm | 2009-05-29 10:57:09 -0600 (Fri, 29 May 2009) | 2 lines

Changed paths:

   D /tng/mrld-p3e-activity-property-rollup-svc/branches/api6.2.1

   A /tng/mrld-p3e-activity-property-rollup-svc/trunk (from
/tng/mrld-p3e-activity-property-rollup-svc/branches/api6.2.1:5151)

 

Repatriate api6.2.1 branch to trunk.

------------------------------------------------------------------------

 

This is confusing bzr-svn.  In theory I don't think it should because
the Node-copyfrom-rev is 5151, which is the revision before this one,
and in that revision the node I'm copying from still exists.  But I
guess what I'm doing is kind of silly.

I'm curious why bzr-svn is trying to import this branch at all, as it
has been removed. It shouldn't be doing that unless you specify --all,
but in that case it should actually fetch that particular revision.







 The error is happening when I run bzr svn-import.

What version of bzr-svn are you using? And when exactly are you getting
the error? Can you perhaps paste the output when running "bzr
svn-import" with the -Derror option?

Cheers,

Jelmer







 

Dan MacMillan | Integration Specialist
Emerald Associates Inc.

Direct: 403.686.7100 ext 8930
Toll Free: 1.877.316.6005 ext 8930

 

Canada's Exclusive Oracle Primavera Platinum Partner

 

From: bazaar-bounces at lists.canonical.com
[mailto:bazaar-bounces at lists.canonical.com] On Behalf Of Jelmer Vernooij
Sent: Friday, March 23, 2012 16:21
To: bazaar at lists.canonical.com
Subject: Re: Error running svn-import ... ghost in ancestry?

 

Hi Dan,

Am 22/03/12 17:49, schrieb Dan MacMillan: 

I'm migrating some of our projects from Subversion into Bazaar and a
couple of them show errors like this:

 

bzr: ERROR: Could not determine revno for
{svn-v4:f28f6c95-3c17-0410-b47b-f95b9e4a518a:tng/mrld-p3e-activity-prope
rty-rollup-svc/branches/api6.2.1:5152} because its ancestry shows a
ghost at
{svn-v4:f28f6c95-3c17-0410-b47b-f95b9e4a518a:tng/mrld-p3e-activity-prope
rty-rollup-svc/branches/api6.2.1:5152}

 

I'm not sure how to interpret this.  It seems to be saying it is its own
ancestor?  Am I reading that right?

It's mostly saying that it's trying to determine the revision number for
a revision that is not actually present in the repository.

When are you getting this error, exactly?

Cheers,

Jelmer

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20120323/52ada0a3/attachment-0001.html>


More information about the bazaar mailing list