Mercurial > python-hglib
diff tests/test-update.py @ 109:9324a89dd84e
client: Be more permissive on the output of update (issue3892)
Some extensions can add lines to the output, we now ignore them
author | Benoit Allard <benoit@aeteurope.nl> |
---|---|
date | Tue, 23 Apr 2013 22:11:26 +0200 |
parents | 86ff8611a8fa |
children | 8867908fe8c7 |
line wrap: on
line diff
--- a/tests/test-update.py Tue Apr 02 01:11:47 2013 -0500 +++ b/tests/test-update.py Tue Apr 23 22:11:26 2013 +0200 @@ -70,3 +70,19 @@ def test_basic_plain(self): open('.hg/hgrc', 'a').write('[defaults]\nupdate=-v\n') self.test_basic() + + def test_largefiles(self): + import os + open('.hg/hgrc', 'a').write('[extensions]\nlargefiles=\n') + self.append('b', 'a') + self.client.rawcommand(['add', 'b', '--large']) + rev2, node2 = self.client.commit('third') + # Go back to 0 + self.client.rawcommand(['update', str(self.rev0)], + # Keep the 'changed' version + prompt=lambda s, d: 'c\n') + u, m, r, ur = self.client.update(rev2, clean=True) + self.assertEquals(u, 2) + self.assertEquals(m, 0) + self.assertEquals(r, 0) + self.assertEquals(ur, 0)