Mercurial > python-hglib
annotate tests/test-copy.py @ 111:63b92316623e
Added tag 0.9 for changeset c635e6e7054f
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 01 May 2013 17:53:11 -0500 |
parents | f6e1d9a6e0cd |
children | 4359cabcb0cc |
rev | line source |
---|---|
29 | 1 import common |
2 import hglib | |
3 | |
4 class test_copy(common.basetest): | |
5 def test_basic(self): | |
6 self.append('a', 'a') | |
7 self.client.commit('first', addremove=True) | |
8 | |
9 self.assertTrue(self.client.copy('a', 'b')) | |
34
f6e1d9a6e0cd
client: change return value of status() to a list of (code, file path)
Idan Kamara <idankk86@gmail.com>
parents:
29
diff
changeset
|
10 self.assertEquals(self.client.status(), [('A', 'b')]) |
29 | 11 self.append('c', 'a') |
12 self.assertTrue(self.client.copy('a', 'c', after=True)) | |
34
f6e1d9a6e0cd
client: change return value of status() to a list of (code, file path)
Idan Kamara <idankk86@gmail.com>
parents:
29
diff
changeset
|
13 self.assertEquals(self.client.status(), [('A', 'b'), ('A', 'c')]) |
29 | 14 |
15 # hg returns 0 even if there were warnings | |
16 #def test_warnings(self): | |
17 # self.append('a', 'a') | |
18 # self.client.commit('first', addremove=True) | |
19 | |
20 # self.assertTrue(self.client.copy('a', 'b')) | |
21 # self.assertFalse(self.client.copy('a', 'b')) |