Skip to content

Instantly share code, notes, and snippets.

@troter
troter / mercurial_i18n_doc_generate.patch
Last active December 17, 2015 00:00
[WIP]mercurail i18n doc generate patch: make clean all LC_ALL=ja_JP.UTF-8 LANGUAGE=ja
# HG changeset patch
# User Takumi IINO <trot.thunder@gmail.com>
# Date 1367677871 -32400
# Sat May 04 23:31:11 2013 +0900
# Branch stable
# Node ID 460c0546e96ba7dd670876ff76757286dd67219c
# Parent a6542a670ece8e13ae7b32ef28e2816d63120524
doc: move to i18n translation source directory
diff --git a/.hgignore b/.hgignore
@troter
troter / serve.py
Created March 1, 2013 10:10
run reviewboard with tornado (without apache)
#!/bin/env python
execfile('./htdocs/reviewboard.wsgi')
from tornado.options import options, define, parse_command_line
import tornado.httpserver
import tornado.ioloop
import tornado.web
import tornado.wsgi
define('port', type=int, default=8080)
#!python
** Mercurial version (2.4+6-35ba170c0f82). TortoiseHg version (2.6)
** Command:
** CWD: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\TortoiseHg
** Encoding: cp932
** Extensions loaded: hgsubversion, graphlog, rebase, transplant, eol, extdiff, mq, hgbb
** Python version: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-4.8.0 PyQt-4.9.1
@troter
troter / conf.py
Created July 16, 2012 04:34
Sphinx extension for raw files, like a CNAME.
sys.path += ['.']
extensions += ['sphinxcontrib_rawfiles']
# Files you want to copy
rawfiles = ['CNAME']
@troter
troter / gist:2226607
Created March 28, 2012 14:26
$ PATH="`pwd`/../hg-python26:`pwd`/..:$PATH" ./run-tests.py -l test-lfconvert.t
$ PATH="`pwd`/../hg-python26:`pwd`/..:$PATH" ./run-tests.py -l test-lfconvert.t # 16295 (ba42eb722bb3) default
--- c:\MinGW\msys\1.0\home\takumi\hg-2.1\tests\test-lfconvert.t
+++ c:\MinGW\msys\1.0\home\takumi\hg-2.1\tests\test-lfconvert.t.err
@@ -51,8 +51,6 @@
skipping incorrectly formatted tag IncorrectlyFormattedTag!
skipping incorrectly formatted id invalidhash
no mapping for id 0123456789abcdef
- abort: renamed/copied largefile large3 becomes symlink
- [255]
@troter
troter / 16279
Created March 27, 2012 15:59
$ PATH="`pwd`/../hg-python26:`pwd`/..:$PATH" ./run-tests.py -l test-casefolding.t
$ PATH="`pwd`/../hg-python26:`pwd`/..:$PATH" ./run-tests.py -l test-casefolding.t # 16279 (531e69ff348f)
--- c:\MinGW\msys\1.0\home\takumi\hg-2.1\tests\test-casefolding.t
+++ c:\MinGW\msys\1.0\home\takumi\hg-2.1\tests\test-casefolding.t.err
@@ -66,10 +66,17 @@
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
$ echo gold > a
$ hg up
- a: untracked file differs
- abort: untracked files in working directory differ from files in requested revision
@troter
troter / gist:2193220
Created March 25, 2012 12:11
hackable mercurial 16279 (531e69ff348f) のテスト結果
Skipped test-add.t: system supports Windows
Skipped test-addremove.t: system supports Windows
Skipped test-alias.t: missing feature: system() uses sh
Skipped test-archive-symlinks.t: missing feature: symbolic links
Skipped test-archive.t: missing feature: platform and python can manage 'hg serve -d'
Skipped test-audit-path.t: missing feature: symbolic links
Skipped test-bad-pull.t: missing feature: platform and python can manage 'hg serve -d'
Skipped test-bisect.t: missing feature: system() uses sh
Skipped test-bookmarks-pushpull.t: missing feature: platform and python can manage 'hg serve -d'
Skipped test-bundle.t: missing feature: system() uses sh
@troter
troter / gist:2192936
Created March 25, 2012 11:12
hackable mercurial 2.1 のテスト結果
Skipped test-add.t: system supports Windows
Skipped test-addremove.t: system supports Windows
Skipped test-alias.t: missing feature: system() uses sh
Skipped test-archive-symlinks.t: missing feature: symbolic links
Skipped test-archive.t: missing feature: platform and python can manage 'hg serve -d'
Skipped test-audit-path.t: missing feature: symbolic links
Skipped test-bad-pull.t: missing feature: platform and python can manage 'hg serve -d'
Skipped test-bisect.t: missing feature: system() uses sh
Skipped test-bookmarks-pushpull.t: missing feature: platform and python can manage 'hg serve -d'
Skipped test-bundle.t: missing feature: system() uses sh
@troter
troter / gist:2145640
Created March 21, 2012 08:40
mercurial-2.1 + Python 2.7.2 traceback
** 予期せぬ例外が発生しました
** http://mercurial.selenic.com/wiki/BugTracker まで
** 以下の情報を報告してください。
** Python 2.7.2 (default, Feb 27 2012, 17:38:03) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]
** Mercurial Distributed SCM (version 2.1)
** Extensions loaded: churn, color, convert, eol, extdiff, fetch, graphlog, mq, pager, progress, rebase, record, transplant
Traceback (most recent call last):
File "/home/takumi/.pythonbrew/pythons/Python-2.7.2/bin/hg", line 38, in <module>
mercurial.dispatch.run()
File "/home/takumi/.pythonbrew/pythons/Python-2.7.2/lib/python2.7/site-packages/mercurial/dispatch.py", line 27, in run
@troter
troter / gist:2027972
Created March 13, 2012 10:11
rackhub.netにpythonbrewでpython-2.7/2をインストールしようとするとtest_uuidのテストに失敗する
test_uuid
test test_uuid failed -- Traceback (most recent call last):
File "/home/rackhuber/.pythonbrew/build/Python-2.7.2/Lib/test/test_uuid.py", line 306, in test_ifconfig_getnode
node = uuid._ifconfig_getnode()
File "/home/rackhuber/.pythonbrew/build/Python-2.7.2/Lib/uuid.py", line 321, in _ifconfig_getnode
mac = _find_mac('ifconfig', args, ['hwaddr', 'ether'], lambda i: i+1)
File "/home/rackhuber/.pythonbrew/build/Python-2.7.2/Lib/uuid.py", line 311, in _find_mac
words[get_index(i)].replace(':', ''), 16)
ValueError: invalid literal for int() with base 16: '00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00'