/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 breezy/shelf_ui.py

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-09 21:36:27 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210109213627-h1xwcutzy9m7a99b
Added 'Case Preserving Working Tree Use Cases' from Canonical Wiki

* Addod a page from the Canonical Bazaar wiki
  with information on the scmeatics of case
  perserving filesystems an a case insensitive
  filesystem works.
  
  * Needs re-work, but this will do as it is the
    same inforamoton as what was on the linked
    page in the currint documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from __future__ import absolute_import
18
 
 
 
17
import contextlib
19
18
import patiencediff
20
19
import shutil
21
20
import sys
25
24
 
26
25
from . import (
27
26
    builtins,
28
 
    cleanup,
29
27
    delta,
30
28
    diff,
31
29
    errors,
403
401
            else:
404
402
                shelf_id = manager.last_shelf()
405
403
                if shelf_id is None:
406
 
                    raise errors.BzrCommandError(
 
404
                    raise errors.CommandError(
407
405
                        gettext('No changes are shelved.'))
408
406
            apply_changes = True
409
407
            delete_shelf = True
458
456
 
459
457
    def run(self):
460
458
        """Perform the unshelving operation."""
461
 
        with cleanup.ExitStack() as exit_stack:
 
459
        with contextlib.ExitStack() as exit_stack:
462
460
            exit_stack.enter_context(self.tree.lock_tree_write())
463
461
            if self.read_shelf:
464
462
                trace.note(gettext('Using changes with id "%d".') %