/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/weave.py

  • Committer: Martin Pool
  • Date: 2005-08-17 02:06:19 UTC
  • Revision ID: mbp@sourcefrog.net-20050817020618-c7ae430253df8532
- rearrangement of modules, contributed by Gustavo Niemeyer


1) Moved plugins directory to bzrlib/, so that there's a standard
  plugin directory which is not only installed with bzr itself
  but is also available when using bzr from the development tree.
  BZR_PLUGIN_PATH and DEFAULT_PLUGIN_PATH are then added to the
  standard plugins directory.

2) Moved the needed third-party tools to an internal directory under
  bzrlib/util.  This makes sure that needed tools are available in
  the bzr installation, including the correct/expected version, and
  eases the process of packaging and redistribution of bzr
  ('setup.py bdist*' creates a working distribution).

3) Fixed setup.py including the needed package entries.

I hope you find them useful.

Show diffs side-by-side

added added

removed removed

Lines of Context:
238
238
            basis_lineno.append(lineno)
239
239
            basis_lines.append(line)
240
240
 
241
 
        # another small special case: a merge, producing the same text as auto-merge
 
241
        # another small special case: a merge, producing the same text
 
242
        # as auto-merge
242
243
        if text == basis_lines:
243
244
            return new_version            
244
245
 
706
707
    print 'weave file        %9d bytes' % weave_size
707
708
    print 'total contents    %9d bytes' % total
708
709
    print 'compression ratio %9.2fx' % (float(total) / float(weave_size))
709
 
 
 
710
    if vers:
 
711
        avg = total/vers
 
712
        print 'average size      %9d bytes' % avg
 
713
        print 'relative size     %9.2fx' % (float(weave_size) / float(avg))
710
714
 
711
715
 
712
716
def usage():