/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Javier Derderian
  • Date: 2008-04-16 00:00:41 UTC
  • mto: This revision was merged to the branch mainline in revision 464.
  • Revision ID: javierder@gmail.com-20080416000041-905mkz49uidrdih1
Added revision option to gstatus. Bug #136530

Show diffs side-by-side

added added

removed removed

Lines of Context:
383
383
    
384
384
    aliases = [ "gst" ]
385
385
    takes_args = ['PATH?']
386
 
    takes_options = []
 
386
    takes_options = ['revision']
387
387
 
388
 
    def run(self, path='.'):
 
388
    def run(self, path='.', revision=None):
389
389
        import os
390
390
        gtk = self.open_display()
391
391
        from status import StatusDialog
392
392
        (wt, wt_path) = workingtree.WorkingTree.open_containing(path)
393
 
        status = StatusDialog(wt, wt_path)
 
393
        
 
394
        if revision is not None:
 
395
            revision_id = revision[0].in_history(wt.branch).rev_id
 
396
        else:
 
397
            revision_id = None
 
398
 
 
399
        status = StatusDialog(wt, wt_path, revision_id)
394
400
        status.connect("destroy", gtk.main_quit)
395
401
        status.run()
396
402