bzr fast-export outputs bad "reset" commands
Bug #598060 reported by
Gisle Aas
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Fast Import |
Fix Released
|
Medium
|
Jelmer Vernooij |
Bug Description
Running 'bzr fast-export repo' outputs reset commands like these:
reset refs/tags/0.5\nfrom :12\n
reset refs/tags/
reset refs/tags/
reset refs/tags/
There should be actually newlines in this output instead of "\n" sequences.
I'm using bzr-fastimport-r276 with bzr-2.1.1 (on top of python 2.4.3)
Related branches
affects: | bzr-fastimport → python-fastimport |
affects: | python-fastimport → bzr-fastimport |
Changed in bzr-fastimport: | |
status: | New → Triaged |
status: | Triaged → Fix Committed |
importance: | Undecided → Medium |
assignee: | nobody → Jelmer Vernooij (jelmer) |
Changed in bzr-fastimport: | |
status: | Fix Committed → Fix Released |
milestone: | none → 0.10.0 |
To post a comment you must log in.
I tracked down the problem to ResetCommand. __repr_ _ returning an unicode string because the tagname it was passed was a unicode string. I fixed locally with the attached patch.
Python 2.4.3 (#1, Jun 11 2009, 14:09:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class X:
... def __repr__(self): return u"foo\nbar\n"
...
>>> x=X()
>>> repr(x)
'foo\\nbar\\n'
>>>