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