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

  • Committer: Matthieu Moy
  • Date: 2006-07-27 05:11:14 UTC
  • mto: (1711.2.98 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1887.
  • Revision ID: Matthieu.Moy@imag.fr-20060727051114-ebb0b2018d517195
needs_tree -> needs_branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
                              self.prefix or '',
172
172
                              self.spec)
173
173
    
174
 
    def needs_tree(self):
175
 
        """Whether this revision spec needs to be run in a tree"""
 
174
    def needs_branch(self):
 
175
        """Whether this revision spec needs a branch.
 
176
 
 
177
        Set this to False the branch argument of _match_on is not
 
178
        used."""
176
179
        return True
177
180
 
178
181
# private API
212
215
            revid = other_branch.get_rev_id(revno)
213
216
            return RevisionInfo(other_branch, revno)
214
217
        
215
 
    def needs_tree(self):
 
218
    def needs_branch(self):
216
219
        return self.spec.find(':') == -1
217
220
 
218
221
SPEC_TYPES.append(RevisionSpec_revno)