Commits

Jesper Nøhr committed c11e8e5

usernames in commits

Comments (0)

Files changed (1)

heechee/webdav/commit.py

                 branches[branch_name] = {}
             branches[branch_name][path] = diff
         
+        # Find username
+        username = request.remote_user or request.environ.get('REMOTE_USER', 'SVN user')
+
         # For each part, do the right kind of commit
         for branch_name, files in branches.items():
             # Commit
                 branch_name,
                 base_version,
                 log_message,
-                "SVN user",
+                username,
                 # Changed files
                 dict([(key, diff) for key, diff in files.items() if diff is not False]),
                 # Deleted files