Repo.checkout()

Bug #719026 reported by Jelmer Vernooij
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Dulwich
Fix Released
Medium
milki

Bug Description

There isn't any easy high-level way to check out a specific revision, including updating the index.

Related branches

Revision history for this message
chbrosso (chbrosso) wrote :

Answering to a StackOverflow question I could write a very basic checkout with Dulwich:
http://stackoverflow.com/questions/6640546/programmatically-git-checkout-with-dulwich/6640755#6640755

Revision history for this message
milki (milki-p) wrote :

I implemented a checkout for git clone. When a repo is non-bare cloned, it will checkout master.

I don't think we can properly do branch switching until dulwich has merging code. There are two ways you can do a checkout - blow away the current working dir and rebuild it, or merge the working dir. cgit does a merge.

https://github.com/milki/dulwich/tree/checkout

Jelmer Vernooij (jelmer)
Changed in dulwich:
assignee: nobody → milki (milki-p)
status: Triaged → In Progress
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Removing assignee again, as milki isn't actively working on this.

Changed in dulwich:
assignee: milki (milki-p) → nobody
status: In Progress → Triaged
Jelmer Vernooij (jelmer)
Changed in dulwich:
status: Triaged → Fix Committed
assignee: nobody → milki (milki-p)
milestone: none → 0.8.4
Jelmer Vernooij (jelmer)
Changed in dulwich:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.