Exemple #1
0
 def test_status_relpath(self):
     client = HgClient(self.local_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals(
         'M local/modified-fs.txt\nM local/modified.txt\nA local/added.txt\nR local/deleted.txt\n! local/deleted-fs.txt\n',
         client.get_status(basepath=os.path.dirname(self.local_path)))
Exemple #2
0
 def testStatusUntracked(self):
     client = HgClient(self.local_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals(
         'M modified-fs.txt\nM modified.txt\nA added.txt\nR deleted.txt\n! deleted-fs.txt\n? added-fs.txt\n',
         client.get_status(untracked=True))
Exemple #3
0
 def testStatusUntracked(self):
     from vcstools.hg import HgClient
     client = HgClient(self.readonly_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals(
         'M modified-fs.txt\nM modified.txt\nA added.txt\nR deleted.txt\n! deleted-fs.txt\n? added-fs.txt\n',
         client.get_status(untracked=True))
Exemple #4
0
 def testStatusUntracked(self):
     client = HgClient(self.local_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals(
         "M modified-fs.txt\nM modified.txt\nA added.txt\nR deleted.txt\n! deleted-fs.txt\n? added-fs.txt\n",
         client.get_status(untracked=True),
     )
Exemple #5
0
 def test_status_relpath(self):
     from vcstools.hg import HgClient
     client = HgClient(self.readonly_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals(
         'M readonly/modified-fs.txt\nM readonly/modified.txt\nA readonly/added.txt\nR readonly/deleted.txt\n! readonly/deleted-fs.txt\n',
         client.get_status(basepath=os.path.dirname(self.readonly_path)))
Exemple #6
0
 def test_status_relpath(self):
     client = HgClient(self.local_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals(
         "M local/modified-fs.txt\nM local/modified.txt\nA local/added.txt\nR local/deleted.txt\n! local/deleted-fs.txt\n",
         client.get_status(basepath=os.path.dirname(self.local_path)),
     )
Exemple #7
0
    def test_status(self):
        client = HgClient(self.local_path)
        self.assertTrue(client.path_exists())
        self.assertTrue(client.detect_presence())
        self.assertEquals(
            '''\
M modified-fs.txt
M modified.txt
A added.txt
R deleted.txt
! deleted-fs.txt
''', client.get_status())
Exemple #8
0
    def test_status_relpath(self):
        client = HgClient(self.local_path)
        self.assertTrue(client.path_exists())
        self.assertTrue(client.detect_presence())
        self.assertEquals(
            '''\
M local/modified-fs.txt
M local/modified.txt
A local/added.txt
R local/deleted.txt
! local/deleted-fs.txt
'''.replace("/", os.path.sep),
            client.get_status(basepath=os.path.dirname(self.local_path)))
Exemple #9
0
 def testStatusClean(self):
     client = HgClient(self.remote_path)
     self.assertEquals('', client.get_status())
Exemple #10
0
 def test_status(self):
     client = HgClient(self.local_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals('M modified-fs.txt\nM modified.txt\nA added.txt\nR deleted.txt\n! deleted-fs.txt\n', client.get_status())
Exemple #11
0
 def testStatusClean(self):
     client = HgClient(self.remote_path)
     self.assertEquals('', client.get_status())
 def testStatusUntracked(self):
     from vcstools.hg import HgClient
     client = HgClient(self.readonly_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals('M modified-fs.txt\nM modified.txt\nA added.txt\nR deleted.txt\n! deleted-fs.txt\n? added-fs.txt\n', client.get_status(untracked=True))
 def test_status_relpath(self):
     from vcstools.hg import HgClient
     client = HgClient(self.readonly_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals('M readonly/modified-fs.txt\nM readonly/modified.txt\nA readonly/added.txt\nR readonly/deleted.txt\n! readonly/deleted-fs.txt\n', client.get_status(basepath=os.path.dirname(self.readonly_path)))