~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_status.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-09-04 02:41:08 UTC
  • mfrom: (2792.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070904024108-wogizoajm6k1ba6w
Add short options to status to assist migrating svn users (Daniel Watkins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
371
371
        result2 = self.run_bzr("status --versioned -r 0..")[0]
372
372
        self.assertEquals(result2, result)
373
373
 
 
374
    def test_status_SV(self):
 
375
        tree = self.make_branch_and_tree('.')
 
376
 
 
377
        self.build_tree(['hello.txt'])
 
378
        result = self.run_bzr("status -SV")[0]
 
379
        self.assertNotContainsRe(result, "hello.txt")
 
380
 
 
381
        tree.add("hello.txt")
 
382
        result = self.run_bzr("status -SV")[0]
 
383
        self.assertContainsRe(result, "[+]N  hello.txt\n")
 
384
 
 
385
        tree.commit(message="added")
 
386
        result = self.run_bzr("status -SV -r 0..1")[0]
 
387
        self.assertContainsRe(result, "[+]N  hello.txt\n")
 
388
 
 
389
        self.build_tree(['world.txt'])
 
390
        result = self.run_bzr("status -SV -r 0")[0]
 
391
        self.assertContainsRe(result, "[+]N  hello.txt\n")
 
392
 
 
393
        result2 = self.run_bzr("status -SV -r 0..")[0]
 
394
        self.assertEquals(result2, result)
 
395
 
374
396
    def assertStatusContains(self, pattern):
375
397
        """Run status, and assert it contains the given pattern"""
376
398
        result = self.run_bzr("status --short")[0]