Pass --remote-version to the tryjob cbuildbot so it can do backwards compat.

Right now it basically does nothing; in
Ib9a9d0657cd8e5a2e0dc3ddbbcc512f9d0f09b9c it's used
to detect the old approach for --remote-patches, and
upgrade/bail accordingly.

BUG=chromium-os:27415,chromium-os:29546,chromium-os:30042
TEST=manual.

Change-Id: Id468e33c071538c55c002eacbd218e01f059bd41
Reviewed-on: https://gerrit.chromium.org/gerrit/27737
Reviewed-by: David James <davidjames@chromium.org>
Commit-Ready: Brian Harring <ferringb@chromium.org>
Tested-by: Brian Harring <ferringb@chromium.org>
diff --git a/scripts/cbuildbot.py b/scripts/cbuildbot.py
index 9807a91..f112b72 100644
--- a/scripts/cbuildbot.py
+++ b/scripts/cbuildbot.py
@@ -925,6 +925,12 @@
   # A(unpatched) patches and bootstraps B.  B patches and bootstraps C.
   parser.add_remote_option('--test-bootstrap', action='store_true',
                           default=False, help=optparse.SUPPRESS_HELP)
+  # Note the default here needs to be hardcoded to 3; that is the last version
+  # that lacked this functionality.
+  # This is used so that cbuildbot when processing tryjobs from
+  # older chromite instances, we can use it for handling compatibility.
+  parser.add_option('--remote-version', default=3, type=int, action='store',
+                    help=optparse.SUPPRESS_HELP)
 
   #
   # Debug options