194
194
revtree.inventory.root.children[path].revision)
197
class TestImportToPackTag(TestCaseForGenericProcessor):
199
def file_command_iter(self, path, kind='file', content='aaa',
200
executable=False, to_kind=None, to_content='bbb', to_executable=None):
201
# Revno 1: create a file or symlink
205
if to_executable is None:
206
to_executable = executable
208
author = ['', 'bugs@a.com', time.time(), time.timezone]
209
committer = ['', 'elmer@a.com', time.time(), time.timezone]
211
yield commands.FileModifyCommand(path,
212
kind_to_mode(kind, executable), None, content)
213
yield commands.CommitCommand('head', '1', author,
214
committer, "commit 1", None, [], files_one)
216
yield commands.FileModifyCommand(path,
217
kind_to_mode(to_kind, to_executable), None, to_content)
219
# pass "head" for from_ to show that #401249 is worse than I knew
220
yield commands.CommitCommand('head', '2', author,
221
committer, "commit 2", "head", [], files_two)
223
yield commands.TagCommand('tag1', ':1', committer, "tag 1")
225
# pass "head" for from_ to demonstrate #401249
226
yield commands.TagCommand('tag2', 'head', committer, "tag 2")
230
handler, branch = self.get_handler()
232
raise tests.KnownFailure("non-mark committish not yet supported"
234
handler.process(self.file_command_iter(path))
197
237
class TestImportToPackModify(TestCaseForGenericProcessor):
199
239
def file_command_iter(self, path, kind='file', content='aaa',