From 402a6c2808db4333217aa300d0312836fd7923bd Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 24 Jun 2010 21:19:07 +0200 Subject: IndexFile.add: writing of the index file can now optionally be turned off. The default is to write the physical index, which is the behaviour you would expect --- test/git/test_index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/git/test_index.py') diff --git a/test/git/test_index.py b/test/git/test_index.py index 929d40a3..09b49aaa 100644 --- a/test/git/test_index.py +++ b/test/git/test_index.py @@ -171,7 +171,8 @@ class TestIndex(TestBase): # pretend there was a change, but we do not even bother adding a proper # sha for it ( which makes things faster of course ) manifest_fake_entry = BaseIndexEntry((manifest_entry[0], "\0"*20, 0, manifest_entry[3])) - rw_repo.index.add([manifest_fake_entry]) + # try write flag + rw_repo.index.add([manifest_fake_entry], write=False) # add actually resolves the null-hex-sha for us as a feature, but we can # edit the index manually assert rw_repo.index.entries[manifest_key].binsha != Object.NULL_BIN_SHA -- cgit v1.2.1