/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-07-18 23:14:00 UTC
  • mfrom: (7490.40.62 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200718231400-jaes9qltn8oi8xss
Merge lp:brz/3.1.

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
20
import urllib
21
21
 
 
22
 
22
23
def format_hg_metadata(renames, branch, extra):
23
24
    """Construct a tail with hg-git metadata.
24
25
 
40
41
                   'hg-git'):
41
42
            continue
42
43
        else:
43
 
            extra_message += "extra : " + key + " : " +  urllib.quote(value) + "\n"
 
44
            extra_message += "extra : " + key + \
 
45
                " : " + urllib.quote(value) + "\n"
44
46
 
45
47
    if extra_message:
46
48
        return "\n--HG--\n" + extra_message