comparison tests/test-hidden.py @ 130:df808f92c0f1 1.3

tests: skip hidden/obsolete tests on older hg
author Matt Mackall <mpm@selenic.com>
date Thu, 31 Jul 2014 15:58:42 -0500
parents bcc8390d7819
children 1b47146a4a2c
comparison
equal deleted inserted replaced
129:bcc8390d7819 130:df808f92c0f1
30 cs = self.client.commit('gna1')[1] #get id 30 cs = self.client.commit('gna1')[1] #get id
31 self.client.rawcommand(['debugobsolete', cs]) 31 self.client.rawcommand(['debugobsolete', cs])
32 32
33 def test_obsolete_in(self): 33 def test_obsolete_in(self):
34 """test the 'hidden' keyword with the 'in' method""" 34 """test the 'hidden' keyword with the 'in' method"""
35 if self.client.version < (2, 9, 0):
36 return
35 self.append('gna1','ga') 37 self.append('gna1','ga')
36 self.client.add('gna1') 38 self.client.add('gna1')
37 cs0 = self.client.commit('gna1')[1] #get id 39 cs0 = self.client.commit('gna1')[1] #get id
38 self.append('gna2','gaaa') 40 self.append('gna2','gaaa')
39 self.client.add('gna2') 41 self.client.add('gna2')
47 49
48 class test_hidden_context(test_obsolete_baselib): 50 class test_hidden_context(test_obsolete_baselib):
49 """test the "hidden" context method with obsolete changesets enabled on 51 """test the "hidden" context method with obsolete changesets enabled on
50 hidden and visible changesets""" 52 hidden and visible changesets"""
51 def test_hidden(self): 53 def test_hidden(self):
54 if self.client.version < (2, 9, 0):
55 return
52 self.append('gna1','ga') 56 self.append('gna1','ga')
53 self.client.add('gna1') 57 self.client.add('gna1')
54 cs0 = self.client.commit('gna1')[1] #get id 58 cs0 = self.client.commit('gna1')[1] #get id
55 ctx0 = self.client[cs0] 59 ctx0 = self.client[cs0]
56 self.append('gna2','gaaa') 60 self.append('gna2','gaaa')