Пример #1
0
    def get_commit_message(self, revisionid):
        """Return the string commit message appropriate for supplied revision.

        :revisionid: the id of the revision to create a message for
        :returns: the string of the commit message

        """
        msg = phlcon_differential.get_commit_message(self._conduit, revisionid)
        return phlsys_textconvert.lossy_unicode_to_ascii(msg)
Пример #2
0
    def get_commit_message(self, revisionid):
        """Return the string commit message appropriate for supplied revision.

        :revisionid: the id of the revision to create a message for
        :returns: the string of the commit message

        """
        msg = phlcon_differential.get_commit_message(self._multi_conduit,
                                                     revisionid)
        return phlsys_textconvert.lossy_unicode_to_ascii(msg)
 def _check_unicode_to_ascii(self, src, dst):
     value = phlsys_textconvert.lossy_unicode_to_ascii(src)
     self.assertEqual(value, dst)
     self.assertIsInstance(value, type(dst))
 def _check_unicode_to_ascii(self, src, dst):
     value = phlsys_textconvert.lossy_unicode_to_ascii(src)
     self.assertEqual(value, dst)
     self.assertIsInstance(value, type(dst))