code: def update(self, rev: Optional[str] = None):
      if rev:
          self.def_repo[self.PARAM_REV] = rev
      self.fs = self._make_fs(rev=rev, locked=False)
      self.def_repo[self.PARAM_REV_LOCK] = self.fs.repo.get_rev()
  
file_path: dvc/dvc/dependency/repo.py
imports: from copy import deepcopy
  from typing import TYPE_CHECKING, Any, Dict, Optional, Union
  import voluptuous
  from dvc.utils import as_posix
  from .base import Dependency
label_desc: Use image node_id 10 for calling the RepoDependency obj's underlying member method code with example usage: obj.update(rev) without return types