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
3008d59f
Commit
3008d59f
authored
Apr 20, 2003
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finally added a -h option to print the module docstring and exit. ;)
parent
ab3ba4c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Tools/scripts/logmerge.py
Tools/scripts/logmerge.py
+6
-2
No files found.
Tools/scripts/logmerge.py
View file @
3008d59f
...
...
@@ -28,9 +28,10 @@ output to checkin messages belonging to the CVS head (trunk). (It
produces some output if tag is a non-branch tag, but this output is
not very useful.)
-h prints this message and exits.
XXX This code was created by reverse engineering CVS 1.9 and RCS 5.7
from their output.
"""
import
os
,
sys
,
getopt
,
re
...
...
@@ -43,7 +44,7 @@ def main():
truncate_last
=
0
reverse
=
0
branch
=
None
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
"trb:"
)
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
"trb:
h
"
)
for
o
,
a
in
opts
:
if
o
==
'-t'
:
truncate_last
=
1
...
...
@@ -51,6 +52,9 @@ def main():
reverse
=
1
elif
o
==
'-b'
:
branch
=
a
elif
o
==
'-h'
:
print
__doc__
sys
.
exit
(
0
)
database
=
[]
while
1
:
chunk
=
read_chunk
(
sys
.
stdin
)
...
...
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