From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 05:03:14 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 22DB3106564A for ; Sun, 2 Sep 2012 05:03:14 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 93B8A8FC0C for ; Sun, 2 Sep 2012 05:03:13 +0000 (UTC) Received: by lbbgg13 with SMTP id gg13so2363625lbb.13 for ; Sat, 01 Sep 2012 22:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=sfK85hYs8lSJLNKu4Wcq9ijIA6IsmIYYtUFCdiBwYyA=; b=ibznPMfw2nGxAPI4uRz8l+RpHlIGI4o9WxoCTt3Nhnp19qr/JewVO7BYUJAwYhsWzR 4z1Jcs+IYDGXoMfhmieYwwGR4WtHVcYHeykpnvVpSLaatwYe0IMHWb/eZXQ08IEIPy4z sPhdN/9qwiL7TnowqquM4d7PbR+aD5s6swj7hU9NKU1pH8jHHkWhWYKSWVgPASNfAvOG fdS61EnMFyhX5XzwDvnHNxjq/ebfjoK7kN3thl3AY6SbCaRIt7zD7XvlhZVY13OJNuuY lXPX65zjaZ/SvUaE1o1UQYkZG0UxuRwzuh8j/3GEiTypue4s1B5Ro1jsXBtxsZyxBSZH bVCQ== MIME-Version: 1.0 Received: by 10.112.48.231 with SMTP id p7mr4163795lbn.7.1346562192305; Sat, 01 Sep 2012 22:03:12 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.112.43.40 with HTTP; Sat, 1 Sep 2012 22:03:12 -0700 (PDT) In-Reply-To: References: <20546.21240.597457.60612@perdition.linnaean.org> <20546.39472.989246.974755@perdition.linnaean.org> <5042AD73.3060402@shatow.net> Date: Sat, 1 Sep 2012 22:03:12 -0700 X-Google-Sender-Auth: 98gquwNRRbLw08Fj5tT0zADPA70 Message-ID: From: Artem Belevich To: Bryan Drewery Content-Type: text/plain; charset=ISO-8859-1 Cc: Garrett Cooper , freebsd-hackers@freebsd.org, Daniel Hagerty Subject: Re: freebsd.org git repositories and svn ids X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2012 05:03:14 -0000 On Sat, Sep 1, 2012 at 9:29 PM, Artem Belevich 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