Skip to content

[WIP] Introduce pluggable Ref DB backends - #1226

Closed
jamill wants to merge 3 commits into
vNextfrom
jamill/refdb
Closed

[WIP] Introduce pluggable Ref DB backends#1226
jamill wants to merge 3 commits into
vNextfrom
jamill/refdb

Conversation

@jamill

@jamill jamill commented Nov 2, 2015

Copy link
Copy Markdown
Member

These changes have been sitting around for a while (builds upon a commit from @ethomson from 2013), and I wanted to see about moving this forward. This PR is not complete (yet), but there were some areas I wanted to bring up for discussion.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that tags iteration is stopping (return code of git_tag_list indicates success...) after the 1st reference cannot be resolved to a commit. This seems a bit unexpected.

/cc @ethomson @carlosmn

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is currently failing - I am not sure if it is due to an bug the LibGit2Sharp side, or in the libgit2 side.

  1. The comments for the unlock call in refdb_backend.h seems like it might not reflect the current implementation? Looking at the code, libgit2 also returns 2 in update_target as a value for success in one place, and I am not sure how to interpret it...

  2. In update_target in transaction.c, there is some logic that is allocating refs. Should these calls instead be targeting the refdb backend?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did you go with this? Did you manage to get any further around resolving these issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants