equal
deleted
inserted
replaced
3 import binascii |
3 import binascii |
4 import itertools |
4 import itertools |
5 import silenttestrunner |
5 import silenttestrunner |
6 import unittest |
6 import unittest |
7 import zlib |
7 import zlib |
|
8 |
|
9 from mercurial.node import sha1nodeconstants |
8 |
10 |
9 from mercurial import ( |
11 from mercurial import ( |
10 manifest as manifestmod, |
12 manifest as manifestmod, |
11 match as matchmod, |
13 match as matchmod, |
12 util, |
14 util, |
434 self.parsemanifest(data) |
436 self.parsemanifest(data) |
435 |
437 |
436 |
438 |
437 class testtreemanifest(unittest.TestCase, basemanifesttests): |
439 class testtreemanifest(unittest.TestCase, basemanifesttests): |
438 def parsemanifest(self, text): |
440 def parsemanifest(self, text): |
439 return manifestmod.treemanifest(b'', text) |
441 return manifestmod.treemanifest(sha1nodeconstants, b'', text) |
440 |
442 |
441 def testWalkSubtrees(self): |
443 def testWalkSubtrees(self): |
442 m = self.parsemanifest(A_DEEPER_MANIFEST) |
444 m = self.parsemanifest(A_DEEPER_MANIFEST) |
443 |
445 |
444 dirs = [s._dir for s in m.walksubtrees()] |
446 dirs = [s._dir for s in m.walksubtrees()] |