Warning on removed files

Asked by Seb on 2008-03-02

In earlier version of fast-import there used to be a crash on files removed:

$ /del/dvcs-test/git-misc/fast-export/hg-fast-export.py --marks="marks" --heads="heads" --status="status" -r /del/dvcs-test/hg | bzr fast-import -

master: Exporting simple delta revision 19/10838 with 12/2/13 added/changed/removed files
bzr: ERROR: The file id "browsercomponentspla-20080302145212-76r12m14er6mlhu5-53
4" is not present in the tree <Inventory object at 2af416d79dd0, contents={'TREE
_ROOT': InventoryDirectory('TREE_ROOT', u'', parent_id=None, revision='dietrich@
mozilla.com-20070323005655-99s9xtrm1z7y0ja0')}>.
Traceback (most recent call last):
...

Now with latest version it was replaced by a simple warning, is that normal ?
WARNING: ignoring delete of browser/components/places/tests/Makefile.in as not in inventory (:19)
WARNING: ignoring delete of browser/components/places/tests/bookmarks/head_bookmarks.js as not in inventory (:19)
...

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Fast Import Edit question
Assignee:
No assignee Edit question
Last query:
2008-03-02
Last reply:
2008-03-07

This problem is reported as a warning (vs an error) because I've tracked down the problem to bad input on occasions and because deleting a missing file isn't (by itself) something that will give a bad result. Having said that, this is not a good warning to be getting as it suggests that the importer has calculated a different inventory of files to what the exporter/source has.

If you get lots (i.e. more than one or two) of these warnings, the importer (or exporter) has a bug. One such bug was fixed in rev 55 of bzr-fastimport.

Can you help with this problem?

Provide an answer of your own, or ask Seb for more information if necessary.

To post a message you must log in.