threads / bug / 4502

[BUG] stgit branch renaming into new dir crashes

Subject: [BUG] stgit branch renaming into new dir crashes

## tl;dr

3 messages between Jun 13, 2006 and Jun 17, 2006.

replies: 2people: 2as markdown or json

Yann Dirson· Jun 13, 2006, 21:40 UTC · lore

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/>
Catalin Marinas· Jun 16, 2006, 12:06 UTC · re: Yann Dirson · lore

Re: [BUG] stgit branch renaming into new dir crashes

On 13/06/06, Yann Dirson <ydirson@altern.org> wrote:
Show 5 quoted lines
> 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
Yann Dirson· Jun 17, 2006, 21:31 UTC · re: Catalin Marinas · lore

Re: [BUG] stgit branch renaming into new dir crashes

On Fri, Jun 16, 2006 at 01:06:56PM +0100, Catalin Marinas wrote:
Show 9 quoted lines
> 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/>

← back to recent threads