summaryrefslogtreecommitdiff
path: root/foundry/vcs/hg/providers.py
diff options
context:
space:
mode:
Diffstat (limited to 'foundry/vcs/hg/providers.py')
-rw-r--r--foundry/vcs/hg/providers.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/foundry/vcs/hg/providers.py b/foundry/vcs/hg/providers.py
new file mode 100644
index 0000000..232464e
--- /dev/null
+++ b/foundry/vcs/hg/providers.py
@@ -0,0 +1,24 @@
1# vim: set filencoding=utf8
2"""
3SnakeGuice Providers
4
5@author: Mike Crute (mcrute@gmail.com)
6@organization: SoftGroup Interactive, Inc.
7@date: May 02, 2010
8"""
9
10from mercurial import hg
11from mercurial.ui import ui
12from foundry.utils import implements
13from foundry.interfaces import RepositoryProvider
14
15
16@implements(RepositoryProvider)
17class RepoProvider(object):
18
19 def get(self, repo_path=''):
20 u = ui()
21 u.setconfig('ui', 'report_untrusted', 'off')
22 u.setconfig('ui', 'interactive', 'false')
23
24 return hg.repository(u, repo_path)