chiark / gitweb /
Allow the Repository.get_stack() to get a default argument
[stgit] / stgit / commands / applied.py
index 522425b475bd4f6df9beee12cd2186932c2aff3f..e57c7960cab31a71fbe5522e850367103d40e487 100644 (file)
@@ -42,10 +42,7 @@ def func(parser, options, args):
     if len(args) != 0:
         parser.error('incorrect number of arguments')
 
-    if options.branch:
-        s = directory.repository.get_stack(options.branch)
-    else:
-        s = directory.repository.current_stack
+    s = directory.repository.get_stack(options.branch)
 
     if options.count:
         out.stdout(len(s.patchorder.applied))