git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] stgit branch renaming into new dir crashes
@ 2006-06-13 21:40 Yann Dirson
  2006-06-16 12:06 ` Catalin Marinas
  0 siblings, 1 reply; 3+ messages in thread
From: Yann Dirson @ 2006-06-13 21:40 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: GIT list

When trying to rename a branch to a name including a slash, there is
no explicit creation of leading dirs, and stgit crashes:

$ stg branch -r multitag dev/multitag
Traceback (most recent call last):
  File "/usr/bin/stg", line 43, in ?
    main()
  File "/usr/lib/python2.3/site-packages/stgit/main.py", line 187, in main
    command.func(parser, options, args)
  File "/usr/lib/python2.3/site-packages/stgit/commands/branch.py", line 214, in func
    stack.Series(args[0]).rename(args[1])
  File "/usr/lib/python2.3/site-packages/stgit/stack.py", line 497, in rename
    os.rename(self.__series_dir, to_stack.__series_dir)
OSError: [Errno 2] No such file or directory


-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

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

* Re: [BUG] stgit branch renaming into new dir crashes
  2006-06-13 21:40 [BUG] stgit branch renaming into new dir crashes Yann Dirson
@ 2006-06-16 12:06 ` Catalin Marinas
  2006-06-17 21:31   ` Yann Dirson
  0 siblings, 1 reply; 3+ messages in thread
From: Catalin Marinas @ 2006-06-16 12:06 UTC (permalink / raw)
  To: Yann Dirson; +Cc: GIT list

On 13/06/06, Yann Dirson <ydirson@altern.org> wrote:
> When trying to rename a branch to a name including a slash, there is
> no explicit creation of leading dirs, and stgit crashes:
>
> $ stg branch -r multitag dev/multitag
> Traceback (most recent call last):
[...]

What version of StGIT are you using? It seems to be OK with 0.10.

-- 
Catalin

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

* Re: [BUG] stgit branch renaming into new dir crashes
  2006-06-16 12:06 ` Catalin Marinas
@ 2006-06-17 21:31   ` Yann Dirson
  0 siblings, 0 replies; 3+ messages in thread
From: Yann Dirson @ 2006-06-17 21:31 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: GIT list

On Fri, Jun 16, 2006 at 01:06:56PM +0100, Catalin Marinas wrote:
> On 13/06/06, Yann Dirson <ydirson@altern.org> wrote:
> >When trying to rename a branch to a name including a slash, there is
> >no explicit creation of leading dirs, and stgit crashes:
> >
> >$ stg branch -r multitag dev/multitag
> >Traceback (most recent call last):
> [...]
> 
> What version of StGIT are you using? It seems to be OK with 0.10.

Right, that was with 0.9, and works perfectly with 0.10.  Relying too
much on /usr/bin/ ... :)

Best regards,
-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

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

end of thread, other threads:[~2006-06-17 21:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-13 21:40 [BUG] stgit branch renaming into new dir crashes Yann Dirson
2006-06-16 12:06 ` Catalin Marinas
2006-06-17 21:31   ` Yann Dirson

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).