~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-11 16:55:31 UTC
  • mfrom: (1998.1.1 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060911165531-9e9b9a022a53fef5
(moy) fixes for revno:N:branch/path

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
        """
225
225
        return True
226
226
 
 
227
    def get_branch(self):
 
228
        """When the revision specifier contains a branch location, return it.
 
229
        
 
230
        Otherwise, return None.
 
231
        """
 
232
        return None
 
233
 
227
234
 
228
235
# private API
229
236
 
273
280
    def needs_branch(self):
274
281
        return self.spec.find(':') == -1
275
282
 
 
283
    def get_branch(self):
 
284
        if self.spec.find(':') == -1:
 
285
            return None
 
286
        else:
 
287
            return self.spec[self.spec.find(':')+1:]
 
288
 
276
289
# Old compatibility 
277
290
RevisionSpec_int = RevisionSpec_revno
278
291