/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

Clean up trailing whitespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
            extra_message += "rename : " + oldfile + " => " + newfile + "\n"
35
35
 
36
36
    for key, value in extra.iteritems():
37
 
        if key in ('author', 'committer', 'encoding', 'message', 'branch', 'hg-git'):
 
37
        if key in ('author', 'committer', 'encoding', 'message', 'branch',
 
38
                   'hg-git'):
38
39
            continue
39
40
        else:
40
41
            extra_message += "extra : " + key + " : " +  urllib.quote(value) + "\n"
49
50
    """Extract Mercurial metadata from a commit message.
50
51
 
51
52
    :param message: Commit message to extract from
52
 
    :return: Tuple with original commit message, renames, branch and 
 
53
    :return: Tuple with original commit message, renames, branch and
53
54
        extra data.
54
55
    """
55
56
    split = message.split("\n--HG--\n", 1)