SHA256
1
0
forked from pool/breezy
breezy/7531_7530.diff
Martin Pluskal c1a7479d40 Accepting request 813471 from home:pgajdos:python
- version update to 3.1.0
  3.0.3
  Bug Fixes
  *********
   * Don't throw an error attempting to read the parent of a ref.
     (Jelmer Vernooij)
   * Fix fast-exporting of symlinks on Python 3. (Jelmer Vernooij, #1851478)
   * Don't rely on private transport attribute in fast-import.
     (Jelmer Vernooij, #1854607)
   * Fix conversion of time_t to int on certain platforms (arm64, armhf,
     ppc64el). (Jelmer Vernooij)
  External Compatibility Breaks
  *****************************
  * The ``brz init-repo`` command has been renamed to
    ``brz init-shared-repo`` to emphasize that it creates
    shared repositories rather than just any kind of repository.
    (Jelmer Vernooij)
  New Features
  ************
  * A new ``brz land`` command can merge merge proposals on Launchpad,
    GitHub and GitLab sites. (Jelmer Vernooij, #1816213)
  * The 'patch' command is now bundled with brz.
    Imported from bzrtools by Aaron Bentley. (Jelmer Vernooij)
  * The 'quilt' plugin, extracted from brz-debian, is now
    bundled. (Jelmer Vernooij)
  * A new ``calculate_revnos`` configuration option (defaults to enabled)
    can be used to disable revno display for branch formats that
    do not natively store revnos. This speeds up ``brz log`` on
    the Samba git branch by 33%.
    (Jelmer Vernooij)

OBS-URL: https://build.opensuse.org/request/show/813471
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/breezy?expand=0&rev=8
2020-06-11 11:05:22 +00:00

34 lines
1.4 KiB
Diff

=== modified file 'a/breezy/git/mapping.py'
--- a/breezy/git/mapping.py
+++ b/breezy/git/mapping.py
@@ -107,6 +107,8 @@ def fix_person_identifier(text):
if b"<" not in text and b">" not in text:
username = text
email = text
+ elif b">" not in text:
+ return text + b">"
else:
if text.rindex(b">") < text.rindex(b"<"):
raise ValueError(text)
--- a/breezy/git/tests/test_mapping.py
+++ b/breezy/git/tests/test_mapping.py
@@ -442,9 +442,14 @@ class FixPersonIdentifierTests(tests.Tes
fix_person_identifier(b"bar@blah.nl"))
def test_fix(self):
- self.assertEqual(b"person <bar@blah.nl>",
- fix_person_identifier(b"somebody <person <bar@blah.nl>>"))
- self.assertEqual(b"person <bar@blah.nl>",
- fix_person_identifier(b"person<bar@blah.nl>"))
+ self.assertEqual(
+ b"person <bar@blah.nl>",
+ fix_person_identifier(b"somebody <person <bar@blah.nl>>"))
+ self.assertEqual(
+ b"person <bar@blah.nl>",
+ fix_person_identifier(b"person<bar@blah.nl>"))
+ self.assertEqual(
+ b'Rohan Garg <rohangarg@kubuntu.org>',
+ fix_person_identifier(b'Rohan Garg <rohangarg@kubuntu.org'))
self.assertRaises(ValueError,
fix_person_identifier, b"person >bar@blah.nl<")