def testUnbundle(self): # First create the bundle bundle = os.path.join(self.tmpdir, 'bundle') run_cmd(['hg', 'bundle', '-a', bundle], cwd=self.repodir) # Now unbundle it in a new place newdir = os.path.join(self.tmpdir, 'new') init(newdir) unbundle(bundle, newdir) self.assertEquals(self.revisions, getRevisions(newdir))
def testUnbundle(self): # First create the bundle bundle = os.path.join(self.tmpdir, "bundle") run_cmd(["hg", "bundle", "-a", bundle], cwd=self.repodir) # Now unbundle it in a new place newdir = os.path.join(self.tmpdir, "new") init(newdir) unbundle(bundle, newdir) self.assertEquals(self.revisions, getRevisions(newdir))
def testInit(self): tmpdir = os.path.join(self.tmpdir, 'new') self.assertEquals(False, os.path.exists(tmpdir)) init(tmpdir) self.assertEquals(True, os.path.exists(tmpdir)) self.assertEquals(True, os.path.exists(os.path.join(tmpdir, '.hg')))