/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/info.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
 
 
19
17
__all__ = ['show_bzrdir_info']
20
18
 
21
19
from io import StringIO
108
106
            else:
109
107
                locs['checkout root'] = branch_path
110
108
        if working_path != master_path:
111
 
            locs['checkout of branch'] = master_path
 
109
            (master_path_base, params) = urlutils.split_segment_parameters(
 
110
                master_path)
 
111
            if working_path == master_path_base:
 
112
                locs['checkout of co-located branch'] = params['branch']
 
113
            elif 'branch' in params:
 
114
                locs['checkout of branch'] = "%s, branch %s" % (
 
115
                    master_path_base, params['branch'])
 
116
            else:
 
117
                locs['checkout of branch'] = master_path
112
118
        elif repository.is_shared():
113
119
            locs['repository branch'] = branch_path
114
120
        elif branch_path is not None:
138
144
        locs['shared repository'] = repository.user_url
139
145
    order = ['control directory', 'light checkout root',
140
146
             'repository checkout root', 'checkout root',
141
 
             'checkout of branch', 'shared repository',
142
 
             'repository', 'repository branch', 'branch root',
143
 
             'bound to branch']
 
147
             'checkout of branch', 'checkout of co-located branch',
 
148
             'shared repository', 'repository', 'repository branch',
 
149
             'branch root', 'bound to branch']
144
150
    return [(n, locs[n]) for n in order if n in locs]
145
151
 
146
152
 
276
282
    outfile.write('  %8d added\n' % len(delta.added))
277
283
    outfile.write('  %8d removed\n' % len(delta.removed))
278
284
    outfile.write('  %8d renamed\n' % len(delta.renamed))
 
285
    outfile.write('  %8d copied\n' % len(delta.copied))
279
286
 
280
287
    ignore_cnt = unknown_cnt = 0
281
288
    for path in working.extras():
448
455
        extra = []
449
456
        if repository.make_working_trees():
450
457
            extra.append('trees')
451
 
        if len(control.get_branches()) > 0:
 
458
        if len(control.branch_names()) > 0:
452
459
            extra.append('colocated branches')
453
460
        if extra:
454
461
            phrase += ' with ' + " and ".join(extra)