Exemplo n.º 1
0
    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))
Exemplo n.º 2
0
    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))
Exemplo n.º 3
0
    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))
Exemplo n.º 4
0
 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')))
 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')))