Mercurial > python-hglib
comparison tests/test-manifest.py @ 64:a7d98dc798c5
client: add manifest command
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Tue, 23 Aug 2011 21:41:17 +0300 |
parents | |
children | e89dd99638ce |
comparison
equal
deleted
inserted
replaced
63:939d1d763bb1 | 64:a7d98dc798c5 |
---|---|
1 import common, hglib, os, stat | |
2 | |
3 class test_manifest(common.basetest): | |
4 def test_basic(self): | |
5 self.append('a', 'a') | |
6 self.append('b', 'b') | |
7 os.chmod('b', os.stat('b')[0] | stat.S_IEXEC) | |
8 os.symlink('b', 'c') | |
9 self.client.commit('first', addremove=True) | |
10 | |
11 self.assertEquals(list(self.client.manifest(all=True)), ['a', 'b', 'c']) | |
12 | |
13 manifest = \ | |
14 [('047b75c6d7a3ef6a2243bd0e99f94f6ea6683597', '644', False, False, 'a'), | |
15 ('62452855512f5b81522aa3895892760bb8da9f3f', '755', True, False, 'b'), | |
16 ('62452855512f5b81522aa3895892760bb8da9f3f', '644', False, True, 'c')] | |
17 | |
18 self.assertEquals(list(self.client.manifest()), manifest) |