git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-svn with non-standard repository layout

From
Piotr Krukowiecki <piotr.krukowiecki@gmail.com>
Date
Dec 11, 2012, 15:46 UTC
Message-ID
<CAA01CsqJPw9gNfgg5m6YycAsUct1AR=0v=OBj0hAMqLf6ZaKOw@mail.gmail.com>
In-Reply-To
<516524996.289805.1354751683987.JavaMail.root@genarts.com>
On Thu, Dec 6, 2012 at 12:54 AM, Stephen Bash <bash@genarts.com> wrote:
Show 20 quoted lines
> ----- Original Message -----
>> From: "Piotr Krukowiecki" <piotr.krukowiecki@gmail.com>
>> Sent: Wednesday, December 5, 2012 5:19:44 PM
>> Subject: Re: git-svn with non-standard repository layout
>>
>> Do you mean something like
>>
>>    branches = branches/work/*/*:refs/remotes/work/*
>>    branches = branches/{branch1,branch2}:refs/remotes/branches/*
>>
>> instead of (currently used)
>>
>>    branches = branches/work/*/*:refs/remotes/work/*
>>    fetch = branches/branch1:refs/remotes/branches/branch1
>>    fetch = branches/branch2:refs/remotes/branches/branch2
>
> Essentially yes.  But I guess since you have branches at the same level as the work directory,
> you either have to add to the glob for each new branch or add another fetch line...  Doesn't seem
> like a big win to me.  Jumping on a tangent, I thought there could only be one wildcard on the
> left side of the ':' (and the '*' on the right).  If your work/*/* is actually working, that's quite interesting.
At first I though it was working, but it seems it does not. I have
several branches, including:
  remotes/trunk
  remotes/work/user/xxx (based on remotes/trunk)
  master (based on remotes/trunk)
  xxx (based on remotes/work/user/xxx)

If I do 'git svn rebase -l' on xxx, it rebases commits on xxx (i.e. remotes/trunk..remotes/work/user/xxx) on top of master, so now xxx is based on master :(

I don't know if this is git-svn bug, or the problem with 'work/*/*' pattern, or something else... I will try explicit branches specification and will see what happens.

-- Piotr Krukowiecki

Previous: Stephen Bash
Message 6 of 6 in “git-svn with non-standard repository layout”
  1. Piotr KrukowieckiDec 4, 2012
  2. Piotr KrukowieckiDec 5, 2012
  3. Stephen BashDec 5, 2012
  4. Piotr KrukowieckiDec 5, 2012
  5. Stephen BashDec 5, 2012
  6. Piotr KrukowieckiDec 11, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.