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)))
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))
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))
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)))
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))
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)))
def testStatusClean(self): client = BzrClient(self.remote_path) self.assertEquals('', client.get_status())
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))
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)))