コード例 #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)))
コード例 #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))
コード例 #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))
コード例 #4
0
ファイル: test_hg.py プロジェクト: jbohren-forks/vcstools
 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),
     )
コード例 #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)))
コード例 #6
0
ファイル: test_hg.py プロジェクト: jbohren-forks/vcstools
 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)),
     )
コード例 #7
0
ファイル: test_hg.py プロジェクト: seanyen/vcstools
    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())
コード例 #8
0
ファイル: test_hg.py プロジェクト: seanyen/vcstools
    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)))
コード例 #9
0
 def testStatusClean(self):
     client = HgClient(self.remote_path)
     self.assertEquals('', client.get_status())
コード例 #10
0
ファイル: test_hg.py プロジェクト: vcstools/vcstools
 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())
コード例 #11
0
ファイル: test_hg.py プロジェクト: vcstools/vcstools
 def testStatusClean(self):
     client = HgClient(self.remote_path)
     self.assertEquals('', client.get_status())
コード例 #12
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))
コード例 #13
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)))