Show More
@@ -54,8 +54,8 b' tool itself by doctest' | |||
|
54 | 54 | Check i18n cache isn't reused after encoding change: |
|
55 | 55 | |
|
56 | 56 | $ cat > $TESTTMP/encodingchange.py << EOF |
|
57 | > from mercurial.i18n import _ | |
|
57 | 58 | > from mercurial import encoding, registrar |
|
58 | > from mercurial.i18n import _ | |
|
59 | 59 | > cmdtable = {} |
|
60 | 60 | > command = registrar.command(cmdtable) |
|
61 | 61 | > @command(b'encodingchange', norepo=True) |
@@ -616,8 +616,8 b' enabled adds the lfs requirement' | |||
|
616 | 616 | $ cat > $TESTTMP/dumpflog.py << EOF |
|
617 | 617 | > # print raw revision sizes, flags, and hashes for certain files |
|
618 | 618 | > import hashlib |
|
619 | > from mercurial.node import short | |
|
619 | 620 | > from mercurial import revlog |
|
620 | > from mercurial.node import short | |
|
621 | 621 | > def hash(rawtext): |
|
622 | 622 | > h = hashlib.sha512() |
|
623 | 623 | > h.update(rawtext) |
@@ -85,7 +85,12 b" don't allow marking or unmarking driver-" | |||
|
85 | 85 | |
|
86 | 86 | $ cat > $TESTTMP/markdriver.py << EOF |
|
87 | 87 | > '''mark and unmark files as driver-resolved''' |
|
88 | > from mercurial import merge, registrar, scmutil, pycompat | |
|
88 | > from mercurial import ( | |
|
89 | > merge, | |
|
90 | > pycompat, | |
|
91 | > registrar, | |
|
92 | > scmutil, | |
|
93 | > ) | |
|
89 | 94 | > cmdtable = {} |
|
90 | 95 | > command = registrar.command(cmdtable) |
|
91 | 96 | > @command(b'markdriver', |
General Comments 0
You need to be logged in to leave comments.
Login now