Mercurial > hgsubversion
comparison tests/test_binaryfiles.py @ 169:f1919e1c35bf
fetch_command: cancel patching when encountering binary diffs
Mercurial patching code does not support hunks with embedded nul characters.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Tue, 30 Dec 2008 20:33:56 -0600 |
parents | |
children | 906d3f302b45 |
comparison
equal
deleted
inserted
replaced
168:4f26fa049452 | 169:f1919e1c35bf |
---|---|
1 import unittest | |
2 | |
3 from mercurial import node | |
4 | |
5 import test_util | |
6 | |
7 class TestFetchBinaryFiles(test_util.TestBase): | |
8 def test_binaryfiles(self, stupid=False): | |
9 repo = self._load_fixture_and_fetch('binaryfiles.svndump', stupid=stupid) | |
10 self.assertEqual('cce7fe400d8d', str(repo['tip'])) | |
11 | |
12 def test_binaryfiles_stupid(self): | |
13 self.test_binaryfiles(True) | |
14 | |
15 def suite(): | |
16 all = [unittest.TestLoader().loadTestsFromTestCase(TestFetchBinaryFiles), | |
17 ] | |
18 return unittest.TestSuite(all) |