[Fwd: Tailor fails to import hg branch into bzr]

Bug #69980 reported by Robert Collins
2
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned

Bug Description

-------- Forwarded Message --------
From: Ben Finney <email address hidden>
To: <email address hidden>
Subject: Tailor fails to import hg branch into bzr

Howdy,

I attempted to use 'tailor' to convert a Mercurial branch to Bazaar.
It failed on a particular revision involving a change to a file's
metadata.

The tailor config file used was:

=====
[DEFAULT]
verbose = True

[project]
target = bzr:target
start-revision = INITIAL
root-directory = /tmp/lna4
state-file = tailor.state
source = hg:source
subdir = .

[hg:source]
repository = /cyber/admin/training/lna4/lna4-current/

[bzr:target]
repository = lna4.devel/
=====

The command 'tailor --configfile tailor.cfg' failed after many
revisions with the following error:

=====
17:40:17 [I] -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
17:40:17 [I] Changeset "390e914309548c8be6fbc65d2e6914d44d33c724"
17:40:17 [I] Log message: Make the fix_minitoc program a proper executable
17:40:17 [I] Updating to '390e914309548c8be6fbc65d2e6914d44d33c724'
resolving manifests
getting latex/Makefile
getting latex/fix_minitoc
removing latex/fix_minitoc.pl
2 files updated, 0 files merged, 1 files removed, 0 files unresolved
17:40:18 [I] Renaming 'latex/fix_minitoc.pl' to 'latex/fix_minitoc'...
17:40:18 [E] Failure replaying: Revision: 390e914309548c8be6fbc65d2e6914d44d33c724
Date: 2006-02-17 15:16:47+11:00
Author: <email address hidden>
Entries: latex/Makefile(UPD), latex/fix_minitoc(REN from latex/fix_minitoc.pl), latex/fix_minitoc.pl(ADD)
Log: Make the fix_minitoc program a proper executable
Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/vcpx/target.py", line 117, in replayChangeset
    self._replayChangeset(changeset)
  File "/var/lib/python-support/python2.4/vcpx/target.py", line 320, in _replayChangeset
    action(group)
  File "/var/lib/python-support/python2.4/vcpx/target.py", line 337, in _addEntries
    self._addPathnames([e.name for e in entries])
  File "/var/lib/python-support/python2.4/vcpx/repository/bzr.py", line 230, in _addPathnames
    smart_add_tree(self._working_tree, names, recurse=False)
  File "/usr/lib/python2.4/site-packages/bzrlib/add.py", line 209, in smart_add_tree
    kind = bzrlib.osutils.file_kind(abspath)
  File "/usr/lib/python2.4/site-packages/bzrlib/osutils.py", line 125, in file_kind
    raise bzrlib.errors.NoSuchFile(f)
NoSuchFile: No such file: u'/tmp/lna4/latex/fix_minitoc.pl'
17:40:18 [E] Couldn't replay changeset
Revision: 390e914309548c8be6fbc65d2e6914d44d33c724
Date: 2006-02-17 15:16:47+11:00
Author: <email address hidden>
Entries: latex/Makefile(UPD), latex/fix_minitoc(REN from latex/fix_minitoc.pl), latex/fix_minitoc.pl(ADD)
Log: Make the fix_minitoc program a proper executable
Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/vcpx/source.py", line 139, in applyPendingChangesets
    replay(c)
  File "/var/lib/python-support/python2.4/vcpx/dualwd.py", line 107, in replayChangeset
    self.target.replayChangeset(changeset)
  File "/var/lib/python-support/python2.4/vcpx/target.py", line 117, in replayChangeset
    self._replayChangeset(changeset)
  File "/var/lib/python-support/python2.4/vcpx/target.py", line 320, in _replayChangeset
    action(group)
  File "/var/lib/python-support/python2.4/vcpx/target.py", line 337, in _addEntries
    self._addPathnames([e.name for e in entries])
  File "/var/lib/python-support/python2.4/vcpx/repository/bzr.py", line 230, in _addPathnames
    smart_add_tree(self._working_tree, names, recurse=False)
  File "/usr/lib/python2.4/site-packages/bzrlib/add.py", line 209, in smart_add_tree
    kind = bzrlib.osutils.file_kind(abspath)
  File "/usr/lib/python2.4/site-packages/bzrlib/osutils.py", line 125, in file_kind
    raise bzrlib.errors.NoSuchFile(f)
