TortoiseHg 0.7 released

Bill Barry after.fallout at gmail.com
Fri Mar 6 08:22:21 CST 2009


Andreas Tscharner wrote:
>
> Yes, the win32text is active. I disabled it temporarily, created a new 
> file, added and committed it, changed it and selected the "Shelve 
> Changes" again:
>   
I don't think shelve, attic or mq will work with the win32text 
extension. I submitted a patch a while ago that would help this 
situation and mpm said he queued it on IRC, but it doesn't appear to be 
in this release.

The patch:
http://thread.gmane.org/gmane.comp.version-control.mercurial.devel/20498/focus=20499

after this patch is applied, win32text and other extensions that do 
encode/decode filtering should expect to do it by wrapping the new 
dispatch.runcommand method:

def wrapruncommand(origfn, lui, repo, cmd, fullargs, ui, options, d):
    runencode()
    try:
        origfn(ui, lui, repo, cmd, fullargs, ui, options, d)
    finally:
        rundecode()

def uisetup(ui):
    extensions.wrapfunction(dispatch, 'runcommand', wrapruncommand)


This way the commands running inside hg only ever see the encoded repo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20090306/017c7055/attachment.htm 


More information about the Mercurial mailing list