call site 5 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 251
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)
misc/cache.py - line 80
77
78
79
80
81
   def getorbuild(self, key, builder, *args, **kwargs):
       entry = self.getentry(key)
       if entry is None:
->         entry = self.build(key, builder, *args, **kwargs)
       return entry.value
misc/cache.py - line 145
143
144
145
146
147
148
   def build(self, key, builder, *args, **kwargs):
       ctime = gettime()
->     val = builder(*args, **kwargs)
       entry = AgingEntry(val, ctime + self.maxseconds)
       self.putentry(key, entry)
       return entry
path/svn/urlcommand.py - line 224
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
   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
path/svn/urlcommand.py - line 52
49
50
51
52
53
54
55
   def _svnwithrev(self, cmd, *args):
       """ execute an svn command, append our own url and revision """
       if self.rev is None:
->         return self._svnwrite(cmd, *args)
       else:
           args = ['-r', self.rev] + list(args)
           return self._svnwrite(cmd, *args)
path/svn/urlcommand.py - line 67
57
58
59
60
61
62
63
64
65
66
67
68
   def _svnwrite(self, cmd, *args):
       """ execute an svn command, append our own url """
       l = ['svn %s' % cmd]
       args = ['"%s"' % self._escape(item) for item in args]
       l.extend(args)
       l.append('"%s"' % self._encodedurl())
       # fixing the locale because we can't otherwise parse
       string = " ".join(l)
       if DEBUG:
           print "execing", string
->     out = self._svncmdexecauth(string)
       return out
path/svn/urlcommand.py - line 74
70
71
72
73
74
75
   def _svncmdexecauth(self, cmd):
       """ execute an svn command 'as is' """
       cmd = svncommon.fixlocale() + cmd
       if self.auth is not None:
->         cmd += ' ' + self.auth.makecmdoptions()
       return self._cmdexec(cmd)