~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/knitrepo.py

  • Committer: Martin von Gagern
  • Date: 2011-06-01 12:53:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6009.
  • Revision ID: martin.vgagern@gmx.net-20110601125356-lwozv2vecea6hxfz
Change from no_decorate to classify as name for the argument.

The command line switch remains as --no-classify, to keep backwards
compatibility.  Users are free to include --no-classify in an alias, and
still use --classify to change back.

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
        result.get_parent_map([('A',)])
182
182
        return result
183
183
 
 
184
    def fileid_involved_between_revs(self, from_revid, to_revid):
 
185
        """Find file_id(s) which are involved in the changes between revisions.
 
186
 
 
187
        This determines the set of revisions which are involved, and then
 
188
        finds all file ids affected by those revisions.
 
189
        """
 
190
        vf = self._get_revision_vf()
 
191
        from_set = set(vf.get_ancestry(from_revid))
 
192
        to_set = set(vf.get_ancestry(to_revid))
 
193
        changed = to_set.difference(from_set)
 
194
        return self._fileid_involved_by_set(changed)
 
195
 
 
196
    def fileid_involved(self, last_revid=None):
 
197
        """Find all file_ids modified in the ancestry of last_revid.
 
198
 
 
199
        :param last_revid: If None, last_revision() will be used.
 
200
        """
 
201
        if not last_revid:
 
202
            changed = set(self.all_revision_ids())
 
203
        else:
 
204
            changed = set(self.get_ancestry(last_revid))
 
205
        if None in changed:
 
206
            changed.remove(None)
 
207
        return self._fileid_involved_by_set(changed)
 
208
 
184
209
    @needs_read_lock
185
210
    def get_revision(self, revision_id):
186
211
        """Return the Revision object for a named revision"""