call site 0 for path.svnwc.__eq__
path/svn/testing/test_wccommand.py - line 278
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
   def test_commit_nonrecursive(self):
       root = self.root
       somedir = root.join('sampledir')
       somefile = somedir.join('otherfile')
       somefile.write('foo')
       somedir.propset('foo', 'bar')
       status = somedir.status()
       assert len(status.prop_modified) == 1
       assert len(status.modified) == 1
   
       somedir.commit('non-recursive commit', rec=0)
->     status = somedir.status()
       assert len(status.prop_modified) == 0
       assert len(status.modified) == 1
   
       somedir.commit('recursive commit')
       status = somedir.status()
       assert len(status.prop_modified) == 0
       assert len(status.modified) == 0
path/svn/wccommand.py - line 338
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
   def status(self, updates=0, rec=0, externals=0):
       """ return (collective) Status object for this file. """
       # http://svnbook.red-bean.com/book.html#svn-ch-3-sect-4.3.1
       #             2201     2192        jum   test
       # XXX
       if externals:
           raise ValueError("XXX cannot perform status() "
                            "on external items yet")
       else:
           #1.2 supports: externals = '--ignore-externals'
           externals = ''
       if rec:
           rec= ''
       else:
           rec = '--non-recursive'
   
       # XXX does not work on all subversion versions
       #if not externals: 
       #    externals = '--ignore-externals' 
   
       if updates:
           updates = '-u'
       else:
           updates = ''
   
       update_rev = None
   
       cmd = 'status -v %s %s %s' % (updates, rec, externals)
       out = self._authsvn(cmd)
       rootstatus = WCStatus(self)
       for line in out.split('\n'):
           if not line.strip():
               continue
           #print "processing %r" % line
           flags, rest = line[:8], line[8:]
           # first column
           c0,c1,c2,c3,c4,c5,x6,c7 = flags
           #if '*' in line:
           #    print "flags", repr(flags), "rest", repr(rest)
   
           if c0 in '?XI':
               fn = line.split(None, 1)[1]
               if c0 == '?':
                   wcpath = self.join(fn, abs=1)
                   rootstatus.unknown.append(wcpath)
               elif c0 == 'X':
                   wcpath = self.__class__(self.localpath.join(fn, abs=1),
                                           auth=self.auth)
                   rootstatus.external.append(wcpath)
               elif c0 == 'I':
                   wcpath = self.join(fn, abs=1)
                   rootstatus.ignored.append(wcpath)
   
               continue
   
           #elif c0 in '~!' or c4 == 'S':
           #    raise NotImplementedError("received flag %r" % c0)
   
           m = self._rex_status.match(rest)
           if not m:
               if c7 == '*':
                   fn = rest.strip()
                   wcpath = self.join(fn, abs=1)
                   rootstatus.update_available.append(wcpath)
                   continue
               if line.lower().find('against revision:')!=-1:
                   update_rev = int(rest.split(':')[1].strip())
                   continue
               # keep trying
               raise ValueError, "could not parse line %r" % line
           else:
               rev, modrev, author, fn = m.groups()
           wcpath = self.join(fn, abs=1)
           #assert wcpath.check()
           if c0 == 'M':
               assert wcpath.check(file=1), "didn't expect a directory with changed content here"
               rootstatus.modified.append(wcpath)
           elif c0 == 'A' or c3 == '+' :
               rootstatus.added.append(wcpath)
           elif c0 == 'D':
               rootstatus.deleted.append(wcpath)
           elif c0 == 'C':
               rootstatus.conflict.append(wcpath)
           elif c0 == '~':
               rootstatus.kindmismatch.append(wcpath)
           elif c0 == '!':
               rootstatus.incomplete.append(wcpath)
           elif not c0.strip():
               rootstatus.unchanged.append(wcpath)
           else:
               raise NotImplementedError("received flag %r" % c0)
   
           if c1 == 'M':
               rootstatus.prop_modified.append(wcpath)
           # XXX do we cover all client versions here?
           if c2 == 'L' or c5 == 'K':
               rootstatus.locked.append(wcpath)
           if c7 == '*':
               rootstatus.update_available.append(wcpath)
   
->         if wcpath == self:
               rootstatus.rev = rev
               rootstatus.modrev = modrev
               rootstatus.author = author
               if update_rev:
                   rootstatus.update_rev = update_rev
               continue
       return rootstatus