from stgit.commands.common import *
from stgit.utils import *
+from stgit.out import *
from stgit import stack, git
List the patches from the series which are not pushed onto the stack.
They are listed in the reverse order in which they were popped."""
+directory = DirectoryHasRepository()
options = [make_option('-b', '--branch',
help = 'use BRANCH instead of the default one'),
make_option('-c', '--count',
unapplied = crt_series.get_unapplied()
if options.count:
- print len(unapplied)
+ out.stdout(len(unapplied))
else:
for p in unapplied:
- print p
+ out.stdout(p)