From b81273e70c9c31ae02cb0a2d6e697d7a4e2b683a Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 24 Nov 2010 22:05:05 +0100 Subject: Adjusted remaining usages of set_reference and set_commit to set a logmessage --- test/test_repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_repo.py b/test/test_repo.py index 95b0750a..f517b9f1 100644 --- a/test/test_repo.py +++ b/test/test_repo.py @@ -568,7 +568,7 @@ class TestRepo(TestBase): assert rev_parse('@{1}') != head.commit # position doesn't exist - self.failUnlessRaises(BadObject, rev_parse, '@{10000}') + self.failUnlessRaises(IndexError, rev_parse, '@{10000}') # currently, nothing more is supported self.failUnlessRaises(NotImplementedError, rev_parse, "@{1 week ago}") -- cgit v1.2.1 From 7da101ba9a09a22a85c314a8909fd23468ae66f0 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 24 Nov 2010 22:23:47 +0100 Subject: submodule.update: previous_commit is now set according to the stored reflog value, and is not using ORIG_HEAD anymore --- test/test_refs.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/test_refs.py b/test/test_refs.py index 52937de1..2338b4e4 100644 --- a/test/test_refs.py +++ b/test/test_refs.py @@ -149,6 +149,9 @@ class TestRefs(TestBase): assert self.rorepo.head.reference.is_valid() assert SymbolicReference(self.rorepo, 'hellothere').is_valid() == False + def test_orig_head(self): + assert type(self.rorepo.head.orig_head()) == SymbolicReference + @with_rw_repo('0.1.6') def test_head_reset(self, rw_repo): cur_head = rw_repo.head -- cgit v1.2.1