def make_new(self, rev):
        # type: (str) -> RevOptions
        """
        Make a copy of the current instance, but with a new rev.

        Args:
          rev: the name of the revision for the new object.
        """
        return self.vc_class.make_rev_options(rev, extra_args=self.extra_args)

        Make a copy of the current instance, but with a new rev.

        Args:
          rev: the name of the revision for the new object.
        
product/gradle-plugin/src/main/python/pip/_internal/vcs/versioncontrol.py