From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Hancock Subject: Problem importing from SVN repository with branches/tags at multiple levels using git-svn Date: Wed, 15 Jan 2014 14:10:42 -0600 Organization: SED Systems Message-ID: <52D6EB42.2060509@sedsystems.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Jan 15 21:35:24 2014 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W3XB6-0003R3-7U for gcvg-git-2@plane.gmane.org; Wed, 15 Jan 2014 21:35:08 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752599AbaAOUfE (ORCPT ); Wed, 15 Jan 2014 15:35:04 -0500 Received: from sed198n136.SEDSystems.ca ([198.169.180.136]:37736 "EHLO sed198n136.sedsystems.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752296AbaAOUfB (ORCPT ); Wed, 15 Jan 2014 15:35:01 -0500 X-Greylist: delayed 1475 seconds by postgrey-1.27 at vger.kernel.org; Wed, 15 Jan 2014 15:35:01 EST Received: from barney.sedsystems.ca (barney [198.169.180.121]) by sed198n136.sedsystems.ca with ESMTP id s0FKAP6D018979 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 15 Jan 2014 14:10:25 -0600 (CST) Received: from eng1n65.eng.sedsystems.ca (eng1n65.eng.sedsystems.ca [172.21.1.65]) by barney.sedsystems.ca (8.13.1/8.13.1) with ESMTP id s0FKAPwN022956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 15 Jan 2014 14:10:25 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 X-Enigmail-Version: 1.6 X-Scanned-By: MIMEDefang 2.64 on 198.169.180.136 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: We have an SVN repository that has a structure for tags (likewise for branches) like this: tags/tag1 tags/tag2 tags/tag3/ tags/subdir/tag4 tags/subdir/tag5 The idea is that I want to have git-svn import everything inside subdir as tags and everything else inside the root tags directory as tags, so I end up with tag1-tag5 in Git. I've got tags= entries like this in the Git configuration to try to achieve this: tags = tags/subdir/*:refs/remotes/tags/* tags = tags/*:refs/remotes/tags/* My expectation was that everything inside subdir would match the first line first and everything else would match the second line, so everything would work out OK. Unfortunately it seems like for the tags inside subdir, it's matching the second line and therefore trying to import everything in there as directories inside one tag called subdir. Changing the order of those lines doesn't seem to help either, it seems determined to try to match to tags/* regardless of what order the lines are in. Clearly it would have been better if the repository had not been structured this way. However, rearranging it now won't help since the paths are like this in the SVN repository history. The only solution I've found that kind of works is to use tags/{tag1,tag2,tag3} instead of tags/*. Unfortunately there are a ton of tags in that directory and adding in a giant list of tags there seems to slow down the import process a great deal. Also, there are potentially still tags being created in that root directory, so I would have to keep regenerating and updating this list in the Git configuration every time one was added. So this is not a good solution. It would be much easier if I could get a wildcard solution to work here. Any thoughts? -- Robert Hancock System Analyst SED Systems Email: hancock@sedsystems.ca