以下を読んで、見様見真似で Mercurial の開発MLに patch を投稿した。
- https://www.mercurial-scm.org/wiki/ContributingChanges
- http://patchwork.mercurial-scm.org/patch/12248/mbox/
- PatchWork というPatch管理システムにあるメールの一例
--- fabric/tasks.py 2017-04-24 19:28:00.000000000 -0400 | |
+++ fabric/tasks.py.new 2017-10-13 09:41:45.617000206 -0400 | |
@@ -409,6 +409,22 @@ | |
# This prevents Fabric from continuing on to any other tasks. | |
# Otherwise, pull in results from the child run. | |
ran_jobs = jobs.run() | |
+ print "----" | |
+ from collections import Counter | |
+ c = Counter() | |
+ failed_hosts = [] |
#!/usr/bin/env python | |
# encoding: utf-8 | |
import sys | |
# | |
# Note: This code works on Python2 only! | |
# | |
ignore_functions = [ |
以下を読んで、見様見真似で Mercurial の開発MLに patch を投稿した。
diff --git a/python/JSONtoObj.c b/python/JSONtoObj.c | |
index 79d9f1a..610367b 100644 | |
--- a/python/JSONtoObj.c | |
+++ b/python/JSONtoObj.c | |
@@ -136,9 +136,9 @@ PyObject* JSONToObj(PyObject* self, PyObject *args, PyObject *kwargs) | |
Object_newUnsignedLong, | |
Object_newDouble, | |
Object_releaseObject, | |
- PyObject_Malloc, | |
- PyObject_Free, |
#!/usr/bin/env python | |
from email.mime.text import MIMEText | |
import email.utils | |
import os | |
import subprocess | |
import sys | |
import smtplib | |
import tempfile |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
int main(int argc, char *argv[]) { | |
int sfd = socket(AF_INET, SOCK_STREAM, 0); | |
if (sfd == -1) { | |
perror("socket"); |
<source> | |
type forward | |
port 24225 | |
</source> | |
<match hoge.fuga.foo.**> | |
type file_alternative | |
path /path/to/%Y/%m/%Y-%m-%d.log | |
time_slice_wait 1m | |
utc |