~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: ghigo
  • Date: 2006-10-15 20:27:42 UTC
  • mto: This revision was merged to the branch mainline in revision 2126.
  • Revision ID: ghigo@venice-20061015202742-b43422b297ac37b5
Updates on the basis of the Richard Wilbur suggestions

Show diffs side-by-side

added added

removed removed

Lines of Context:
316
316
    revision id in the ancestry of the branch. 
317
317
    Including merges, and pending merges.
318
318
    examples:
319
 
      revid:aaaa@bbbb-123456789 -> Select revision 'aaa@bbb-123456789'
 
319
      revid:aaaa@bbbb-123456789 -> Select revision 'aaaa@bbbb-123456789'
320
320
    """    
321
321
    prefix = 'revid:'
322
322
 
334
334
    """Selects the nth revision from the end.
335
335
 
336
336
    Supply a positive number to get the nth revision from the end.
337
 
    This is the same as suppling negative numbers to the 'revno:' spec.
 
337
    This is the same as supplying negative numbers to the 'revno:' spec.
338
338
    examples:
339
339
      last:1        -> return the last revision
340
340
      last:3        -> return the revision 2 before the end.
377
377
    examples:
378
378
      before:1913    -> Return the parent of revno 1913 (revno 1912)
379
379
      before:revid:aaaa@bbbb-1234567890  -> return the parent of revision
380
 
                                            aaa@bbb-1234567890
 
380
                                            aaaa@bbbb-1234567890
381
381
      bzr diff -r before:revid:aaaa..revid:aaaa
382
382
            -> Find the changes between revision 'aaaa' and its parent.
383
383
               (what changes did 'aaaa' introduce)
544
544
 
545
545
    examples:
546
546
      ancestor:/path/to/branch
547
 
      bzr diff -r ancestor:../../mainline/branch
 
547
      $ bzr diff -r ancestor:../../mainline/branch
548
548
    """
549
549
    prefix = 'ancestor:'
550
550