Пример #1
0
 def testMercurialShareOutgoing(self):
     # ensure that outgoing changesets in a shared clone affect the shared history
     repo5 = os.path.join(self.tmpdir, 'repo5')
     repo6 = os.path.join(self.tmpdir, 'repo6')
     mercurial(self.repodir, repo5)
     share(repo5, repo6)
     open(os.path.join(repo6, 'test.txt'), 'w').write("hello!")
     # modify the history of the new clone
     run_cmd(['hg', 'add', 'test.txt'], cwd=repo6)
     run_cmd(['hg', 'commit', '-m', 'adding changeset'], cwd=repo6)
     self.assertNotEquals(self.revisions, getRevisions(repo6))
     self.assertNotEquals(self.revisions, getRevisions(repo5))
     self.assertEquals(getRevisions(repo5), getRevisions(repo6))
 def testMercurialShareOutgoing(self):
     # ensure that outgoing changesets in a shared clone affect the shared
     # history
     repo5 = os.path.join(self.tmpdir, 'repo5')
     repo6 = os.path.join(self.tmpdir, 'repo6')
     mercurial(self.repodir, repo5)
     share(repo5, repo6)
     open(os.path.join(repo6, 'test.txt'), 'w').write("hello!")
     # modify the history of the new clone
     run_cmd(['hg', 'add', 'test.txt'], cwd=repo6)
     run_cmd(['hg', 'commit', '-m', 'adding changeset'], cwd=repo6)
     self.assertNotEquals(self.revisions, getRevisions(repo6))
     self.assertNotEquals(self.revisions, getRevisions(repo5))
     self.assertEquals(getRevisions(repo5), getRevisions(repo6))
Пример #3
0
 def testMercurialShareOutgoing(self):
     # ensure that outgoing changesets in a shared clone affect the shared
     # history
     repo5 = os.path.join(self.tmpdir, "repo5")
     repo6 = os.path.join(self.tmpdir, "repo6")
     mercurial(self.repodir, repo5)
     share(repo5, repo6)
     open(os.path.join(repo6, "test.txt"), "w").write("hello!")
     # modify the history of the new clone
     run_cmd(["hg", "add", "test.txt"], cwd=repo6)
     run_cmd(["hg", "commit", "-m", "adding changeset"], cwd=repo6)
     self.assertNotEquals(self.revisions, getRevisions(repo6))
     self.assertNotEquals(self.revisions, getRevisions(repo5))
     self.assertEquals(getRevisions(repo5), getRevisions(repo6))
Пример #4
0
 def testShareRepo(self):
     repo3 = os.path.join(self.tmpdir, 'repo3')
     share(self.repodir, repo3)
     # make sure shared history is identical
     self.assertEquals(self.revisions, getRevisions(repo3))
 def testShareRepo(self):
     repo3 = os.path.join(self.tmpdir, 'repo3')
     share(self.repodir, repo3)
     # make sure shared history is identical
     self.assertEquals(self.revisions, getRevisions(repo3))