/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/msgeditor.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:
16
16
 
17
17
"""Commit message editor support."""
18
18
 
19
 
from __future__ import absolute_import
20
 
 
21
19
import codecs
 
20
from io import (
 
21
    BytesIO,
 
22
    StringIO,
 
23
    )
22
24
import os
23
25
from subprocess import call
24
26
import sys
25
27
 
26
28
from . import (
 
29
    bedding,
27
30
    cmdline,
28
31
    config,
29
32
    osutils,
33
36
    )
34
37
from .errors import BzrError
35
38
from .hooks import Hooks
36
 
from .sixish import (
37
 
    BytesIO,
38
 
    StringIO,
39
 
    )
40
39
 
41
40
 
42
41
class BadCommitMessageEncoding(BzrError):
54
53
 
55
54
    e = config.GlobalStack().get('editor')
56
55
    if e is not None:
57
 
        yield e, config.config_filename()
 
56
        yield e, bedding.config_path()
58
57
 
59
58
    for varname in 'VISUAL', 'EDITOR':
60
59
        if varname in os.environ:
93
92
    raise BzrError("Could not start any editor.\nPlease specify one with:\n"
94
93
                   " - $BRZ_EDITOR\n - editor=/some/path in %s\n"
95
94
                   " - $VISUAL\n - $EDITOR" %
96
 
                   config.config_filename())
 
95
                   bedding.config_path())
97
96
 
98
97
 
99
98
DEFAULT_IGNORE_LINE = "%(bar)s %(msg)s %(bar)s" % \