call site 4 for path.SvnAuth.makecmdoptions
path/svn/testing/test_auth.py - line 165
159
160
161
162
163
164
165
166
167
168
   def test_listdir(self):
       u = svnurl_no_svn('http://foo.bar/svn', auth=self.auth)
       u.cmdexec_output = '''\
      1717 johnny           1529 Nov 04 14:32 LICENSE.txt
      1716 johnny           5352 Nov 04 14:28 README.txt
   '''
->     paths = u.listdir()
       assert paths[0].auth is self.auth
       assert paths[1].auth is self.auth
       assert paths[0].basename == 'LICENSE.txt'
path/svn/svncommon.py - line 161
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
   def listdir(self, fil=None, sort=None):
       """ list directory contents, possibly filter by the given fil func
               and possibly sorted.
           """
       if isinstance(fil, str):
           fil = common.fnmatch(fil)
->     nameinfo_seq = self._listdir_nameinfo()
       if len(nameinfo_seq) == 1:
           name, info = nameinfo_seq[0]
           if name == self.basename and info.kind == 'file':
               #if not self.check(dir=1):
               raise py.error.ENOTDIR(self)
       paths = self._make_path_tuple(nameinfo_seq)
   
       if fil or sort:
           paths = filter(fil, paths)
           paths = isinstance(paths, list) and paths or list(paths)
           if callable(sort):
               paths.sort(sort)
           elif sort:
               paths.sort()
       return paths
path/svn/urlcommand.py - line 245
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
   def _listdir_nameinfo(self):
       """ return sequence of name-info directory entries of self """
       def builder():
           try:
               res = self._svnwithrev('ls', '-v')
           except process.cmdexec.Error, e:
               if e.err.find('non-existent in that revision') != -1:
                   raise py.error.ENOENT(self, e.err)
               elif e.err.find('File not found') != -1:
                   raise py.error.ENOENT(self, e.err)
               elif e.err.find('not part of a repository')!=-1:
                   raise py.error.ENOENT(self, e.err)
               elif e.err.find('Unable to open')!=-1:
                   raise py.error.ENOENT(self, e.err)
               elif e.err.lower().find('method not allowed')!=-1:
                   raise py.error.EACCES(self, e.err)
               raise py.error.Error(e.err)
           lines = res.split('\n')
           nameinfo_seq = []
           for lsline in lines:
               if lsline:
                   info = InfoSvnCommand(lsline)
                   if info._name != '.':
                       nameinfo_seq.append((info._name, info))
           return nameinfo_seq
->     auth = self.auth and self.auth.makecmdoptions() or None
       if self.rev is not None:
           return self._lsrevcache.getorbuild((self.strpath, self.rev, auth),
                                              builder)
       else:
           return self._lsnorevcache.getorbuild((self.strpath, auth),
                                                builder)