Created
May 28, 2012 15:09
-
-
Save hashimotor/2819644 to your computer and use it in GitHub Desktop.
HG foo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[extensions] | |
foo = /path/to/foo.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thanks to http://aru-and-dhi.blogspot.jp/2009/12/mercurial.html | |
from mercurial import hg | |
def foo(ui, node, **opts): | |
""" Say foo! """ | |
ui.write("Fooooooo!!!\n") | |
cmdtable={ | |
"foo": (foo, [], "") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir foo | |
$ cd foo | |
$ hg init | |
$ hg foo | |
Fooooooo!!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment