Mercurial > hgsubversion
comparison tests/test_utility_commands.py @ 403:37c96b78b8c0
uisetup: use a single loop/abstraction for wrapping all the commands
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 10 Jun 2009 12:06:31 +0200 |
parents | 537de0300510 |
children | 00ecb2bc005c |
comparison
equal
deleted
inserted
replaced
402:d453cf1aafa3 | 403:37c96b78b8c0 |
---|---|
74 'testy', | 74 'testy', |
75 '2008-12-21 16:32:00 -0500', | 75 '2008-12-21 16:32:00 -0500', |
76 {'branch': 'localbranch', }) | 76 {'branch': 'localbranch', }) |
77 new = self.repo.commitctx(ctx) | 77 new = self.repo.commitctx(ctx) |
78 hg.update(self.repo, new) | 78 hg.update(self.repo, new) |
79 wrappers.parent(lambda x, y: None, u, self.repo, svn=True) | 79 wrappers.parents(lambda x, y: None, u, self.repo, svn=True) |
80 actual = u.popbuffer() | 80 actual = u.popbuffer() |
81 self.assertEqual(actual, | 81 self.assertEqual(actual, |
82 'changeset: 3:4e256962fc5d\n' | 82 'changeset: 3:4e256962fc5d\n' |
83 'branch: the_branch\n' | 83 'branch: the_branch\n' |
84 'user: durin@df2126f7-00ab-4d49-b42c-7e981dde0bcf\n' | 84 'user: durin@df2126f7-00ab-4d49-b42c-7e981dde0bcf\n' |
86 'summary: add delta on the branch\n\n') | 86 'summary: add delta on the branch\n\n') |
87 | 87 |
88 hg.update(self.repo, 'default') | 88 hg.update(self.repo, 'default') |
89 # Make sure styles work | 89 # Make sure styles work |
90 u.pushbuffer() | 90 u.pushbuffer() |
91 wrappers.parent(lambda x, y: None, u, self.repo, svn=True, style='compact') | 91 wrappers.parents(lambda x, y: None, u, self.repo, svn=True, style='compact') |
92 actual = u.popbuffer() | 92 actual = u.popbuffer() |
93 self.assertEqual(actual, | 93 self.assertEqual(actual, |
94 '4:1 1083037b18d8 2008-10-08 01:39 +0000 durin\n' | 94 '4:1 1083037b18d8 2008-10-08 01:39 +0000 durin\n' |
95 ' Add gamma on trunk.\n\n') | 95 ' Add gamma on trunk.\n\n') |
96 # custom templates too | 96 # custom templates too |
97 u.pushbuffer() | 97 u.pushbuffer() |
98 wrappers.parent(lambda x, y: None, u, self.repo, svn=True, template='{node}\n') | 98 wrappers.parents(lambda x, y: None, u, self.repo, svn=True, template='{node}\n') |
99 actual = u.popbuffer() | 99 actual = u.popbuffer() |
100 self.assertEqual(actual, '1083037b18d85cd84fa211c5adbaeff0fea2cd9f\n') | 100 self.assertEqual(actual, '1083037b18d85cd84fa211c5adbaeff0fea2cd9f\n') |
101 | 101 |
102 u.pushbuffer() | 102 u.pushbuffer() |
103 wrappers.parent(lambda x, y: None, u, self.repo, svn=True) | 103 wrappers.parents(lambda x, y: None, u, self.repo, svn=True) |
104 actual = u.popbuffer() | 104 actual = u.popbuffer() |
105 self.assertEqual(actual, | 105 self.assertEqual(actual, |
106 'changeset: 4:1083037b18d8\n' | 106 'changeset: 4:1083037b18d8\n' |
107 'parent: 1:c95251e0dd04\n' | 107 'parent: 1:c95251e0dd04\n' |
108 'user: durin@df2126f7-00ab-4d49-b42c-7e981dde0bcf\n' | 108 'user: durin@df2126f7-00ab-4d49-b42c-7e981dde0bcf\n' |