Commit d6403f52 authored by Bhanuprakash Modem's avatar Bhanuprakash Modem
Browse files

git-pw: Displays the wrong revision when applying with --revision



When running "git pw apply --revision N SERIES_ID" it always says
that it applies the newest revision even though it does the correct
thing.

This patch will correct the logic to print the requested revision
instead of printing the latest.

This fixes #22
Signed-off-by: Bhanuprakash Modem's avatarBhanuprakash Modem <bhanuprakash.modem@intel.com>
parent e3ad62df
Pipeline #83157 passed with stages
in 4 minutes and 7 seconds
......@@ -635,7 +635,7 @@ class GitPatchwork(object):
try:
(series, revision) = self.cmd_get_series_revision()
print('Applying series: %s (rev %d)' % (series.name,
series.version))
revision.rev))
return self.am(revision.absolute_url('/mbox/'))
except HttpError as e:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment