From ec0657cf5de9aeb5629cc4f4f38b36f48490493e Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 24 Nov 2010 15:56:49 +0100 Subject: Unified object and commit handling which should make the reflog handling much easier. There is some bug in it though, it still needs fixing --- test/test_reflog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/test_reflog.py') diff --git a/test/test_reflog.py b/test/test_reflog.py index e99e5ba5..0c8e538b 100644 --- a/test/test_reflog.py +++ b/test/test_reflog.py @@ -60,6 +60,7 @@ class TestRefLog(TestBase): # test serialize and deserialize - results must match exactly binsha = chr(255)*20 msg = "my reflog message" + cr = repo.config_reader() for rlp in (rlp_head, rlp_master): reflog = RefLog.from_file(rlp) tfile = os.path.join(tdir, os.path.basename(rlp)) @@ -73,7 +74,7 @@ class TestRefLog(TestBase): assert open(tfile).read() == open(rlp).read() # append an entry - entry = RefLog.append_entry(tfile, IndexObject.NULL_BIN_SHA, binsha, msg) + entry = RefLog.append_entry(cr, tfile, IndexObject.NULL_BIN_SHA, binsha, msg) assert entry.oldhexsha == IndexObject.NULL_HEX_SHA assert entry.newhexsha == 'f'*40 assert entry.message == msg -- cgit v1.2.3