Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-19 Thread Junio C Hamano
Eric Wong writes: > Probably, I'm not sure if it'd break existing uses. Anyways, that's a > separate issue we can deal with another day. > > I've added my Signed-off-by: to your latest patch and pushed > to "master" of git://bogomips.org/git-svn.git > (commit e3bd4ddaa9a60fa4e70efdb143b434b440d6

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-19 Thread Eric Wong
Marcin Owsiany wrote: > On Wed, Jul 18, 2012 at 11:27:22AM +, Eric Wong wrote: > > Marcin Owsiany wrote: > > > Turns out that command_noisy() > > > - has a meaningless return value > > > - throws an exception on command failure > > > so the "||" bit does not work. > > > Also, for some reaso

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-18 Thread Junio C Hamano
Marcin Owsiany writes: > PTAL: > > From: Marcin Owsiany > Date: Sun, 24 Jun 2012 22:40:05 +0100 > Subject: [PATCH] git-svn: don't create master if another head exists > > git-svn insists on creating the "master" head (unless it exists) on every > "fetch". It is useful that it gets created initia

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-18 Thread Marcin Owsiany
On Wed, Jul 18, 2012 at 11:27:22AM +, Eric Wong wrote: > Marcin Owsiany wrote: > > On Wed, Jul 11, 2012 at 03:56:43PM -0700, Junio C Hamano wrote: > > > If the caller does not handle errors, it could be even clearer to > > > write it like > > > > > > command_noisy(qw(update-ref HEAD), $gs->

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-18 Thread Eric Wong
Marcin Owsiany wrote: > On Wed, Jul 11, 2012 at 03:56:43PM -0700, Junio C Hamano wrote: > > If the caller does not handle errors, it could be even clearer to > > write it like > > > > command_noisy(qw(update-ref HEAD), $gs->refname) || > > die "Cannot update HEAD!!!"; > > Turns o

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-18 Thread Marcin Owsiany
Thanks for the review! On Wed, Jul 11, 2012 at 03:56:43PM -0700, Junio C Hamano wrote: > Marcin Owsiany writes: > > > Date: Sun, 24 Jun 2012 22:40:05 +0100 > > Subject: [PATCH] git-svn: don't create master if another head exists > > > > git-svn insists on creating the "master" head (unless it ex

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-11 Thread Junio C Hamano
Marcin Owsiany writes: > Date: Sun, 24 Jun 2012 22:40:05 +0100 > Subject: [PATCH] git-svn: don't create master if another head exists > > git-svn insists on creating the "master" head (unless it exists) on every > "fetch". It is useful that it gets created initially, when no head exists > - users

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-11 Thread Marcin Owsiany
On Wed, Jul 11, 2012 at 01:26:17AM +, Eric Wong wrote: > Junio C Hamano wrote: > > Marcin Owsiany writes: > > > > >> This makes my idea to do the same to "my something else instead of > > >> master" much less attractive. In fact I don't think such behaviour would > > >> be useful. > > >> >

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-10 Thread Eric Wong
Junio C Hamano wrote: > Marcin Owsiany writes: > > >> This makes my idea to do the same to "my something else instead of > >> master" much less attractive. In fact I don't think such behaviour would > >> be useful. > >> > >> I think with the suggested patch git-svn works as I would like it to:

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-09 Thread Junio C Hamano
Marcin Owsiany writes: >> This makes my idea to do the same to "my something else instead of >> master" much less attractive. In fact I don't think such behaviour would >> be useful. >> >> I think with the suggested patch git-svn works as I would like it to: >> - creates "master" at initial che

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-09 Thread Marcin Owsiany
On Tue, Jun 26, 2012 at 11:32:15PM +0100, Marcin Owsiany wrote: > On Tue, Jun 26, 2012 at 03:03:07PM -0700, Junio C Hamano wrote: > > Marcin Owsiany writes: > > > > > diff --git a/git-svn.perl b/git-svn.perl > > > index 0b074c4..2379a71 100755 > > > --- a/git-svn.perl > > > +++ b/git-svn.perl > >