コード例 #1
0
ファイル: test_bzr.py プロジェクト: rsinnet/vcstools
 def test_status_relpath(self):
     client = BzrClient(self.local_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals(
         '+N  local/added.txt\n D  local/deleted-fs.txt\n-D  local/deleted.txt\n M  local/modified-fs.txt\n M  local/modified.txt\n',
         client.get_status(basepath=os.path.dirname(self.local_path)))
コード例 #2
0
ファイル: test_bzr.py プロジェクト: rsinnet/vcstools
 def test_status_untracked(self):
     client = BzrClient(self.local_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals(
         '?   ./added-fs.txt\n+N  ./added.txt\n D  ./deleted-fs.txt\n-D  ./deleted.txt\n M  ./modified-fs.txt\n M  ./modified.txt\n',
         client.get_status(untracked=True))
コード例 #3
0
 def test_status_untracked(self):
     from vcstools.bzr import BzrClient
     client = BzrClient(self.readonly_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals(
         '?   ./added-fs.txt\n+N  ./added.txt\n D  ./deleted-fs.txt\n-D  ./deleted.txt\n M  ./modified-fs.txt\n M  ./modified.txt\n',
         client.get_status(untracked=True))
コード例 #4
0
 def test_status_relpath(self):
     from vcstools.bzr import BzrClient
     client = BzrClient(self.readonly_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals(
         '+N  readonly/added.txt\n D  readonly/deleted-fs.txt\n-D  readonly/deleted.txt\n M  readonly/modified-fs.txt\n M  readonly/modified.txt\n',
         client.get_status(basepath=os.path.dirname(self.readonly_path)))
コード例 #5
0
ファイル: test_bzr.py プロジェクト: btubbs/vcstools
 def test_status_untracked(self):
     client = BzrClient(self.local_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals('?   ./added-fs.txt\n+N  ./added.txt\n D  ./deleted-fs.txt\n-D  ./deleted.txt\n M  ./modified-fs.txt\n M  ./modified.txt\n', client.get_status(untracked=True))
コード例 #6
0
ファイル: test_bzr.py プロジェクト: btubbs/vcstools
 def test_status_relpath(self):
     client = BzrClient(self.local_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals('+N  local/added.txt\n D  local/deleted-fs.txt\n-D  local/deleted.txt\n M  local/modified-fs.txt\n M  local/modified.txt\n', client.get_status(basepath=os.path.dirname(self.local_path)))
コード例 #7
0
ファイル: test_bzr.py プロジェクト: btubbs/vcstools
 def testStatusClean(self):
     client = BzrClient(self.remote_path)
     self.assertEquals('', client.get_status())
コード例 #8
0
ファイル: test_bzr.py プロジェクト: rsinnet/vcstools
 def testStatusClean(self):
     client = BzrClient(self.remote_path)
     self.assertEquals('', client.get_status())
コード例 #9
0
 def test_status_untracked(self):
     from vcstools.bzr import BzrClient
     client = BzrClient(self.readonly_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals('?   ./added-fs.txt\n+N  ./added.txt\n D  ./deleted-fs.txt\n-D  ./deleted.txt\n M  ./modified-fs.txt\n M  ./modified.txt\n', client.get_status(untracked=True))
コード例 #10
0
 def test_status_relpath(self):
     from vcstools.bzr import BzrClient
     client = BzrClient(self.readonly_path)
     self.assertTrue(client.path_exists())
     self.assertTrue(client.detect_presence())
     self.assertEquals('+N  readonly/added.txt\n D  readonly/deleted-fs.txt\n-D  readonly/deleted.txt\n M  readonly/modified-fs.txt\n M  readonly/modified.txt\n', client.get_status(basepath=os.path.dirname(self.readonly_path)))