{"thread":{"id":"4502","subject":"[BUG] stgit branch renaming into new dir crashes","startedAt":"2006-06-13T21:40:53Z","lastAt":"2006-06-17T21:31:21Z","messageCount":3,"participants":["Yann Dirson","Catalin Marinas"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"21753","messageId":"20060613214053.GD7766@nowhere.earth","threadId":"4502","inReplyTo":null,"subject":"[BUG] stgit branch renaming into new dir crashes","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2006-06-13T21:40:53Z","receivedAt":"2006-06-13T21:40:53Z","isPatch":false,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"When trying to rename a branch to a name including a slash, there is\nno explicit creation of leading dirs, and stgit crashes:\n\n$ stg branch -r multitag dev/multitag\nTraceback (most recent call last):\n  File \"/usr/bin/stg\", line 43, in ?\n    main()\n  File \"/usr/lib/python2.3/site-packages/stgit/main.py\", line 187, in main\n    command.func(parser, options, args)\n  File \"/usr/lib/python2.3/site-packages/stgit/commands/branch.py\", line 214, in func\n    stack.Series(args[0]).rename(args[1])\n  File \"/usr/lib/python2.3/site-packages/stgit/stack.py\", line 497, in rename\n    os.rename(self.__series_dir, to_stack.__series_dir)\nOSError: [Errno 2] No such file or directory\n\n\n-- \nYann Dirson    <ydirson@altern.org> |\nDebian-related: <dirson@debian.org> |   Support Debian GNU/Linux:\n                                    |  Freedom, Power, Stability, Gratis\n     http://ydirson.free.fr/        | Check <http://www.debian.org/>\n"},{"id":"21878","messageId":"b0943d9e0606160506g23179531v7921b67ac0e0aa0d@mail.gmail.com","threadId":"4502","inReplyTo":"20060613214053.GD7766@nowhere.earth","subject":"Re: [BUG] stgit branch renaming into new dir crashes","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@gmail.com","sentAt":"2006-06-16T12:06:56Z","receivedAt":"2006-06-16T12:06:56Z","isPatch":false,"sender":{"key":"catalin.marinas@gmail.com","avatar":null},"body":"On 13/06/06, Yann Dirson <ydirson@altern.org> wrote:\n> When trying to rename a branch to a name including a slash, there is\n> no explicit creation of leading dirs, and stgit crashes:\n>\n> $ stg branch -r multitag dev/multitag\n> Traceback (most recent call last):\n[...]\n\nWhat version of StGIT are you using? It seems to be OK with 0.10.\n\n-- \nCatalin\n"},{"id":"21970","messageId":"20060617213120.GV1297@nowhere.earth","threadId":"4502","inReplyTo":"b0943d9e0606160506g23179531v7921b67ac0e0aa0d@mail.gmail.com","subject":"Re: [BUG] stgit branch renaming into new dir crashes","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2006-06-17T21:31:21Z","receivedAt":"2006-06-17T21:31:21Z","isPatch":false,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"On Fri, Jun 16, 2006 at 01:06:56PM +0100, Catalin Marinas wrote:\n> On 13/06/06, Yann Dirson <ydirson@altern.org> wrote:\n> >When trying to rename a branch to a name including a slash, there is\n> >no explicit creation of leading dirs, and stgit crashes:\n> >\n> >$ stg branch -r multitag dev/multitag\n> >Traceback (most recent call last):\n> [...]\n> \n> What version of StGIT are you using? It seems to be OK with 0.10.\n\nRight, that was with 0.9, and works perfectly with 0.10.  Relying too\nmuch on /usr/bin/ ... :)\n\nBest regards,\n-- \nYann Dirson    <ydirson@altern.org> |\nDebian-related: <dirson@debian.org> |   Support Debian GNU/Linux:\n                                    |  Freedom, Power, Stability, Gratis\n     http://ydirson.free.fr/        | Check <http://www.debian.org/>\n"}]}