git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn vs. $Id$
@ 2006-05-16 17:33 Tommi Virtanen
  2006-05-16 17:48 ` Linus Torvalds
  2006-05-21  3:03 ` [PATCH] git-svn: ignore expansion of svn:keywords Eric Wong
  0 siblings, 2 replies; 8+ messages in thread
From: Tommi Virtanen @ 2006-05-16 17:33 UTC (permalink / raw)
  To: git

Hi. I just ran into trouble with git-svn, related to a file
containing $Id$. Yes, I know $Id$ sucks and should be avoided,
and I'll be removing them shortly, but that doesn't change the
fact that the history contains files with them.

Just wanted to let you know of a workaround:
manually edit the relevant file in .git/git-svn/tree/ to
undo the $Id$ change, and git-svn fetch works again.

$ git-svn fetch
Tree mismatch, Got: c242bb60d78c1dfce133e0bbaca7f13895de00b2, Expected:
07d35ac911cc56aabea86f4467cafc1d92b724c4
 at /home/tv/bin/git-svn line 426
        main::assert_tree('a5890d459de08dc8adbbe34cdfb4b1f44f377ad8')
called at /home/tv/bin/git-svn line 392
        main::assert_svn_wc_clean(2039,
'a5890d459de08dc8adbbe34cdfb4b1f44f377ad8') called at
/home/tv/bin/git-svn line 262
        main::fetch() called at /home/tv/bin/git-svn line 105

$ git diff-tree -p 07d35ac911cc56aabea86f4467cafc1d92b724c4 \
  c242bb60d78c1dfce133e0bbaca7f13895de00b2
diff --git a/anonymized b/anonymized
index 16b3988..f43782a 100644
--- a/anonymized
+++ b/anonymized
@@ -1,4 +1,4 @@
-## $Id: anonymized 1775 2006-04-20 09:25:22Z tv $
+## $Id: anonymized 2025 2006-05-16 07:25:24Z tv $

 blah
 blah


So editing .git/git-svn/tree/anonymized and replacing
"1775 2006-04-20 09:25:22Z tv" with "2025 2006-05-16 07:25:24Z tv"
make git-svn happy again.

-- 
Inoi Oy, Tykistökatu 4 D (4. krs), FI-20520 Turku, Finland
http://www.inoi.fi/
Mobile +358 40 762 5656

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-05-24  2:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-16 17:33 git-svn vs. $Id$ Tommi Virtanen
2006-05-16 17:48 ` Linus Torvalds
2006-05-16 18:12   ` Tommi Virtanen
2006-05-21  1:12     ` Eric Wong
2006-05-21  3:03 ` [PATCH] git-svn: ignore expansion of svn:keywords Eric Wong
2006-05-24  2:23   ` git-svn vs. $Id$ Eric Wong
2006-05-24  2:23     ` [PATCH] git-svn: starting a 1.1.0-pre development version Eric Wong
2006-05-24  2:23       ` [PATCH] git-svn: ignore expansion of svn:keywords Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).