mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
tests: update test-log-exthook to pass our import checker
This commit is contained in:
parent
6f701f209e
commit
e97a9bbde9
@ -2,8 +2,12 @@ Test hg log changeset printer external hook
|
|||||||
-------------------------------------------
|
-------------------------------------------
|
||||||
|
|
||||||
$ cat > $TESTTMP/logexthook.py <<EOF
|
$ cat > $TESTTMP/logexthook.py <<EOF
|
||||||
> from mercurial import repair, commands
|
> from __future__ import absolute_import
|
||||||
> from mercurial import cmdutil
|
> from mercurial import (
|
||||||
|
> cmdutil,
|
||||||
|
> commands,
|
||||||
|
> repair,
|
||||||
|
> )
|
||||||
> def rot13description(self, ctx):
|
> def rot13description(self, ctx):
|
||||||
> summary = "summary".encode('rot13')
|
> summary = "summary".encode('rot13')
|
||||||
> description = ctx.description().strip().splitlines()[0].encode('rot13')
|
> description = ctx.description().strip().splitlines()[0].encode('rot13')
|
||||||
|
Loading…
Reference in New Issue
Block a user