##// END OF EJS Templates
py3: port test-log-exthook.t to Python 3...
Augie Fackler -
r40468:005bc856 default
parent child Browse files
Show More
@@ -309,6 +309,7 b' test-linelog.py'
309 test-linerange.py
309 test-linerange.py
310 test-locate.t
310 test-locate.t
311 test-lock-badness.t
311 test-lock-badness.t
312 test-log-exthook.t
312 test-log-linerange.t
313 test-log-linerange.t
313 test-log.t
314 test-log.t
314 test-logexchange.t
315 test-logexchange.t
@@ -9,10 +9,12 b' Test hg log changeset printer external h'
9 > logcmdutil,
9 > logcmdutil,
10 > repair,
10 > repair,
11 > )
11 > )
12 > def brot13(b):
13 > return codecs.encode(b.decode('utf8'), 'rot-13').encode('utf8')
12 > def rot13description(self, ctx):
14 > def rot13description(self, ctx):
13 > summary = codecs.encode("summary", 'rot-13')
15 > description = ctx.description().strip().splitlines()[0]
14 > description = ctx.description().strip().splitlines()[0].encode('rot13')
16 > self.ui.write(b"%s: %s\n" % (brot13(b"summary"),
15 > self.ui.write("%s: %s\n" % (summary, description))
17 > brot13(description)))
16 > def reposetup(ui, repo):
18 > def reposetup(ui, repo):
17 > logcmdutil.changesetprinter._exthook = rot13description
19 > logcmdutil.changesetprinter._exthook = rot13description
18 > EOF
20 > EOF
General Comments 0
You need to be logged in to leave comments. Login now