[PATCH 1 of 4] Add an 'exact' encoder/decoder

Mark Hammond mhammond at skippinet.com.au
Fri Apr 17 20:44:52 CDT 2009


# HG changeset patch
# User Mark Hammond <mhammond at skippinet.com.au>
# Date 1240017661 -36000
# Node ID 7e79a93a07a0f60c8ca04d7bf9e58a67ee553c12
# Parent  fc78313cba53d982b34a1516b81348a8b89bd867
Add an 'exact' encoder/decoder

diff --git a/hgext/win32text.py b/hgext/win32text.py
--- a/hgext/win32text.py
+++ b/hgext/win32text.py
@@ -95,6 +95,7 @@
     'macdumbencode:': macdumbencode,
     'macdecode:': macdecode,
     'macencode:': macencode,
+    'exact:': lambda s, cmd, **kw: s,
     }
 
 def forbidnewline(ui, repo, hooktype, node, newline, **kwargs):


More information about the Mercurial-devel mailing list