~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to services/svnlogservice

  • Committer: William Grant
  • Date: 2010-02-26 06:33:35 UTC
  • Revision ID: grantw@unimelb.edu.au-20100226063335-25ka31up8cegwaiz
ivle.interpret.execute_raw now sets a clean environment, in particular with HOME set correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
import cjson
32
32
import pysvn
33
33
 
 
34
import ivle.conf
34
35
import ivle.svn
35
36
 
36
37
# Set locale to UTF-8
37
38
locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8")
38
39
 
39
40
try:
40
 
    client = pysvn.Client()
 
41
    client = ivle.svn.create_auth_svn_client(username=ivle.conf.login,
 
42
                                             password=ivle.conf.svn_pass)
41
43
    client.exception_style = 1
42
44
    logs = client.log(os.path.join('/home', sys.argv[1].decode('utf-8')),
43
45
                      discover_changed_paths=True)