* 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:
parent
a546229293
commit
6c3758972c
1 changed files with 5 additions and 0 deletions
5
vc-p4.el
5
vc-p4.el
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue