~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to NEWS

  • Committer: Vincent Ladeuil
  • Date: 2010-09-16 16:13:18 UTC
  • mto: (5502.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 5504.
  • Revision ID: v.ladeuil+lp@free.fr-20100916161318-c9k41sne1m12rxl9
Add ``bzrlib.transform.orphan_policy`` and allows ``never`` to restore the previous behaviour.

* bzrlib/transform.py:
(TreeTransformBase._get_potential_orphans): Simplified.
(DiskTreeTransform.new_orphan): Use the orphaning_registry.
(refuse_orphan): Implement the previous behaviour (never orphan).
(conflict_pass): Clarify orphan creation and fallback on error.

* bzrlib/tests/test_transform.py:
(TestOrphan.test_never_orphan): Add more tests to cover no
orphaning and orphaning errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
  @needs_write_lock (set_option() for example).
82
82
  (Vincent Ladeuil,  #525571)
83
83
 
 
84
* Orphan creation (when a directory is deleted) is now controlled by the
 
85
  ``bzrlib.transform.orphan_policy`` configuration variable. Acceptable
 
86
  values are ``never`` (the previous behaviour) or ``always`` to create
 
87
  orphans when a versioned directory is deleted and contains unversioned
 
88
  files (the orphans). (Vincent Ladeuil, #323111)
 
89
 
84
90
* The ``lp:`` prefix will now use your known username (from
85
91
  ``bzr launchpad-login``) to expand ``~`` to your username.  For example:
86
92
  ``bzr launchpad-login user && bzr push lp:~/project/branch`` will now