git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-svn: expand svn:keywords, or how else to deal with them?

From
MKmartin f krafft <madduck@madduck.net>
Date
May 9, 2008, 10:19 UTC
Message-ID
<20080509101919.GA25037@lapse.madduck.net>
Hi,

I am using git-svn to track an upstream SVN project, which I then package for Debian. Upstream uses $Id:$ all over the source code, but I am not ready to argue with him that this ought to be removed.

The problem is that I build the Debian packages out of the git-svn tree, but use the published tarball. The latter has $Id:$ expanded in all files, while the git-svn tree does not - git-svn does not expand them.

The result is that my Debianisation diff now reverts the expansion for every single file. This is quite ugly.

I realise there are ways to prevent this, but I think that the cleanest would be if git-svn could be taught to expand svn:keywords.

Is this something you could live with, Eric? I am willing to have a go at the patch, but my Perl-foo is crap, so I may well fail...

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"a mathematician is a device for turning coffee into theorems."
                                                         -- paul erdös
 
spamtraps: madduck.bogus@madduck.net
Next: Eric Wong
Message 1 of 3 in “git-svn: expand svn:keywords, or how else to deal with them?”
  1. martin f krafftMay 9, 2008
  2. Eric WongMay 11, 2008
  3. martin f krafftMay 11, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.