/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 breezy/git/hg.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright (C) 2009 Scott Chacon <schacon@gmail.com>
2
 
# Copyright (C) 2009 Jelmer Vernooij <jelmer@samba.org>
 
2
# Copyright (C) 2009-2018 Jelmer Vernooij <jelmer@jelmer.uk>
3
3
 
4
4
# This program is free software; you can redistribute it and/or modify
5
5
# it under the terms of the GNU General Public License as published by
13
13
#
14
14
# You should have received a copy of the GNU General Public License
15
15
# along with this program; if not, write to the Free Software
16
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
 
18
18
"""Compatibility for hg-git."""
19
19
 
 
20
from __future__ import absolute_import
 
21
 
20
22
import urllib
21
23
 
 
24
 
22
25
def format_hg_metadata(renames, branch, extra):
23
26
    """Construct a tail with hg-git metadata.
24
27
 
40
43
                   'hg-git'):
41
44
            continue
42
45
        else:
43
 
            extra_message += "extra : " + key + " : " +  urllib.quote(value) + "\n"
 
46
            extra_message += "extra : " + key + \
 
47
                " : " + urllib.quote(value) + "\n"
44
48
 
45
49
    if extra_message:
46
50
        return "\n--HG--\n" + extra_message