Mercurial > python-hglib
diff tests/test-log.py @ 110:c635e6e7054f 0.9
context: raise same error when not found for all hg versions
hg log behavior changed, so modify context constructor to account for this
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Fri, 26 Apr 2013 01:46:08 +0400 |
parents | b68c444d42bb |
children | 5d3783aebe5f |
line wrap: on
line diff
--- a/tests/test-log.py Tue Apr 23 22:11:26 2013 +0200 +++ b/tests/test-log.py Fri Apr 26 01:46:08 2013 +0400 @@ -16,3 +16,9 @@ self.assertEquals(revs[0], self.client.log('0')[0]) self.assertEquals(self.client.log(), self.client.log(files=['a'])) + + # def test_errors(self): + # self.assertRaisesRegexp(CommandError, 'abort: unknown revision', self.client.log, 'foo') + # self.append('a', 'a') + # self.client.commit('first', addremove=True) + # self.assertRaisesRegexp(CommandError, 'abort: unknown revision', self.client.log, 'bar') \ No newline at end of file