~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_repo.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-11 00:18:12 UTC
  • mto: (5777.7.2 bound-commit-lossy)
  • mto: This revision was merged to the branch mainline in revision 5791.
  • Revision ID: jelmer@samba.org-20110411001812-4z2a44e1z7cm3fdw
Add --lossy option to 'bzr commit'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
 
77
77
    def __init__(self, repository, parents, config, timestamp=None,
78
78
                 timezone=None, committer=None, revprops=None,
79
 
                 revision_id=None):
 
79
                 revision_id=None, lossy=False):
80
80
        CommitBuilder.__init__(self, repository, parents, config,
81
81
            timestamp=timestamp, timezone=timezone, committer=committer,
82
 
            revprops=revprops, revision_id=revision_id)
 
82
            revprops=revprops, revision_id=revision_id, lossy=lossy)
83
83
        self._file_graph = graph.Graph(
84
84
            repository._pack_collection.text_index.combined_index)
85
85
 
97
97
 
98
98
    def __init__(self, repository, parents, config, timestamp=None,
99
99
                 timezone=None, committer=None, revprops=None,
100
 
                 revision_id=None):
 
100
                 revision_id=None, lossy=False):
101
101
        CommitBuilder.__init__(self, repository, parents, config,
102
102
            timestamp=timestamp, timezone=timezone, committer=committer,
103
 
            revprops=revprops, revision_id=revision_id)
 
103
            revprops=revprops, revision_id=revision_id, lossy=lossy)
104
104
        self._file_graph = graph.Graph(
105
105
            repository._pack_collection.text_index.combined_index)
106
106