comparison tests/test-update.py @ 105:86ff8611a8fa 0.3

client: always set HGPLAIN=1 (issue3502) Not setting it breaks output parsing on some commands.
author Siddharth Agarwal <sid0@fb.com>
date Mon, 15 Oct 2012 09:45:43 -0700
parents a0328b08e028
children 9324a89dd84e
comparison
equal deleted inserted replaced
104:6e423f7c784f 105:86ff8611a8fa
64 self.assertRaises(error.CommandError, self.client.update, check=True) 64 self.assertRaises(error.CommandError, self.client.update, check=True)
65 65
66 u, m, r, ur = self.client.update(clean=True) 66 u, m, r, ur = self.client.update(clean=True)
67 self.assertEquals(u, 1) 67 self.assertEquals(u, 1)
68 self.assertEquals(old, open('a').read()) 68 self.assertEquals(old, open('a').read())
69
70 def test_basic_plain(self):
71 open('.hg/hgrc', 'a').write('[defaults]\nupdate=-v\n')
72 self.test_basic()