/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: Aaron Bentley
  • Date: 2007-08-15 01:11:27 UTC
  • mfrom: (2699 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2700.
  • Revision ID: aaron.bentley@utoronto.ca-20070815011127-0il5s8oqmt26bma7
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
    A negative number will count from the end of the branch (-1 is the
267
267
    last revision, -2 the previous one). If the negative number is larger
268
268
    than the branch's history, the first revision is returned.
269
 
    examples:
 
269
    Examples::
 
270
 
270
271
      revno:1                   -> return the first revision
271
272
      revno:3:/path/to/branch   -> return the 3rd revision of
272
273
                                   the branch '/path/to/branch'
370
371
    Supply a specific revision id, that can be used to specify any
371
372
    revision id in the ancestry of the branch. 
372
373
    Including merges, and pending merges.
373
 
    examples:
 
374
    Examples::
 
375
 
374
376
      revid:aaaa@bbbb-123456789 -> Select revision 'aaaa@bbbb-123456789'
375
377
    """    
376
378
    prefix = 'revid:'
392
394
 
393
395
    Supply a positive number to get the nth revision from the end.
394
396
    This is the same as supplying negative numbers to the 'revno:' spec.
395
 
    examples:
 
397
    Examples::
 
398
 
396
399
      last:1        -> return the last revision
397
400
      last:3        -> return the revision 2 before the end.
398
401
    """    
433
436
    This is mostly useful when inspecting revisions that are not in the
434
437
    revision history of a branch.
435
438
 
436
 
    examples:
 
439
    Examples::
 
440
 
437
441
      before:1913    -> Return the parent of revno 1913 (revno 1912)
438
442
      before:revid:aaaa@bbbb-1234567890  -> return the parent of revision
439
443
                                            aaaa@bbbb-1234567890
521
525
    Matches the first entry after a given date (either at midnight or
522
526
    at a specified time).
523
527
 
524
 
    One way to display all the changes since yesterday would be:
 
528
    One way to display all the changes since yesterday would be::
 
529
 
525
530
        bzr log -r date:yesterday..-1
526
531
 
527
 
    examples:
 
532
    Examples::
 
533
 
528
534
      date:yesterday            -> select the first revision since yesterday
529
535
      date:2006-08-14,17:10:14  -> select the first revision after
530
536
                                   August 14th, 2006 at 5:10pm.
612
618
    that your branch introduces, while excluding the changes that you
613
619
    have not merged from the remote branch.
614
620
 
615
 
    examples:
 
621
    Examples::
 
622
 
616
623
      ancestor:/path/to/branch
617
624
      $ bzr diff -r ancestor:../../mainline/branch
618
625
    """
660
667
 
661
668
    Supply the path to a branch to select its last revision.
662
669
 
663
 
    examples:
 
670
    Examples::
 
671
 
664
672
      branch:/path/to/branch
665
673
    """
666
674
    prefix = 'branch:'
696
704
    branches. Usually this is the branch point, but it could also be
697
705
    a revision that was merged.
698
706
 
699
 
    examples:
 
707
    Examples::
 
708
 
700
709
      $ bzr diff -r submit:
701
710
    """
702
711