On Wed, Nov 18, 2009 at 16:09, Jelmer Vernooij <[email protected]> wrote:

> On Wed, 2009-11-18 at 14:13 +0100, Emiliano Heyns wrote:
> > I've gotten this far:
> >
> > from dulwich.repo import Repo
> > from dulwich import object_store as GitObjectStore
> >
> > repo = Repo(GITREPODIR)
> > for commit in repo.revision_history(repo.head()):
> >     print commit.commit_time
> >     for id, name, sha in repo.tree(commit.tree).entries():
> >         print name, sha
> >         GitObjectStore.tree_lookup_path(??, commit.tree, name)
> >
> > But I don't know what to use for the first parameter for
> > tree_lookup_path.
> You want repo.object_store there.
>
>
When I do that I get:

  File "/usr/lib/python2.6/dist-packages/dulwich/object_store.py", line 477,
in tree_lookup_path
    obj = lookup_obj(sha)
TypeError: 'DiskObjectStore' object is not callable

I'm on dulwich 0.3.3-1, as provided by Ubuntu. Should I upgrade?

Thanks,
Emile
_______________________________________________
Mailing list: https://launchpad.net/~dulwich-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dulwich-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to