   "Helper function to handle tramp connections stopping with an exit output.
 Add this function to the `svn-pre-parse-status-hook'."
   (goto-char (point-max))
+  (when (eq (svn-point-at-bol) (svn-point-at-eol))
+    (forward-line -1))
   (beginning-of-line)
   (when (looking-at "exit")
     (delete-region (point) (svn-point-at-eol))))

    (set-buffer (get-buffer "*svn-property-edit*"))
    (when (fboundp 'set-buffer-file-coding-system)
      (set-buffer-file-coding-system svn-status-svn-file-coding-system nil))
    (setq svn-status-temp-file-to-remove
          (concat svn-status-temp-dir "svn-prop-edit.txt" svn-temp-suffix))
    (write-region (point-min) (point-max) svn-status-temp-file-to-remove nil 1))
  (when svn-status-propedit-file-list ; there are files to change properties
    (svn-status-create-arg-file svn-status-temp-arg-file ""
                                svn-status-propedit-file-list "")
    (setq svn-status-propedit-file-list nil)
    (svn-run async t 'propset "propset"
             svn-status-propedit-property-name
             "--targets" svn-status-temp-arg-file
             (when (eq svn-status-svn-file-coding-system 'utf-8)
               '("--encoding" "UTF-8"))
             "-F" (concat svn-status-temp-dir "svn-prop-edit.txt" svn-temp-suffix))
    (unless async (svn-status-remove-temp-file-maybe)))
  (when svn-status-pre-propedit-window-configuration
    (set-window-configuration svn-status-pre-propedit-window-configuration)))

(defun svn-prop-edit-svn-diff (arg)
  (interactive "P")


(defun svn-had-user-input-since-asynch-run ()
  (not (equal (recent-keys) svn-pre-run-asynch-recent-keys)))

(defun svn-expand-filename-for-remote-access (file-name)
  "Convert the given local part of a filename to a full file name to allow accessing remote files"
  ;; when running svn on a remote host: expand local file names to get full names to access the file on the remote host via emacs
  (if (file-remote-p default-directory)
      (concat (file-remote-p default-directory) file-name)
    file-name))

(defun svn-process-environment ()
  "Construct the environment for the svn process.
