user map to support equal sign

Bug #1101776 reported by Elan Ruusamäe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Fast Import
New
Undecided
Unassigned

Bug Description

in my bzr repo, i have some commits where author is QuotedPrintable encoded, and with current implementation it's not possible to remap these

user_mapper.py def _parse(self, lines):

            old, new = line.split('=', 1)

how about splitting with equal sign from the end:

            old = "=".join(line.split('=')[:-1]).strip()
            new = "=".join(line.split('=')[-1:]).strip()

then i could put to map file:
=?utf-8?q?Elan_Ruusam=C3=A4e?= <email address hidden>=Elan Ruusamäe <email address hidden>

Revision history for this message
Elan Ruusamäe (glen666) wrote :

proposed patch

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.