# HG changeset patch # User Jeff Hammel # Date 1380370559 25200 # Node ID 546695da018c269eeeb1e36bd83e708751c33945 # Parent 7ae60d2ff1c217a463ca87194544997b926d3cc9 commitwatcher/agent.py tests/unit.py diff -r 7ae60d2ff1c2 -r 546695da018c commitwatcher/agent.py --- a/commitwatcher/agent.py Sat Sep 28 05:10:14 2013 -0700 +++ b/commitwatcher/agent.py Sat Sep 28 05:15:59 2013 -0700 @@ -3,6 +3,7 @@ """ import feedparser +import pypatch from abc import abstractmethod from .commit import Commit from .store import MemoryStore @@ -48,6 +49,10 @@ class FeedAgentDiff(FeedAgent): """read files from diff""" + @staticmethod + def lsdiff(diff): + + def diff_url(self, link): """ returns diff_url from revision link: diff -r 7ae60d2ff1c2 -r 546695da018c tests/unit.py --- a/tests/unit.py Sat Sep 28 05:10:14 2013 -0700 +++ b/tests/unit.py Sat Sep 28 05:15:59 2013 -0700 @@ -8,13 +8,17 @@ import sys import unittest +from commitwatcher import FeedAgentDiff + # globals here = os.path.dirname(os.path.abspath(__file__)) -class commitwatcherUnitTest(unittest.TestCase): +class CommitWatcherUnitTest(unittest.TestCase): - def test_commitwatcher(self): - pass + def test_patch(self): + """test parsing the files from a patch""" + + files = if __name__ == '__main__': unittest.main()