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
2f40bcebad30
Commit
2f40bcebad30
authored
6 years ago
by
Pulkit Goyal
Browse files
Options
Downloads
Patches
Plain Diff
py3: suppress the return value from .write() call
Differential Revision:
https://phab.mercurial-scm.org/D4591
parent
c8e371ee65a4
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
tests/test-convert-mtn.t
+3
-3
3 additions, 3 deletions
tests/test-convert-mtn.t
tests/test-diff-color.t
+1
-1
1 addition, 1 deletion
tests/test-diff-color.t
with
4 additions
and
4 deletions
tests/test-convert-mtn.t
+
3
−
3
View file @
2f40bceb
...
...
@@ -43,7 +43,7 @@
$
mkdir
dir
$
echo
b
>
dir
/
b
$
echo
d
>
dir
/
d
$
$PYTHON
-
c
'
open("bin", "wb").write(b"a
\\
x00b")
'
$
$PYTHON
-
c
'
open("bin", "wb").write(b"a
\\
x00b")
and None
'
$
echo
c
>
c
$
mtn
add
a
dir
/b dir/d
c
bin
mtn:
adding
'
a
'
to
workspace
manifest
...
...
@@ -65,7 +65,7 @@
$
echo
b
>>
dir
/
b
$
mtn
drop
c
mtn:
dropping
'
c
'
from
workspace
manifest
$
$PYTHON
-
c
'
open("bin", "wb").write(b"b
\\
x00c")
'
$
$PYTHON
-
c
'
open("bin", "wb").write(b"b
\\
x00c")
and None
'
$
mtn
ci
-
m update1
mtn: beginning commit on branch 'com.selenic.test'
mtn: committed revision 51d0a982464573a2a2cf5ee2c9219c652aaebeff
...
...
@@ -218,7 +218,7 @@
test
large
file
support
(
>
32
kB
)
>>>
fp
=
open
('
large-file
',
'
wb
')
>>>
for
x
in
range
(
10000
):
fp
.
write
(
b
'
%d\n
'
%
x
)
>>>
for
x
in
range
(
10000
):
fp
.
write
(
b
'
%d\n
'
%
x
)
and
None
>>>
fp
.
close
()
$
md5sum
.
py
large
-
file
5
d6de8a95c3b6bf9e0ffb808ba5299c1
large
-
file
...
...
This diff is collapsed.
Click to expand it.
tests/test-diff-color.t
+
1
−
1
View file @
2f40bceb
...
...
@@ -57,7 +57,7 @@
>>> with open('a', 'rb') as f:
... data = f.read()
>>> with open('a', 'wb') as f:
... f.write(data.replace(b'dd', b'dd \r'))
... f.write(data.replace(b'dd', b'dd \r'))
and None
$ hg diff --nodates
\x1b[0;1mdiff -r cf9f4ba66af2 a\x1b[0m (esc)
\x1b[0;31;1m--- a/a\x1b[0m (esc)
...
...
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