Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
irker
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iDB
irker
Commits
bbd8ed9f
Commit
bbd8ed9f
authored
Oct 4, 2012
by
Eric S. Raymond
Browse files
Options
Downloads
Patches
Plain Diff
Document the test filter better.
parent
5a42905c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
filter-test.py
+6
-7
6 additions, 7 deletions
filter-test.py
with
6 additions
and
7 deletions
filter-test.py
+
6
−
7
View file @
bbd8ed9f
...
@@ -2,18 +2,17 @@
...
@@ -2,18 +2,17 @@
#
#
# Test hook to launch an irker instance (if it doesn't already exist)
# Test hook to launch an irker instance (if it doesn't already exist)
# just before shipping the notification. We start it in in another terminal
# just before shipping the notification. We start it in in another terminal
# so you can watch the debug messages. Probably only of interest only to
# so you can watch the debug messages. Intended to be used in the root
# directory of the irker repo. Probably only of interest only to irker
# developers
# developers
#
#
# To use it, set up irkerhook.py to file on each commit.
# To use this, set up irkerhook.py to fire on each commit. Creating a
# Then set the filtercmd variable in your repo config as follows:
# .git/hooks/post-commit file containing the line "irkerhook.py"; be
# sure to make the opos-commit file executable. Then set the
# filtercmd variable in your repo config as follows:
#
#
# [irker]
# [irker]
# filtercmd = filter-test.py
# filtercmd = filter-test.py
#
# This is rather antisocial - imagine thousands of irkerds holding open
# connections to IRCDs. It's better to go through an instance running
# at your forge or set up for shared use by your intranet administrator.
import
os
,
sys
,
json
,
subprocess
,
time
import
os
,
sys
,
json
,
subprocess
,
time
metadata
=
json
.
loads
(
sys
.
argv
[
1
])
metadata
=
json
.
loads
(
sys
.
argv
[
1
])
...
...
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