code: def filterManifestPatches(self):
          
          manifest_unrelated_downloads = []
          manifest_related_downloads = []
          for download in self.repoDownloads:
              project, ch_ps = download.split(" ")[-2:]
              if (self.manifestURL.endswith("/" + project) or
                      self.manifestURL.endswith("/" + project + ".git")):
                  ch, ps = map(int, ch_ps.split("/"))
                  branch = "refs/changes/%02d/%d/%d" % (ch % 100, ch, ps)
                  manifest_related_downloads.append(
                      ["git", "fetch", self.manifestURL, branch])
                  manifest_related_downloads.append(
                      ["git", "cherry-pick", "FETCH_HEAD"])
              else:
                  manifest_unrelated_downloads.append(download)
          self.repoDownloads = manifest_unrelated_downloads
          self.manifestDownloads = manifest_related_downloads
docs: Patches to manifest projects are a bit special.
          repo does not support a way to download them automatically,
          so we need to implement the boilerplate manually.
          This code separates the manifest patches from the other patches,
          and generates commands to import those manifest patches.