* p4-lowlevel.el (p4-lowlevel-diff): Remove slash from directory name if needed.

[git-p4: depot-paths = "//guest/Ben_Key/vc-p4/,//guest/jonathan_kamens/vc-p4/,//guest/magnus_henoch/vc-p4/": change = 7388]
This commit is contained in:
Magnus Henoch 2009-09-16 08:03:08 -08:00
parent 2d9b785e7c
commit 5305e9d39e

View file

@ -426,7 +426,7 @@ to pass to `p4 diff'. If optional BUFFER is non-nil, put output in
that buffer." that buffer."
(setq rev (p4-lowlevel-canonicalize-revision rev)) (setq rev (p4-lowlevel-canonicalize-revision rev))
(when (file-directory-p file) (when (file-directory-p file)
(setq file (concat file "/..."))) (setq file (concat (directory-file-name file) "/...")))
(let* ((file-spec (if rev (concat file rev) file)) (let* ((file-spec (if rev (concat file rev) file))
(diff-args (append (list "diff") p4-lowlevel-diff-switches (diff-args (append (list "diff") p4-lowlevel-diff-switches
(list "-f" "-t" file-spec))) (list "-f" "-t" file-spec)))