You are viewing gary_kramlich

gary_kramlich - quick monotone hack [entries|archive|friends|userinfo]
gary_kramlich

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

quick monotone hack [Oct. 8th, 2007|11:53 pm]
Previous Entry Add to Memories Share Next Entry
I've been plagued by having multiple keys in monotone and doing a merge without specifying one. Well those days are over, drop this in ~/.monotone/monotonerc and edit accordingly:

function get_branch_key (branch)
d = { ["im.pidgin"]="grim@pidgin.im",
["org.guifications"]="grim@guifications.org",
["com.reaperworld"]="grim@reaperworld.com"
}

for k, v in pairs(d) do
if (k == branch) then
return v
end
end
end

I'll probably extend this at some point to check my keystore, and do the maintenance for me, but this works for now ;)
linkReply

Comments:
[User Picture]From: resiak
2007-10-09 10:11 am (UTC)

(Link)

You can turn hashes into French cities in Lua?!