Mercurial > python-hglib
comparison tests/test-branch.py @ 134:1b47146a4a2c 1.4
style: fix long lines
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 30 Sep 2014 12:48:04 -0500 |
parents | f1af31960414 |
children | 4359cabcb0cc |
comparison
equal
deleted
inserted
replaced
133:b6f601ba7f3c | 134:1b47146a4a2c |
---|---|
27 self.append('a', 'a') | 27 self.append('a', 'a') |
28 self.client.commit('first', addremove=True) | 28 self.client.commit('first', addremove=True) |
29 self.client.branch('foo') | 29 self.client.branch('foo') |
30 self.append('a', 'a') | 30 self.append('a', 'a') |
31 self.client.commit('second') | 31 self.client.commit('second') |
32 self.assertRaises(hglib.error.CommandError, self.client.branch, 'default') | 32 self.assertRaises(hglib.error.CommandError, |
33 self.client.branch, 'default') | |
33 | 34 |
34 def test_force(self): | 35 def test_force(self): |
35 self.append('a', 'a') | 36 self.append('a', 'a') |
36 self.client.commit('first', addremove=True) | 37 self.client.commit('first', addremove=True) |
37 self.client.branch('foo') | 38 self.client.branch('foo') |
38 self.append('a', 'a') | 39 self.append('a', 'a') |
39 self.client.commit('second') | 40 self.client.commit('second') |
40 | 41 |
41 self.assertRaises(hglib.error.CommandError, self.client.branch, 'default') | 42 self.assertRaises(hglib.error.CommandError, |
43 self.client.branch, 'default') | |
42 self.assertEquals(self.client.branch('default', force=True), 'default') | 44 self.assertEquals(self.client.branch('default', force=True), 'default') |