Mercurial > hg > CommitWatcher
comparison commitwatcher/agent.py @ 11:546695da018c
commitwatcher/agent.py tests/unit.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 28 Sep 2013 05:15:59 -0700 |
parents | 7ae60d2ff1c2 |
children | a0ff003319ec |
comparison
equal
deleted
inserted
replaced
10:7ae60d2ff1c2 | 11:546695da018c |
---|---|
1 """ | 1 """ |
2 agents to gather commits | 2 agents to gather commits |
3 """ | 3 """ |
4 | 4 |
5 import feedparser | 5 import feedparser |
6 import pypatch | |
6 from abc import abstractmethod | 7 from abc import abstractmethod |
7 from .commit import Commit | 8 from .commit import Commit |
8 from .store import MemoryStore | 9 from .store import MemoryStore |
9 | 10 |
10 class Agent(object): | 11 class Agent(object): |
46 # TODO commit = Commit() | 47 # TODO commit = Commit() |
47 | 48 |
48 class FeedAgentDiff(FeedAgent): | 49 class FeedAgentDiff(FeedAgent): |
49 """read files from diff""" | 50 """read files from diff""" |
50 | 51 |
52 @staticmethod | |
53 def lsdiff(diff): | |
54 | |
55 | |
51 def diff_url(self, link): | 56 def diff_url(self, link): |
52 """ | 57 """ |
53 returns diff_url from revision link: | 58 returns diff_url from revision link: |
54 | 59 |
55 >>> diff_url('http://hg.mozilla.org/mozilla-central/rev/4e1a3919e741') | 60 >>> diff_url('http://hg.mozilla.org/mozilla-central/rev/4e1a3919e741') |