Mercurial > python-hglib
comparison tests/test-update.py @ 115:8867908fe8c7 1.0
tests: deal with missing largefiles support for 1.9
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 06 May 2013 15:17:40 -0500 |
parents | 9324a89dd84e |
children | e738d6fe5f3f |
comparison
equal
deleted
inserted
replaced
114:2e2055fc66c3 | 115:8867908fe8c7 |
---|---|
73 | 73 |
74 def test_largefiles(self): | 74 def test_largefiles(self): |
75 import os | 75 import os |
76 open('.hg/hgrc', 'a').write('[extensions]\nlargefiles=\n') | 76 open('.hg/hgrc', 'a').write('[extensions]\nlargefiles=\n') |
77 self.append('b', 'a') | 77 self.append('b', 'a') |
78 self.client.rawcommand(['add', 'b', '--large']) | 78 try: |
79 self.client.rawcommand(['add', 'b', '--large']) | |
80 except error.CommandError: | |
81 return | |
82 | |
79 rev2, node2 = self.client.commit('third') | 83 rev2, node2 = self.client.commit('third') |
80 # Go back to 0 | 84 # Go back to 0 |
81 self.client.rawcommand(['update', str(self.rev0)], | 85 self.client.rawcommand(['update', str(self.rev0)], |
82 # Keep the 'changed' version | 86 # Keep the 'changed' version |
83 prompt=lambda s, d: 'c\n') | 87 prompt=lambda s, d: 'c\n') |