parameters: (self, usecache=1)
return_statement: return info
docstring: return an Info structure with svn-provided information.
docstring_summary: return an Info structure with svn-provided information.
docstring_tokens: return an Info structure with svn - provided information .
function: def info(self, usecache=1):
          """ return an Info structure with svn-provided information. """
          info = usecache and cache.info.get(self)
          if not info:
              try:
                  output = self._svn('info')
              except py.process.cmdexec.Error:
                  e = sys.exc_info()[1]
                  if e.err.find('Path is not a working copy directory') != -1:
                      raise py.error.ENOENT(self, e.err)
                  elif e.err.find("is not under version control") != -1:
                      raise py.error.ENOENT(self, e.err)
                  raise
              # XXX SVN 1.3 has output on stderr instead of stdout (while it does
              # return 0!), so a bit nasty, but we assume no output is output
              # to stderr...
              if (output.strip() == '' or
                      output.lower().find('not a versioned resource') != -1):
                  raise py.error.ENOENT(self, output)
              info = InfoSvnWCCommand(output)
  
              # Can't reliably compare on Windows without access to win32api
              if sys.platform != 'win32':
                  if info.path != self.localpath:
                      raise py.error.ENOENT(self, "not a versioned resource:" +
                              " %s != %s" % (info.path, self.localpath))
              cache.info[self] = info
          return info
function_tokens: def info ( self , usecache = 1 ) : info = usecache and cache . info . get ( self ) if not info : try : output = self . _svn ( 'info' ) except py . process . cmdexec . Error : e = sys . exc_info ( ) [ 1 ] if e . err . find ( 'Path is not a working copy directory' ) != - 1 : raise py . error . ENOENT ( self , e . err ) elif e . err . find ( "is not under version control" ) != - 1 : raise py . error . ENOENT ( self , e . err ) raise # XXX SVN 1.3 has output on stderr instead of stdout (while it does # return 0!), so a bit nasty, but we assume no output is output # to stderr... if ( output . strip ( ) == '' or output . lower ( ) . find ( 'not a versioned resource' ) != - 1 ) : raise py . error . ENOENT ( self , output ) info = InfoSvnWCCommand ( output ) # Can't reliably compare on Windows without access to win32api if sys . platform != 'win32' : if info . path != self . localpath : raise py . error . ENOENT ( self , "not a versioned resource:" + " %s != %s" % ( info . path , self . localpath ) ) cache . info [ self ] = info return info