/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 commit.py

  • Committer: Vincent Ladeuil
  • Date: 2009-05-28 11:07:02 UTC
  • mto: This revision was merged to the branch mainline in revision 640.
  • Revision ID: v.ladeuil+lp@free.fr-20090528110702-alqi2wojbzdopwol
Complete tests around saved commit messages.

* tests/test_commit.py:
(QuestionHelpers): Factor out helpers for embedded dialogs.
(TestSavedCommitMessages): Factor out helpers for saved commit
messages.
(TestReusingSavedCommitMessages): Add tests for saved messages
reuse.

* commit.py:
(CommitDialog._do_cancel): Use the overidable dialog for tests
purposes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
692
692
            mgr.insert(self._get_global_commit_message(),
693
693
                       self._get_specific_files()[1])
694
694
            if mgr.is_not_empty(): # maybe worth saving
695
 
                response = question_dialog(
 
695
                response = self._question_dialog(
696
696
                    _i18n('Commit cancelled'),
697
697
                    _i18n('Do you want to save your commit messages ?'),
698
698
                    parent=self)