call site 7 for path.SvnAuth.makecmdoptions
path/svn/testing/test_auth.py - line 181
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
   def test_info(self):
       u = svnurl_no_svn('http://foo.bar/svn/LICENSE.txt', auth=self.auth)
       def dirpath(self):
           return self
       u.cmdexec_output = '''\
      1717 johnny           1529 Nov 04 14:32 LICENSE.txt
      1716 johnny           5352 Nov 04 14:28 README.txt
   '''
       org_dp = u.__class__.dirpath
       u.__class__.dirpath = dirpath
       try:
->         info = u.info()
       finally:
           u.dirpath = org_dp
       assert info.size == 1529
path/svn/svncommon.py - line 181
178
179
180
181
182
183
184
185
186
   def info(self):
       """ return an Info structure with svn-provided information. """
       parent = self.dirpath()
->     nameinfo_seq = parent._listdir_nameinfo()
       bn = self.basename
       for name, info in nameinfo_seq:
           if name == bn:
               return info
       raise py.error.ENOENT(self)
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)