chiark / gitweb /
Don't have a global crt_series in stgit.commans.common
[stgit] / stgit / commands / files.py
index 07cc955f32cad2314098209eeacfc0153e573f94..4550251d471c4ce67cd72a6a8cbd8c24060b7c18 100644 (file)
@@ -57,8 +57,8 @@ def func(parser, options, args):
     else:
         parser.error('incorrect number of arguments')
 
-    rev1 = git_id('%s//bottom' % patch)
-    rev2 = git_id('%s//top' % patch)
+    rev1 = git_id(crt_series, '%s//bottom' % patch)
+    rev2 = git_id(crt_series, '%s//top' % patch)
 
     if options.stat:
         out.stdout_raw(git.diffstat(rev1 = rev1, rev2 = rev2) + '\n')