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
d4d2c567
Commit
d4d2c567
authored
6 years ago
by
Mark Thomas
Browse files
Options
Downloads
Patches
Plain Diff
py3: fix test-parse-date.t
Differential Revision:
https://phab.mercurial-scm.org/D5084
parent
4f1f0243
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/python3-whitelist
+1
-0
1 addition, 0 deletions
contrib/python3-whitelist
mercurial/utils/dateutil.py
+5
-5
5 additions, 5 deletions
mercurial/utils/dateutil.py
with
6 additions
and
5 deletions
contrib/python3-whitelist
+
1
−
0
View file @
d4d2c567
...
...
@@ -405,6 +405,7 @@
test-pager-legacy.t
test-pager.t
test-parents.t
test-parse-date.t
test-parseindex2.py
test-patch-offset.t
test-patch.t
...
...
This diff is collapsed.
Click to expand it.
mercurial/utils/dateutil.py
+
5
−
5
View file @
d4d2c567
...
...
@@ -303,8 +303,8 @@
if
not
date
:
raise
error
.
Abort
(
_
(
"
dates cannot consist entirely of whitespace
"
))
elif
date
[
0
]
==
"
<
"
:
elif
date
[
0
:
1
]
==
b
"
<
"
:
if
not
date
[
1
:]:
raise
error
.
Abort
(
_
(
"
invalid day spec, use
'
<DATE
'"
))
when
=
upper
(
date
[
1
:])
return
lambda
x
:
x
<=
when
...
...
@@ -307,9 +307,9 @@
if
not
date
[
1
:]:
raise
error
.
Abort
(
_
(
"
invalid day spec, use
'
<DATE
'"
))
when
=
upper
(
date
[
1
:])
return
lambda
x
:
x
<=
when
elif
date
[
0
]
==
"
>
"
:
elif
date
[
0
:
1
]
==
b
"
>
"
:
if
not
date
[
1
:]:
raise
error
.
Abort
(
_
(
"
invalid day spec, use
'
>DATE
'"
))
when
=
lower
(
date
[
1
:])
return
lambda
x
:
x
>=
when
...
...
@@ -312,8 +312,8 @@
if
not
date
[
1
:]:
raise
error
.
Abort
(
_
(
"
invalid day spec, use
'
>DATE
'"
))
when
=
lower
(
date
[
1
:])
return
lambda
x
:
x
>=
when
elif
date
[
0
]
==
"
-
"
:
elif
date
[
0
:
1
]
==
b
"
-
"
:
try
:
days
=
int
(
date
[
1
:])
except
ValueError
:
...
...
@@ -323,8 +323,8 @@
%
date
[
1
:])
when
=
makedate
()[
0
]
-
days
*
3600
*
24
return
lambda
x
:
x
>=
when
elif
"
to
"
in
date
:
a
,
b
=
date
.
split
(
"
to
"
)
elif
b
"
to
"
in
date
:
a
,
b
=
date
.
split
(
b
"
to
"
)
start
,
stop
=
lower
(
a
),
upper
(
b
)
return
lambda
x
:
x
>=
start
and
x
<=
stop
else
:
...
...
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