[Trac #935] sugar-jhbuild checkout by date (-D)
Zarro Boogs per Child
bugtracker at laptop.org
Wed Feb 28 17:54:26 EST 2007
#935: sugar-jhbuild checkout by date (-D)
----------------------------+-----------------------------------------------
Reporter: ianb | Owner: krstic
Type: enhancement | Status: new
Priority: normal | Milestone: Untriaged
Component: infrastructure | Keywords:
----------------------------+-----------------------------------------------
Right now you can pass {{{-D YYYY-MM-DD HH:MM}}} to {{{sugar-jhbuild}}} to
have it check out all the packages pegged to that date, but it doesn't
work for git repositories (fails with an error). There's not an obvious
way to do this in git, but after some discussion this seems like it could
work:
{{{
commit="`git-log --until="$date" --max-count=1 | awk '/^commit/ {print
$2}'`"
git-checkout -b "tag-$date" $commit
}}}
This logic would be added to {{{sugar-jhbuild}}} somewhere.
--
Ticket URL: <http://dev.laptop.org/ticket/935>
One Laptop Per Child <http://laptop.org/>
More information about the Bugs
mailing list