/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_commit.py

  • Committer: NamNguyen
  • Date: 2007-08-27 08:38:37 UTC
  • mto: (2789.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2790.
  • Revision ID: namnguyen-20070827083837-t6a5oewzvdct6j8i
branch.py:

   * ``pre_commit`` hook's signature is changed to::

   hook(local, master, old_revno, old_revid, future_revno, future_revid,
        tree_delta, future_tree)

   * made it clear that pre_commit hooks must not modify neither
     the delta nor future_tree

commit.py:

   * replaced ``affected_ids`` with ``tree_delta``

   * only compute ``future_tree`` and ``tree_delta`` once

Show diffs side-by-side

added added

removed removed

Lines of Context:
359
359
            [('update', 1, 5, 'Collecting changes [Directory 0] - Stage'),
360
360
             ('update', 1, 5, 'Collecting changes [Directory 1] - Stage'),
361
361
             ('update', 2, 5, 'Saving data locally - Stage'),
362
 
             ('update', 3, 5, 'Running pre commit hooks - Stage'),
 
362
             ('update', 3, 5, 'Running pre_commit hooks - Stage'),
363
363
             ('update', 4, 5, 'Updating the working tree - Stage'),
364
 
             ('update', 5, 5, 'Running post commit hooks - Stage')],
 
364
             ('update', 5, 5, 'Running post_commit hooks - Stage')],
365
365
            factory._calls
366
366
           )
367
367
 
382
382
            [('update', 1, 5, 'Collecting changes [Directory 0] - Stage'),
383
383
             ('update', 1, 5, 'Collecting changes [Directory 1] - Stage'),
384
384
             ('update', 2, 5, 'Saving data locally - Stage'),
385
 
             ('update', 3, 5, 'Running pre commit hooks - Stage'),
 
385
             ('update', 3, 5, 'Running pre_commit hooks - Stage'),
386
386
             ('update', 4, 5, 'Updating the working tree - Stage'),
387
 
             ('update', 5, 5, 'Running post commit hooks - Stage'),
388
 
             ('update', 5, 5, 'Running post commit hooks [hook name] - Stage'),
 
387
             ('update', 5, 5, 'Running post_commit hooks - Stage'),
 
388
             ('update', 5, 5, 'Running post_commit hooks [hook name] - Stage'),
389
389
             ],
390
390
            factory._calls
391
391
           )
407
407
            [('update', 1, 5, 'Collecting changes [Directory 0] - Stage'),
408
408
             ('update', 1, 5, 'Collecting changes [Directory 1] - Stage'),
409
409
             ('update', 2, 5, 'Saving data locally - Stage'),
410
 
             ('update', 3, 5, 'Running pre commit hooks - Stage'),
411
 
             ('update', 3, 5, 'Running pre commit hooks [hook name] - Stage'),
 
410
             ('update', 3, 5, 'Running pre_commit hooks - Stage'),
 
411
             ('update', 3, 5, 'Running pre_commit hooks [hook name] - Stage'),
412
412
             ('update', 4, 5, 'Updating the working tree - Stage'),
413
 
             ('update', 5, 5, 'Running post commit hooks - Stage'),
 
413
             ('update', 5, 5, 'Running post_commit hooks - Stage'),
414
414
             ],
415
415
            factory._calls
416
416
           )