Commit 69391d0d authored by Bhanuprakash Modem's avatar Bhanuprakash Modem Committed by Arkadiusz Hiler
Browse files

git-pw: Print the correct 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 - it applies the requested one.

This patch fixes the logic to print the correct revision.

This fixes #22

Signed-off-by: Bhanuprakash Modem's avatarBhanuprakash Modem <bhanuprakash.modem@intel.com>
Signed-off-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent e3ad62df
Pipeline #83197 passed with stage
in 2 minutes and 6 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