code: def link(self, srcdir, duplicate):
          
          self.srcdir = srcdir
          self.duplicate = duplicate
          self.__clearRepositoryCache(duplicate)
          srcdir.variant_dirs.append(self)
docs: Set this directory as the variant directory for the
          supplied source directory.