bp.fastimport.commands.CommitCommand.__init__'s file_iter argument is passed *AND* treated inconsistantly

Bug #406097 reported by Samuel Bronson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-fastimport
Fix Released
Low
Jelmer Vernooij

Bug Description

It seems that half the tests pass a callable returning an iterable and half of them pass an iterator.

It also seems that CommitCommand.__repr__ only works with iter_file as an iterable, and CommitCommand.dump_str only works with it as a callable.

Running "bzr fast-import foo.txt" results in callables being passed, some I'm going to assume that was what was intended unless you tell me otherwise.

Tags: core
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

It's meant to be an iterable, not a callable. I've fixed dump_str() in rev 194 accordingly.

All the tests still pass and in a quick inspection, I couldn't see where callables were being passed. Can you point to where's that's being done please?

Changed in bzr-fastimport:
importance: Undecided → Low
status: New → Triaged
Jelmer Vernooij (jelmer)
affects: bzr-fastimport → python-fastimport
Changed in python-fastimport:
assignee: nobody → Jelmer Vernooij (jelmer)
status: Triaged → Fix Committed
Jelmer Vernooij (jelmer)
Changed in python-fastimport:
status: Fix Committed → Fix Released
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.