我看到git svn fetch在我的Subversion版本库中发现分支时反复检索相同的Subversion 版本。我们是 使用标准的Subversion版本库布局,顶级 /trunk,/ tags和/ branches目录(并且使用'git svn init -s'创建的git存储库是 )。但是,有问题的分支是 通常是从trunk中的子目录复制而不是 中继。git svn fetch对分支检索相同的Subversion版本多次
的混帐SVN提取输出通常看起来是这样的:
r2537 = d5b22e956157af036d4112e42e8fb927e45758c8 (trunk) M Enterprise/VC/libgc/SymbolVenue.cpp r2538 = cfed4ca0491da0b732f32bfff72ba678450a0915 (trunk) Found possible branch point: http://repo/prod_repos/trunk/Enterprise/VC => http://repo/prod_repos/branches/file_conversion, 2523 W: Refspec glob conflict (ref: refs/remotes/[email protected]): expected path: branches/[email protected] real path: trunk/Enterprise/Python Continuing ahead with trunk/Enterprise/Python W: Refspec glob conflict (ref: refs/remotes/trunk): expected path: branches/trunk real path: trunk Continuing ahead with trunk Initializing parent: [email protected] A gc/QuoteService.cpp A gc/TestSuite.h A gc/quote_svc.pro A gc/QuoteService.h ..... r1 = d349ed8cb2d76596fe2b83224986275be4600fad ([email protected]) D gc/FixMessageLogger.h ..... r5 = r19 = r20 = .....
我们又回到修订版1混帐SVN获取然后 继续直到到达 创建分支修订以获取修订。
我在做什么错?无论如何,我告诉git svn取 不能检索它已经拉的修订版吗?
好问题(+1)。这也发生在我身上,似乎浪费了我的时间。 – 2009-11-23 20:05:03
责怪SVN,它存储分支本质上作为存储库的副本;-)一些历史和内部工作由David Wheeler在http://www.dwheeler.com/essays/scm.html – vonbrand 2013-01-25 17:45:24