[Updated] D8486: fastexport: adjust output to be more canonical
joerg.sonnenberger (Joerg Sonnenberger)
phabricator at mercurial-scm.org
Thu May 7 15:02:44 UTC 2020
Closed by commit rHGbe3f7db9b55a: fastexport: adjust output to be more canonical (authored by joerg.sonnenberger).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8486?vs=21233&id=21284
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8486/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8486
AFFECTED FILES
hgext/fastexport.py
tests/test-fastexport.t
CHANGE DETAILS
diff --git a/tests/test-fastexport.t b/tests/test-fastexport.t
--- a/tests/test-fastexport.t
+++ b/tests/test-fastexport.t
@@ -150,7 +150,7 @@
commit refs/heads/default
mark :3
- committer "debugbuilddag" <debugbuilddag> 0 -0000
+ committer debugbuilddag <debugbuilddag> 0 +0000
data 2
r0
M 644 :1 mf
@@ -197,7 +197,7 @@
commit refs/heads/default
mark :7
- committer "debugbuilddag" <debugbuilddag> 1 -0000
+ committer debugbuilddag <debugbuilddag> 1 +0000
data 2
r1
from :3
@@ -245,7 +245,7 @@
commit refs/heads/name1
mark :11
- committer "debugbuilddag" <debugbuilddag> 2 -0000
+ committer debugbuilddag <debugbuilddag> 2 +0000
data 2
r2
from :7
@@ -293,7 +293,7 @@
commit refs/heads/name1
mark :15
- committer "debugbuilddag" <debugbuilddag> 3 -0000
+ committer debugbuilddag <debugbuilddag> 3 +0000
data 2
r3
from :11
@@ -341,7 +341,7 @@
commit refs/heads/name1
mark :19
- committer "debugbuilddag" <debugbuilddag> 4 -0000
+ committer debugbuilddag <debugbuilddag> 4 +0000
data 2
r4
from :15
@@ -389,7 +389,7 @@
commit refs/heads/name2
mark :23
- committer "debugbuilddag" <debugbuilddag> 5 -0000
+ committer debugbuilddag <debugbuilddag> 5 +0000
data 2
r5
from :7
@@ -437,7 +437,7 @@
commit refs/heads/name2
mark :27
- committer "debugbuilddag" <debugbuilddag> 6 -0000
+ committer debugbuilddag <debugbuilddag> 6 +0000
data 2
r6
from :23
@@ -485,7 +485,7 @@
commit refs/heads/name2
mark :31
- committer "debugbuilddag" <debugbuilddag> 7 -0000
+ committer debugbuilddag <debugbuilddag> 7 +0000
data 2
r7
from :27
@@ -533,7 +533,7 @@
commit refs/heads/name2
mark :35
- committer "debugbuilddag" <debugbuilddag> 8 -0000
+ committer debugbuilddag <debugbuilddag> 8 +0000
data 2
r8
from :31
@@ -581,7 +581,7 @@
commit refs/heads/both
mark :39
- committer "debugbuilddag" <debugbuilddag> 9 -0000
+ committer debugbuilddag <debugbuilddag> 9 +0000
data 2
r9
from :35
@@ -633,7 +633,7 @@
commit refs/heads/both
mark :43
- committer "debugbuilddag" <debugbuilddag> 10 -0000
+ committer debugbuilddag <debugbuilddag> 10 +0000
data 3
r10
from :39
@@ -681,7 +681,7 @@
commit refs/heads/both
mark :47
- committer "debugbuilddag" <debugbuilddag> 11 -0000
+ committer debugbuilddag <debugbuilddag> 11 +0000
data 3
r11
from :43
@@ -691,7 +691,7 @@
commit refs/heads/both
mark :48
- committer "debugbuilddag" <debugbuilddag> 12 -0000
+ committer debugbuilddag <debugbuilddag> 12 +0000
data 3
r12
from :43
@@ -699,7 +699,7 @@
commit refs/heads/both
mark :49
- committer "test" <test> 13 -0000
+ committer test <test> 13 +0000
data 13
debugbuilddag
from :47
@@ -793,7 +793,7 @@
commit refs/heads/default
mark :3
- committer "debugbuilddag" <debugbuilddag> 0 -0000
+ committer debugbuilddag <debugbuilddag> 0 +0000
data 2
r0
M 644 :1 mf
@@ -845,7 +845,7 @@
commit refs/heads/default
mark :7
- committer "debugbuilddag" <debugbuilddag> 1 -0000
+ committer debugbuilddag <debugbuilddag> 1 +0000
data 2
r1
from :3
diff --git a/hgext/fastexport.py b/hgext/fastexport.py
--- a/hgext/fastexport.py
+++ b/hgext/fastexport.py
@@ -46,14 +46,14 @@
% rev
)
if user_person:
- return b'"' + user_person + b'" <' + user_email + b'>'
+ return b'%s <%s>' % (user_person, user_email)
else:
- return b"<" + user_email + b">"
+ return b"<%s>" % user_email
def convert_to_git_date(date):
timestamp, utcoff = date
- tzsign = b"+" if utcoff < 0 else b"-"
+ tzsign = b"+" if utcoff >= 0 else b"-"
if utcoff % 60 != 0:
raise error.Abort(
_(b"UTC offset in %b is not an integer number of seconds") % (date,)
To: joerg.sonnenberger, #hg-reviewers, marmoute
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200507/ef60c7aa/attachment-0001.html>
More information about the Mercurial-patches
mailing list