Mercurial > hgsubversion
comparison tests/test_utility_commands.py @ 832:e9af7eba88db
globally: clean up whitespace around operators and commas to conform with PEP8
Mostly autoformatted by Eclipse. A few manual corrections were
performed where Eclipse's autoformatter did something non-idiomatic.
author | Yonggang Luo <luoyonggang@gmail.com> |
---|---|
date | Wed, 12 Oct 2011 15:35:25 +0800 |
parents | caa527346a0f |
children | 312b37bc5e20 |
comparison
equal
deleted
inserted
replaced
831:be5bbb2f2d68 | 832:e9af7eba88db |
---|---|
110 | 110 |
111 def test_parent_output(self): | 111 def test_parent_output(self): |
112 self._load_fixture_and_fetch('two_heads.svndump') | 112 self._load_fixture_and_fetch('two_heads.svndump') |
113 u = self.ui() | 113 u = self.ui() |
114 u.pushbuffer() | 114 u.pushbuffer() |
115 parents = (self.repo['the_branch'].node(), revlog.nullid, ) | 115 parents = (self.repo['the_branch'].node(), revlog.nullid,) |
116 def filectxfn(repo, memctx, path): | 116 def filectxfn(repo, memctx, path): |
117 return context.memfilectx(path=path, | 117 return context.memfilectx(path=path, |
118 data='added', | 118 data='added', |
119 islink=False, | 119 islink=False, |
120 isexec=False, | 120 isexec=False, |
153 self.assertEqual(actual, '4:1083037b18d8\n') | 153 self.assertEqual(actual, '4:1083037b18d8\n') |
154 | 154 |
155 def test_outgoing_output(self): | 155 def test_outgoing_output(self): |
156 self._load_fixture_and_fetch('two_heads.svndump') | 156 self._load_fixture_and_fetch('two_heads.svndump') |
157 u = self.ui() | 157 u = self.ui() |
158 parents = (self.repo['the_branch'].node(), revlog.nullid, ) | 158 parents = (self.repo['the_branch'].node(), revlog.nullid,) |
159 def filectxfn(repo, memctx, path): | 159 def filectxfn(repo, memctx, path): |
160 return context.memfilectx(path=path, | 160 return context.memfilectx(path=path, |
161 data='added', | 161 data='added', |
162 islink=False, | 162 islink=False, |
163 isexec=False, | 163 isexec=False, |
183 actual = u.popbuffer() | 183 actual = u.popbuffer() |
184 self.assertEqual(actual, '') | 184 self.assertEqual(actual, '') |
185 | 185 |
186 def test_rebase(self): | 186 def test_rebase(self): |
187 self._load_fixture_and_fetch('two_revs.svndump') | 187 self._load_fixture_and_fetch('two_revs.svndump') |
188 parents = (self.repo[0].node(), revlog.nullid, ) | 188 parents = (self.repo[0].node(), revlog.nullid,) |
189 def filectxfn(repo, memctx, path): | 189 def filectxfn(repo, memctx, path): |
190 return context.memfilectx(path=path, | 190 return context.memfilectx(path=path, |
191 data='added', | 191 data='added', |
192 islink=False, | 192 islink=False, |
193 isexec=False, | 193 isexec=False, |