From: Joey Hess Date: Tue, 24 Jun 2008 02:11:26 GMT Subject: Re: [PATCH v2] git-svn: make rebuild respect rewriteRoot option Message-ID: <20080624021126.GA31093@kodama.kitenet.net> In-Reply-To: <20080624021736.2d272d9c@neuron> Jan Krüger wrote: > Suppose someone fetches git-svn-ified commits from another repo and then > attempts to use 'git-svn init --rewrite-root=foo bar'. Using git svn rebase > after that will fail badly: > > * For each commit tried by working_head_info, rebuild is called indirectly. > * rebuild will iterate over all commits and skip all of them because the > URL does not match. Because of that no rev_map file is generated at all. > * Thus, rebuild will run once for every commit. This takes ages. > * In the end there still isn't any rev_map file and thus working_head_info > fails. Very timely, I had just been beating my head against this problem. Your patch works great for me. -- see shy jo