Ejemplo n.º 1
0
def parse(chgset, channel="nightly", chunk_size=1000000):
    url = RawRevision.get_url(channel)
    logger.info("Get patch for revision {}".format(chgset))
    try:
        res = Patch.parse_changeset(
            url, chgset, file_filter=utils.is_interesting_file, skip_comments=True
        )
        return res
    except Exception as e:
        msg = "Error in parsing patch with revision {}"
        logger.error(msg.format(chgset))
        raise e
Ejemplo n.º 2
0
 def test_remote(self):
     self.assertEqual(Patch.parse_changeset('https://hg.mozilla.org/mozilla-central/raw-rev', '8be2131ed183', get_hunks=True), self.knownCorrect)