Created
February 15, 2012 15:15
-
-
Save regularfry/1836562 to your computer and use it in GitHub Desktop.
hg doff
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
"""doff | |
Touches its forelock. | |
""" | |
from random import randint | |
from mercurial import commands | |
commands.norepo += " doff" | |
greetings=[ | |
"Hello", | |
"Good day", | |
"Greetings", | |
"Best wishes", | |
"Merry meet" | |
] | |
titles=[ | |
"your Excellency", | |
"your Honour", | |
"Most Worshipful", | |
"your Esteemed Majesty", | |
"your worship", | |
"your Grace", | |
"your Highness" | |
] | |
def doff(ui): | |
print "%s, %s"%(greetings[randint(0,len(greetings)-1)], | |
titles[randint(0,len(titles)-1)]) | |
cmdtable = { | |
"doff": (doff,[], "hg doff") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment