10

当我运行 git svn clone -s 时发生了一些奇怪的事情,虽然下面的信息告诉我们不要惊慌,我想知道为什么这是一种 svn 错误?

为什么这条路径不存在,是不是被别人删除了?

如果是,为什么 git svn 应该积极搜索旧历史?

Initializing parent: refs/remotes/tags/sequentialInformationalBottleneckClusterer-1.0.1@8400
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: File not found: revision 101, path '/trunk/packages/internal/sequentialInformationalBottleneckClusterer'
W: Do not be alarmed at the above message git-svn is just searching aggressively for old history.
This may take a while on large repositories
Checked through r1501
4

1 回答 1

10

This was a fun one. Do not be alarmed.

The W: signifies "warning", and all this warning tells you is that /trunk/packages/internal/sequentialInformationalBottleneckClusterer doesn't have a revision between r0 and r100 in your SVN repository. The warning was introduced in early 2008.

commit eee8a1742bf51df33f0f6004774035f57253f944
Author: Eric Wong <normalperson@yhbt.net>
Date:   Mon Jan 7 02:40:40 2008 -0800

    git-svn: clarify the "Ignoring error from SVN" piece

    I've heard of several users puzzled by this, and it sometimes it
    appears as if git-svn is doing nothing on slower connections and
    larger repositories.

    Signed-off-by: Eric Wong <normalperson@yhbt.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>

You can read the original thread here if you're interested. In the meantime, just ignore the warning. The subroutine in question, skip_unknown_revs (warning, this link will age if the file in github changes) would kill the process if it caught an unexpected error.

于 2012-08-22T01:06:37.233 回答