-
Website
http://toxicsoftware.com/ -
Original page
http://toxicsoftware.com/hgkeychain/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
schwa
20 comments · 2 points
-
Alexander Mikhalev
1 comment · 1 points
-
myxibrium
1 comment · 1 points
-
somegeekintn
1 comment · 1 points
-
Stewf
2 comments · 1 points
-
-
Popular Threads
-
ICE Amsterdam 09
4 weeks ago · 1 comment
-
ICE Amsterdam 09
Cheers,
Giorgos
1 It disables Mercurial's demandimport module. I couldn't get demandimport to work with my imports. And after a quick google I found it easier to disable the module than to fix things. Hopefully an hg expert can help me with this.
2 it uses a Mac OS specific compiled C module.
3 It monkey patches mercurial to override the password manager. I had to do this because I couldn't see how to access the password manager legitimately.
I don't think this extension is suitable to be included with mercurial. But I will look into the idea of creating a patch that will provide this functionality in a less hacky manner.
Not knowing python I did not end up with anything publishable, just a ruby wrapper.
Pure python keychain access: http://muffinresearch.co.uk/archives/2008/02/05... has a module for keychain access, without a .so required.Maybe this is interesting for you.
Python conventions: Your code looks quite Ruby-like, you can monkey-patch (if you must) in a small scale without that __metaclass__ voodoo, by simply defining a method outside the class and assigning it:
>>> class Foo(object):
... def bar(self):
... print "FooBar"
...
>>> _baseFooBar = Foo.bar
>>> def newBar(self):
... print "NewBar"
... _baseFooBar(self)
...
>>> Foo.bar = newBar
>>> Foo().bar()
NewBar
FooBar