~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-08-16 06:46:17 UTC
  • mfrom: (5375.1.6 chk-canonicalizer-613698)
  • Revision ID: pqm@pqm.ubuntu.com-20100816064617-wizstoapjbffkj05
(spiv) Add hidden option 'bzr reconcile --canonicalize-chks' to repair repos
 affected by bug 522637. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1592
1592
 
1593
1593
    _see_also = ['check']
1594
1594
    takes_args = ['branch?']
 
1595
    takes_options = [
 
1596
        Option('canonicalize-chks',
 
1597
               help='Make sure CHKs are in canonical form (repairs '
 
1598
                    'bug 522637).',
 
1599
               hidden=True),
 
1600
        ]
1595
1601
 
1596
 
    def run(self, branch="."):
 
1602
    def run(self, branch=".", canonicalize_chks=False):
1597
1603
        from bzrlib.reconcile import reconcile
1598
1604
        dir = bzrdir.BzrDir.open(branch)
1599
 
        reconcile(dir)
 
1605
        reconcile(dir, canonicalize_chks=canonicalize_chks)
1600
1606
 
1601
1607
 
1602
1608
class cmd_revision_history(Command):