Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Commits
cf3bf3b0
Commit
cf3bf3b0
authored
5 years ago
by
Denis Laxalde
Browse files
Options
Downloads
Patches
Plain Diff
py3: use mail.parsebytes() in gnuarch catlog parser
We drop 'catlogparser' attribute now unused.
parent
9a43cef9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hgext/convert/gnuarch.py
+2
-3
2 additions, 3 deletions
hgext/convert/gnuarch.py
with
2 additions
and
3 deletions
hgext/convert/gnuarch.py
+
2
−
3
View file @
cf3bf3b0
...
...
@@ -7,7 +7,6 @@
# GNU General Public License version 2 or any later version.
from
__future__
import
absolute_import
import
email.parser
as
emailparser
import
os
import
shutil
import
stat
...
...
@@ -17,6 +16,7 @@
from
mercurial
import
(
encoding
,
error
,
mail
,
pycompat
,
util
,
)
...
...
@@ -69,7 +69,6 @@
self
.
changes
=
{}
self
.
parents
=
{}
self
.
tags
=
{}
self
.
catlogparser
=
emailparser
.
Parser
()
self
.
encoding
=
encoding
.
encoding
self
.
archives
=
[]
...
...
@@ -299,7 +298,7 @@
def
_parsecatlog
(
self
,
data
,
rev
):
try
:
catlog
=
self
.
catlogparser
.
parsestr
(
data
)
catlog
=
mail
.
parsebytes
(
data
)
# Commit date
self
.
changes
[
rev
].
date
=
dateutil
.
datestr
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment