/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 olive/__init__.py

  • Committer: Mateusz Korniak
  • Date: 2007-09-14 08:40:45 UTC
  • mto: This revision was merged to the branch mainline in revision 275.
  • Revision ID: matkor@laptop-hp-20070914084045-tfiphgirehwa1b1n
Commented out one line description of log_revison in dialogs. 
Dialog looks ugly with them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
552
552
        local_extra, remote_extra = find_unmerged(local_branch,parent_branch)
553
553
 
554
554
        if local_extra or remote_extra:
555
 
            def log_revision_one_line_text(log_revision):
556
 
                """ Generates one line description of log_revison ended with end of line."""
557
 
                revision = log_revision.rev
558
 
                txt =  "- %s (%s)\n" % (revision.get_summary(), revision.committer, )
559
 
                txt = txt.replace("<"," ") # Seems < > chars are expected to be xml tags ...
560
 
                txt = txt.replace(">"," ")
561
 
                return txt
 
555
            
 
556
            ## def log_revision_one_line_text(log_revision):
 
557
            ##    """ Generates one line description of log_revison ended with end of line."""
 
558
            ##    revision = log_revision.rev
 
559
            ##    txt =  "- %s (%s)\n" % (revision.get_summary(), revision.committer, )
 
560
            ##    txt = txt.replace("<"," ") # Seems < > chars are expected to be xml tags ...
 
561
            ##    txt = txt.replace(">"," ")
 
562
            ##    return txt
562
563
            
563
564
            dlg_txt = ""
564
565
            if local_extra:
565
 
                dlg_txt += _('%d local extra revision(s):\n') % (len(local_extra),) 
566
 
                max_revisions = 10
567
 
                for log_revision in iter_log_revisions(local_extra, local_branch.repository, verbose=1):
568
 
                    dlg_txt += log_revision_one_line_text(log_revision)
569
 
                    if max_revisions <= 0:
570
 
                        dlg_txt += _("more ... \n")
571
 
                        break
572
 
                max_revisions -= 1
573
 
            dlg_txt += "\n"
 
566
                dlg_txt += _('%d local extra revision(s). \n') % (len(local_extra),) 
 
567
                ## NOTE: We do not want such ugly info about missing revisions
 
568
                ##       Revision Browser should be used there
 
569
                ## max_revisions = 10
 
570
                ## for log_revision in iter_log_revisions(local_extra, local_branch.repository, verbose=1):
 
571
                ##    dlg_txt += log_revision_one_line_text(log_revision)
 
572
                ##    if max_revisions <= 0:
 
573
                ##        dlg_txt += _("more ... \n")
 
574
                ##        break
 
575
                ## max_revisions -= 1
 
576
            ## dlg_txt += "\n"
574
577
            if remote_extra:
575
 
                dlg_txt += _('%d local missing revision(s):\n') % (len(remote_extra),) 
576
 
                max_revisions = 10
577
 
                for log_revision in iter_log_revisions(remote_extra, parent_branch.repository, verbose=1):
578
 
                    dlg_txt += log_revision_one_line_text(log_revision)
579
 
                    if max_revisions <= 0:
580
 
                        dlg_txt += _("more ... \n")
581
 
                        break
582
 
                    max_revisions -= 1
 
578
                dlg_txt += _('%d local missing revision(s).\n') % (len(remote_extra),) 
 
579
                ## max_revisions = 10
 
580
                ## for log_revision in iter_log_revisions(remote_extra, parent_branch.repository, verbose=1):
 
581
                ##    dlg_txt += log_revision_one_line_text(log_revision)
 
582
                ##    if max_revisions <= 0:
 
583
                ##        dlg_txt += _("more ... \n")
 
584
                ##        break
 
585
                ##    max_revisions -= 1
583
586
                
584
587
            info_dialog(_('There are missing revisions'),
585
588
                        dlg_txt)