/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to hg.py

Raise exception on unknown keys.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
            if command == 'rename':
67
67
                before, after = data.split(" => ", 1)
68
68
                renames[after] = before
69
 
            if command == 'branch':
 
69
            elif command == 'branch':
70
70
                branch = data
71
 
            if command == 'extra':
 
71
            elif command == 'extra':
72
72
                before, after = data.split(" : ", 1)
73
73
                extra[before] = urllib.unquote(after)
 
74
            else:
 
75
                raise KeyError("unknown hg-git metadata command %s" % command)
74
76
    return (message, renames, branch, extra)