NoSuchFile: No such file: u'/tmp/lna4/latex/fix_minitoc.pl'
17:40:18 [I] 2 pending changesets in state file
17:40:18 [C] Upstream change application failed
Traceback (most recent call last):
  File "/usr/bin/tailor", line 35, in ?
    main()
  File "/var/lib/python-support/python2.4/vcpx/tailor.py", line 338, in main
    tailorizer()
  File "/var/lib/python-support/python2.4/vcpx/tailor.py", line 146, in __call__
    self.update()
  File "/var/lib/python-support/python2.4/vcpx/tailor.py", line 109, in update
    last, conflicts = dwd.applyPendingChangesets(
  File "/var/lib/python-support/python2.4/vcpx/dualwd.py", line 97, in applyPendingChangesets
    applied=applied)
  File "/var/lib/python-support/python2.4/vcpx/source.py", line 139, in applyPendingChangesets
    replay(c)
  File "/var/lib/python-support/python2.4/vcpx/dualwd.py", line 107, in replayChangeset
    self.target.replayChangeset(changeset)
  File "/var/lib/python-support/python2.4/vcpx/target.py", line 117, in replayChangeset
    self._replayChangeset(changeset)
  File "/var/lib/python-support/python2.4/vcpx/target.py", line 320, in _replayChangeset
    action(group)
  File "/var/lib/python-support/python2.4/vcpx/target.py", line 337, in _addEntries
    self._addPathnames([e.name for e in entries])
  File "/var/lib/python-support/python2.4/vcpx/repository/bzr.py", line 230, in _addPathnames
    smart_add_tree(self._working_tree, names, recurse=False)
  File "/usr/lib/python2.4/site-packages/bzrlib/add.py", line 209, in smart_add_tree
    kind = bzrlib.osutils.file_kind(abspath)
  File "/usr/lib/python2.4/site-packages/bzrlib/osutils.py", line 125, in file_kind
    raise bzrlib.errors.NoSuchFile(f)
bzrlib.errors.NoSuchFile: No such file: u'/tmp/lna4/latex/fix_minitoc.pl'
=====

The versions of the software are:

=====
$ tailor --version
0.9.26
$ hg --version | head -n 1
Mercurial Distributed SCM (version 0.9.1)
$ bzr --version | head -n 1
Bazaar (bzr) 0.10.0
$ aptitude show bzrtools | grep Version:
Version: 0.10.0-2
=====

The Mercurial branch is here:

    <URL:http://www.cyber.com.au/~benf/archives/hg/lna4/>

I'll keep it at that location until at least 2006-11-15. Please mirror
it elsewhere and show its new location here in this bug report if you
need it longer than that.

 affects /products/bzr

--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Revision history for this message
ash (shamrin) wrote :

Does this bug really belong here? If I understand correctly, it's a bug in Tailor, not in bzr.

Revision history for this message
Wouter van Heyst (larstiq) wrote : Re: [Bug 69980] Re: [Fwd: Tailor fails to import hg branch into bzr]

On Mon, Dec 11, 2006 at 05:24:42PM -0000, ash wrote:
> Does this bug really belong here? If I understand correctly, it's a bug
> in Tailor, not in bzr.

Ben and Robert discussed this on irc 2006-11-01, I think the issue was
bzr failing to replay a change.

Wouter van Heyst

Revision history for this message
Martin Pool (mbp) wrote :

Is this going to be reproducible in Bazaar alone? Can we describe what Tailor wanted that Bazaar didn't do?

Changed in bzr:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Bazaar because there has been no activity for 60 days.]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.