Skip to content

Instantly share code, notes, and snippets.

@regularfry
Created February 15, 2012 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save regularfry/1836562 to your computer and use it in GitHub Desktop.
Save regularfry/1836562 to your computer and use it in GitHub Desktop.
hg doff
"""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