* vc-p4.el (vc-p4-workfile-unchanged-p): Return nil for files marked for deletion.

[git-p4: depot-paths = "//guest/Ben_Key/vc-p4/,//guest/jonathan_kamens/vc-p4/,//guest/magnus_henoch/vc-p4/": change = 7740]
This commit is contained in:
Magnus Henoch 2010-08-09 08:35:34 -08:00
parent 1674c9ea2a
commit 0cfe10cab9

View file

@ -210,6 +210,7 @@ revision."
"Returns non-nil if FILE is unchanged from the version in Perforce."
(let ((state (vc-p4-state file)))
(and (not (equal (vc-file-getprop file 'vc-p4-action) "add"))
(not (equal (vc-file-getprop file 'vc-p4-action) "delete"))
(or (equal state 'up-to-date)
(equal state 'needs-patch)
(p4-lowlevel-diff-s file "r")))))