chiark / gitweb /
Merge branch 'stable'
[stgit] / stgit / commands / export.py
index 50f6f671a979ef7bca12fa2900ada64679546670..6ebfd2aecf910d0d151d0fdff13f23df2ba0a2df 100644 (file)
@@ -89,8 +89,9 @@ def func(parser, options, args):
         series = file(os.path.join(dirname, 'series'), 'w+')
 
     applied = crt_series.get_applied()
+    unapplied = crt_series.get_unapplied()
     if len(args) != 0:
-        patches = parse_patches(args, applied)
+        patches = parse_patches(args, applied + unapplied, len(applied))
     else:
         patches = applied