Compare commits
3 commits
2fb2806708
...
0637cddd58
Author | SHA1 | Date | |
---|---|---|---|
0637cddd58 | |||
43c4b8fa56 | |||
dd6e57b1e5 |
2 changed files with 4 additions and 5 deletions
|
@ -352,9 +352,8 @@ that buffer. Returns the buffer."
|
||||||
(defun p4-lowlevel-command-messages ()
|
(defun p4-lowlevel-command-messages ()
|
||||||
"Return t if ‘vc-command-messages’ bound and true.
|
"Return t if ‘vc-command-messages’ bound and true.
|
||||||
Fall back to the value of ‘p4-lowlevel-command-messages’."
|
Fall back to the value of ‘p4-lowlevel-command-messages’."
|
||||||
(if (and (boundp 'vc-command-messages) vc-command-messages)
|
(or (bound-and-true-p vc-command-messages)
|
||||||
t
|
p4-lowlevel-command-messages))
|
||||||
p4-lowlevel-command-messages))
|
|
||||||
|
|
||||||
(defun p4-lowlevel-canonicalize-revision (rev)
|
(defun p4-lowlevel-canonicalize-revision (rev)
|
||||||
"Turn REV into a form which can be concatenated to file names in P4 commands."
|
"Turn REV into a form which can be concatenated to file names in P4 commands."
|
||||||
|
@ -627,7 +626,7 @@ then the `-q' flag is passed to `p4 print'."
|
||||||
(let* ((fullfile (if rev (concat file rev) file))
|
(let* ((fullfile (if rev (concat file rev) file))
|
||||||
(quiet-args (if quiet (list "-q")))
|
(quiet-args (if quiet (list "-q")))
|
||||||
(args (append (list "print") quiet-args (list fullfile))))
|
(args (append (list "print") quiet-args (list fullfile))))
|
||||||
(p4-lowlevel-command-or-error args nil output-format)))
|
(p4-lowlevel-command-into-buffer args output-format)))
|
||||||
|
|
||||||
;; Here's what we need to support from the "p4 reopen" command, at least for the
|
;; Here's what we need to support from the "p4 reopen" command, at least for the
|
||||||
;; time being:
|
;; time being:
|
||||||
|
|
2
vc-p4.el
2
vc-p4.el
|
@ -930,7 +930,7 @@ If DIRNAME is not specified, uses `default-directory'."
|
||||||
(info (p4-lowlevel-info))
|
(info (p4-lowlevel-info))
|
||||||
(root (alist-get "Client root" info nil nil #'string=))
|
(root (alist-get "Client root" info nil nil #'string=))
|
||||||
(cwd (alist-get "Current directory" info nil nil #'string=)))
|
(cwd (alist-get "Current directory" info nil nil #'string=)))
|
||||||
(string-prefix-p root cwd)))
|
(string-prefix-p root cwd t)))
|
||||||
|
|
||||||
(defun vc-p4-has-unresolved-conflicts-p (file)
|
(defun vc-p4-has-unresolved-conflicts-p (file)
|
||||||
"Search through FILE's buffer for unresolved P4 conflicts.
|
"Search through FILE's buffer for unresolved P4 conflicts.
|
||||||
|
|
Loading…
Reference in a new issue