From dec4663129f72321a14efd6de63f14a7419e3ed2 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 23 Nov 2010 09:14:17 +0100 Subject: Split ref implementation up into multiple files, to make room for the log implementation --- refs/__init__.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 refs/__init__.py (limited to 'refs/__init__.py') diff --git a/refs/__init__.py b/refs/__init__.py new file mode 100644 index 00000000..ca5ace02 --- /dev/null +++ b/refs/__init__.py @@ -0,0 +1,20 @@ + +# import all modules in order, fix the names they require +from symbolic import * +from reference import * +from head import * +from tag import * +from remote import * + +# name fixes +import head +head.RemoteReference = RemoteReference +del(head) + + +import symbolic +for item in (HEAD, Head, RemoteReference, TagReference, Reference, SymbolicReference): + setattr(symbolic, item.__name__, item) +del(symbolic) +# git.objects.Commit -> symbolic +# git.config.SectionConstraint -> head -- cgit v1.2.3 From 6e5aae2fc8c3832bdae1cd5e0a269405fb059231 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 23 Nov 2010 12:35:34 +0100 Subject: Initial interface including some of the implementation of the RefLog. TestCase scetched out for now tests: Added tests to verify that objects don't have a dict. Previously, due to a missing __slots__ member in Serializable, most objects would indeed have a dict, although the opposite was intended --- refs/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'refs/__init__.py') diff --git a/refs/__init__.py b/refs/__init__.py index ca5ace02..fc8ce644 100644 --- a/refs/__init__.py +++ b/refs/__init__.py @@ -16,5 +16,6 @@ import symbolic for item in (HEAD, Head, RemoteReference, TagReference, Reference, SymbolicReference): setattr(symbolic, item.__name__, item) del(symbolic) -# git.objects.Commit -> symbolic -# git.config.SectionConstraint -> head + + +from log import * -- cgit v1.2.3