code: def current_id(self):
          
          cmd = ['hg', '-q', 'id', '-i']
          return self.sh(cmd, shell=False).rstrip().rstrip('+')
docs: Determine the current revision identifier for the working directory
          of this Repository
  
          Returns:
              str: revision identifier (``hg -q id -i``)