Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
56ec5fe9
Commit
56ec5fe9
authored
Jul 31, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small cleanup
parent
ad548b85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
Tools/scripts/patchcheck.py
Tools/scripts/patchcheck.py
+4
-9
No files found.
Tools/scripts/patchcheck.py
View file @
56ec5fe9
...
...
@@ -39,18 +39,13 @@ def status(message, modal=False, info=None):
@
status
(
"Getting the list of files that have been added/changed"
,
info
=
lambda
x
:
n_files_str
(
len
(
x
)))
def
changed_files
():
"""Get the list of changed or added files from the VCS."""
if
os
.
path
.
isdir
(
os
.
path
.
join
(
SRCDIR
,
'.hg'
)):
cmd
=
'hg status --added --modified --no-status'
else
:
"""Get the list of changed or added files from Mercurial."""
if
not
os
.
path
.
isdir
(
os
.
path
.
join
(
SRCDIR
,
'.hg'
)):
sys
.
exit
(
'need a checkout to get modified files'
)
st
=
subprocess
.
Popen
(
cmd
.
split
(),
stdout
=
subprocess
.
PIPE
)
try
:
st
.
wait
()
cmd
=
'hg status --added --modified --no-status'
with
subprocess
.
Popen
(
cmd
.
split
(),
stdout
=
subprocess
.
PIPE
)
as
st
:
return
[
x
.
decode
().
rstrip
()
for
x
in
st
.
stdout
]
finally
:
st
.
stdout
.
close
()
def
report_modified_files
(
file_paths
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment