Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2012 22:03:12 -0700
From:      Artem Belevich <art@freebsd.org>
To:        Bryan Drewery <bryan@shatow.net>
Cc:        Garrett Cooper <yanegomi@gmail.com>, freebsd-hackers@freebsd.org, Daniel Hagerty <hag@linnaean.org>
Subject:   Re: freebsd.org git repositories and svn ids
Message-ID:  <CAFqOu6jNboi-u3umqB%2BSkBX_ZVNMzWR-F83k8DnnugXOOdVDLQ@mail.gmail.com>
In-Reply-To: <CAFqOu6jM3junPBzj_cJRrfN7VaOkVM-CLCpUsPficDXOcLyy0Q@mail.gmail.com>
References:  <20546.21240.597457.60612@perdition.linnaean.org> <CAFqOu6hh4Yz0dSmpsP4x3FsruH%2Bid1va=kZW4brTQ0V_J4SnKw@mail.gmail.com> <20546.39472.989246.974755@perdition.linnaean.org> <CAGH67wSp3AXRvyDr1R6krihni6Bqi1HaHkzocKAJ%2B6bTCW2vBg@mail.gmail.com> <5042AD73.3060402@shatow.net> <CAFqOu6jM3junPBzj_cJRrfN7VaOkVM-CLCpUsPficDXOcLyy0Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 1, 2012 at 9:29 PM, Artem Belevich <art@freebsd.org> wrote:
> I've just noticed that freebsd commits on github come with a git note.
> If you look past the diff of the commit, you will see a note that
> contains path and revision number.
>
> For example:
> https://github.com/freebsd/freebsd/commit/fa32f1f570be8b878b2965d95b7dbdc37a953938
>
> has a note that says:
> svn path=/head/; revision=239998
>
> So, information is there, it's just not part of the log message itself
> unless you add '--show-notes=*'
>
> While I'm sort of got used to git-svn-id being part of committed log
> messages, keeping conversion metadata separate from the content does
> make sense.

Hmm. I've just cloned github.com/freebsd/freebsd and I don't see the
notes that are shown on the web site.
It appears that notes are not cloned by default. This page suggests
adding "fetch = +refs/notes/*:refs/notes/*" to .git/config

http://alblue.bandlem.com/2011/11/git-tip-of-week-git-notes.html

Alas, that didn't help me much. It did seem to fetch notes for new
commits, but preceeding commits are still note-less.

I guess one would have to start with an empty git repository, then
manually add remote and required 'fetch' magic and only then fetch
commits from that remote. Does anyone know an easier way?

--Artem



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFqOu6jNboi-u3umqB%2BSkBX_ZVNMzWR-F83k8DnnugXOOdVDLQ>