git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn "cannot lock ref" error during fetch
@ 2007-06-06 17:17 James Peach
  2007-06-07  6:31 ` Eric Wong
  0 siblings, 1 reply; 6+ messages in thread
From: James Peach @ 2007-06-06 17:17 UTC (permalink / raw)
  To: git

Hi all,

I'm new to git, and I'm experimenting with using git-svn to interact  
with a large SVN repository with lots of branches.

I initially did an init like this:

git-svn init -t tags -b branches -T trunk svn+ssh://server/svn/project

Then I did a git-svn fetch, which started pulling all the branches.  
After a while, however, it hit a branch that it couldn't pull:

Found branch parent: (tags/project-92~9)  
767f1f1601a4deae459c99ea6c1d1b9ba8f57a65
Following parent with do_update
...
Successfully followed parent
fatal: refs/remotes/tags/project-92~9: cannot lock the ref
update-ref -m r13726 refs/remotes/tags/project-92~9  
950638ff72acc278156a0d55baafbabb43f2b772: command returned error: 128

Some amount of searching failed to turn up any hints on what this  
error means or how I can work around it. I'd appreciate any advice ...

James

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: git-svn "cannot lock ref" error during fetch
  2007-06-06 17:17 git-svn "cannot lock ref" error during fetch James Peach
@ 2007-06-07  6:31 ` Eric Wong
  2007-06-07  6:54   ` Lars Hjemli
  2007-06-07 15:37   ` James Peach
  0 siblings, 2 replies; 6+ messages in thread
From: Eric Wong @ 2007-06-07  6:31 UTC (permalink / raw)
  To: James Peach; +Cc: git

James Peach <jamespeach@mac.com> wrote:
> Hi all,
> 
> I'm new to git, and I'm experimenting with using git-svn to interact  
> with a large SVN repository with lots of branches.
> 
> I initially did an init like this:
> 
> git-svn init -t tags -b branches -T trunk svn+ssh://server/svn/project
> 
> Then I did a git-svn fetch, which started pulling all the branches.  
> After a while, however, it hit a branch that it couldn't pull:
> 
> Found branch parent: (tags/project-92~9)  
> 767f1f1601a4deae459c99ea6c1d1b9ba8f57a65
> Following parent with do_update
> ...
> Successfully followed parent
> fatal: refs/remotes/tags/project-92~9: cannot lock the ref
> update-ref -m r13726 refs/remotes/tags/project-92~9  
> 950638ff72acc278156a0d55baafbabb43f2b772: command returned error: 128
> 
> Some amount of searching failed to turn up any hints on what this  
> error means or how I can work around it. I'd appreciate any advice ...

Is there a tag actually named "project-92~9"?  If so, it's
an invalid branch name for git.  I started working on a way
around it by mapping new names to it, but haven't gotten around to
finishing it....

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: git-svn "cannot lock ref" error during fetch
  2007-06-07  6:31 ` Eric Wong
@ 2007-06-07  6:54   ` Lars Hjemli
  2007-06-07 15:37   ` James Peach
  1 sibling, 0 replies; 6+ messages in thread
From: Lars Hjemli @ 2007-06-07  6:54 UTC (permalink / raw)
  To: Eric Wong; +Cc: James Peach, git

On 6/7/07, Eric Wong <normalperson@yhbt.net> wrote:
> James Peach <jamespeach@mac.com> wrote:
> > update-ref -m r13726 refs/remotes/tags/project-92~9
> > 950638ff72acc278156a0d55baafbabb43f2b772: command returned error: 128
> >
> > Some amount of searching failed to turn up any hints on what this
> > error means or how I can work around it. I'd appreciate any advice ...
>
> Is there a tag actually named "project-92~9"?  If so, it's
> an invalid branch name for git.  I started working on a way
> around it by mapping new names to it, but haven't gotten around to
> finishing it....
>

fwiw: a similar error occurs when a svn tag-/branchname contains
spaces. The culprit seems to be $self->refname in

		command_noisy('update-ref', '-m', "r$rev",
		              $self->refname, $commit);

in rev_db_set()

--
larsh

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: git-svn "cannot lock ref" error during fetch
  2007-06-07  6:31 ` Eric Wong
  2007-06-07  6:54   ` Lars Hjemli
@ 2007-06-07 15:37   ` James Peach
  2007-06-09 20:06     ` Eric Wong
  1 sibling, 1 reply; 6+ messages in thread
From: James Peach @ 2007-06-07 15:37 UTC (permalink / raw)
  To: Eric Wong; +Cc: git

On Jun 6, 2007, at 11:31 PM, Eric Wong wrote:

> James Peach <jamespeach@mac.com> wrote:
>> Hi all,
>>
>> I'm new to git, and I'm experimenting with using git-svn to interact
>> with a large SVN repository with lots of branches.
>>
>> I initially did an init like this:
>>
>> git-svn init -t tags -b branches -T trunk svn+ssh://server/svn/ 
>> project
>>
>> Then I did a git-svn fetch, which started pulling all the branches.
>> After a while, however, it hit a branch that it couldn't pull:
>>
>> Found branch parent: (tags/project-92~9)
>> 767f1f1601a4deae459c99ea6c1d1b9ba8f57a65
>> Following parent with do_update
>> ...
>> Successfully followed parent
>> fatal: refs/remotes/tags/project-92~9: cannot lock the ref
>> update-ref -m r13726 refs/remotes/tags/project-92~9
>> 950638ff72acc278156a0d55baafbabb43f2b772: command returned error: 128
>>
>> Some amount of searching failed to turn up any hints on what this
>> error means or how I can work around it. I'd appreciate any  
>> advice ...
>
> Is there a tag actually named "project-92~9"?

unfortunately, there's more than one tag with this naming convention :(

>  If so, it's
> an invalid branch name for git.  I started working on a way
> around it by mapping new names to it, but haven't gotten around to
> finishing it....

Aha! I don't really need 90% of the tags - is there a way I can tell  
the "git-svn fetch" not to bother with particular tags?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: git-svn "cannot lock ref" error during fetch
  2007-06-07 15:37   ` James Peach
