- if options.graphical:
- if options.missing:
- raise CmdException, '--graphical not supported with --missing'
-
- gitk_args = []
- if applied:
- gitk_args.append('%s^..%s'
- % (git_id(crt_series, applied[0]),
- git_id(crt_series, applied[-1])))
- for p in unapplied:
- patch_id = git_id(crt_series, p)
- gitk_args.append('%s^..%s' % (patch_id, patch_id))
-
- # discard the exit codes generated by SIGINT, SIGKILL, SIGTERM
- Run('gitk', *gitk_args).returns([0, -2, -9, -15]).run()
- else:
- max_len = 0
- if len(patches) > 0:
- max_len = max([len(i + branch_str) for i in patches])