# stg export fails

2 messages from 2008-06-19 to 2008-06-19. Participants: Aneesh Kumar, Catalin Marinas.
Thread: https://gitlist.dev/t/14030

## Aneesh Kumar, 2008-06-19 03:30

Subject: stg export fails
Message-ID: <cc723f590806182030p65e737f6wcec3bada5a03d0b2@mail.gmail.com>
URL: https://gitlist.dev/e/cc723f590806182030p65e737f6wcec3bada5a03d0b2%40mail.gmail.com

```
[2.6.26-rc6.1-work@linux-review-ext]$ stg export -d /tmp/final/
001-ext4-bmap.patch
Checking for changes in the working directory ... done
Error: Unhandled exception:
Traceback (most recent call last):
  File "/home/kvaneesh/bin-local/stgit//lib/python2.5/site-packages/stgit/main.py",
line 278, in main
    ret = command.func(parser, options, args)
  File "/home/kvaneesh/bin-local/stgit//lib/python2.5/site-packages/stgit/commands/export.py",
line 94, in func
    patches = parse_patches(args, applied + unapplied, len(applied))
NameError: global name 'parse_patches' is not defined
[2.6.26-rc6.1-work@linux-review-ext]$

```

## Catalin Marinas, 2008-06-19 08:18

Subject: Re: stg export fails
Message-ID: <b0943d9e0806190118p1a15b174sd661ae7fbe473a02@mail.gmail.com>
URL: https://gitlist.dev/e/b0943d9e0806190118p1a15b174sd661ae7fbe473a02%40mail.gmail.com
In-Reply-To: <cc723f590806182030p65e737f6wcec3bada5a03d0b2@mail.gmail.com>

```
2008/6/19 Aneesh Kumar <aneesh.kumar@gmail.com>:
> [2.6.26-rc6.1-work@linux-review-ext]$ stg export -d /tmp/final/
> 001-ext4-bmap.patch
> Checking for changes in the working directory ... done
> Error: Unhandled exception:
> Traceback (most recent call last):
>  File "/home/kvaneesh/bin-local/stgit//lib/python2.5/site-packages/stgit/main.py",
> line 278, in main
>    ret = command.func(parser, options, args)
>  File "/home/kvaneesh/bin-local/stgit//lib/python2.5/site-packages/stgit/commands/export.py",
> line 94, in func
>    patches = parse_patches(args, applied + unapplied, len(applied))
> NameError: global name 'parse_patches' is not defined
> [2.6.26-rc6.1-work@linux-review-ext]$

Thanks. The latest HEAD broke the export function (there was another
report). I'll push the fix tonight (and add a test case).

-- 
Catalin

```
