* vc-p4.el (vc-p4-previous-revision): New function, shamelessly

copied from vc-svn.

[git-p4: depot-paths = "//guest/Ben_Key/vc-p4/,//guest/jonathan_kamens/vc-p4/,//guest/magnus_henoch/vc-p4/": change = 7546]
This commit is contained in:
Magnus Henoch 2010-01-13 09:01:58 -08:00
parent a546229293
commit 6c3758972c

View file

@ -188,6 +188,11 @@ compare non-open files to the depot version."
(vc-p4-state file)
(vc-file-getprop file 'vc-workfile-version))
(defun vc-p4-previous-revision (file rev)
(let ((newrev (1- (string-to-number rev))))
(when (< 0 newrev)
(number-to-string newrev))))
(defun vc-p4-latest-on-branch-p (file)
"Returns non-nil if the Perforce version of FILE is the head
revision."