@ 2007-06-09 20:06     ` Eric Wong
  2007-06-13 23:07       ` James Peach
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Wong @ 2007-06-09 20:06 UTC (permalink / raw)
  To: James Peach; +Cc: git

James Peach <jamespeach@mac.com> wrote:
> On Jun 6, 2007, at 11:31 PM, Eric Wong wrote:
> 
> >James Peach <jamespeach@mac.com> wrote:
> >>Hi all,
> >>
> >>I'm new to git, and I'm experimenting with using git-svn to interact
> >>with a large SVN repository with lots of branches.
> >>
> >>I initially did an init like this:
> >>
> >>git-svn init -t tags -b branches -T trunk svn+ssh://server/svn/ 
> >>project
> >>
> >>Then I did a git-svn fetch, which started pulling all the branches.
> >>After a while, however, it hit a branch that it couldn't pull:
> >>
> >>Found branch parent: (tags/project-92~9)
> >>767f1f1601a4deae459c99ea6c1d1b9ba8f57a65
> >>Following parent with do_update
> >>...
> >>Successfully followed parent
> >>fatal: refs/remotes/tags/project-92~9: cannot lock the ref
> >>update-ref -m r13726 refs/remotes/tags/project-92~9
> >>950638ff72acc278156a0d55baafbabb43f2b772: command returned error: 128
> >>
> >>Some amount of searching failed to turn up any hints on what this
> >>error means or how I can work around it. I'd appreciate any  
> >>advice ...
> >
> >Is there a tag actually named "project-92~9"?
> 
> unfortunately, there's more than one tag with this naming convention :(
> 
> > If so, it's
> >an invalid branch name for git.  I started working on a way
> >around it by mapping new names to it, but haven't gotten around to
> >finishing it....
> 
> Aha! I don't really need 90% of the tags - is there a way I can tell  
> the "git-svn fetch" not to bother with particular tags?

You can manually add fetch = foo:bar lines in the [svn-remote "svn"]
section of your .git/config file.  See the one for trunk.  Then
remove the tags= wildcard config line.

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: git-svn "cannot lock ref" error during fetch
  2007-06-09 20:06     ` Eric Wong
@ 2007-06-13 23:07       ` James Peach
  0 siblings, 0 replies; 6+ messages in thread
From: James Peach @ 2007-06-13 23:07 UTC (permalink / raw)
  To: Eric Wong; +Cc: git

On Jun 9, 2007, at 1:06 PM, Eric Wong wrote:

> James Peach <jamespeach@mac.com> wrote:
>> On Jun 6, 2007, at 11:31 PM, Eric Wong wrote:
>>
>>> James Peach <jamespeach@mac.com> wrote:
>>>> Hi all,
>>>>
>>>> I'm new to git, and I'm experimenting with using git-svn to  
>>>> interact
>>>> with a large SVN repository with lots of branches.
>>>>
>>>> I initially did an init like this:
>>>>
>>>> git-svn init -t tags -b branches -T trunk svn+ssh://server/svn/
>>>> project
>>>>
>>>> Then I did a git-svn fetch, which started pulling all the branches.
>>>> After a while, however, it hit a branch that it couldn't pull:
>>>>
>>>> Found branch parent: (tags/project-92~9)
>>>> 767f1f1601a4deae459c99ea6c1d1b9ba8f57a65
>>>> Following parent with do_update
>>>> ...
>>>> Successfully followed parent
>>>> fatal: refs/remotes/tags/project-92~9: cannot lock the ref
>>>> update-ref -m r13726 refs/remotes/tags/project-92~9
>>>> 950638ff72acc278156a0d55baafbabb43f2b772: command returned error:  
>>>> 128
>>>>
>>>> Some amount of searching failed to turn up any hints on what this
>>>> error means or how I can work around it. I'd appreciate any
>>>> advice ...
>>>
>>> Is there a tag actually named "project-92~9"?
>>
>> unfortunately, there's more than one tag with this naming  
>> convention :(
>>
>>> If so, it's
>>> an invalid branch name for git.  I started working on a way
>>> around it by mapping new names to it, but haven't gotten around to
>>> finishing it....
>>
>> Aha! I don't really need 90% of the tags - is there a way I can tell
>> the "git-svn fetch" not to bother with particular tags?
>
> You can manually add fetch = foo:bar lines in the [svn-remote "svn"]
> section of your .git/config file.  See the one for trunk.  Then
> remove the tags= wildcard config line.

that worked really well, thanks a lot!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-13 23:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-06 17:17 git-svn "cannot lock ref" error during fetch James Peach
2007-06-07  6:31 ` Eric Wong
2007-06-07  6:54   ` Lars Hjemli
2007-06-07 15:37   ` James Peach
2007-06-09 20:06     ` Eric Wong
2007-06-13 23:07       ` James Peach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).