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

« back to all changes in this revision

Viewing changes to services/svnlogservice

  • Committer: Matt Giuca
  • Date: 2010-02-18 09:09:36 UTC
  • Revision ID: matt.giuca@gmail.com-20100218090936-y6nl366616vzewwg
svnlogservice: Decode argument as UTF-8 so unicode filenames don't crash on input.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
try:
40
40
    client = pysvn.Client()
41
41
    client.exception_style = 1
42
 
    logs = client.log(os.path.join('/home', sys.argv[1]),
 
42
    logs = client.log(os.path.join('/home', sys.argv[1].decode('utf-8')),
43
43
                      discover_changed_paths=True)
44
44
    print cjson.encode({'logs': [{'revno': log.revision.number,
45
45
                                  'author': log.author.decode('utf-8'),