* test/lisp/vc/vc-tests/vc-tests.el (vc-test-hg06-version-diff):
Skip on MS-Windows in batch mode.
* test/lisp/vc/vc-git-tests.el (vc-git-test--start-branch): More
portable command for showing the current branch ("--show-current"
is only available since Git 2.22).
(cherry picked from commit
b87608c9c7fd3a7a2a2fb3803d6038fa888602c4)
(write-region "hello" nil "README")
(vc-git-test--run "add" "README")
(vc-git-test--run "commit" "-mFirst")
- (string-trim (vc-git-test--run "branch" "--show-current")))
+ (string-trim (vc-git-test--run "rev-parse" "--abbrev-ref" "HEAD")))
(defun vc-git-test--dir-headers (headers)
"Return an alist of header values as they would appear in `vc-dir'.
;; `vc-mtn.el' gives me:
;; "Failed (status 1): mtn commit -m Testing vc-version-diff\n\n foo"
(skip-when (memq ',backend '(Mtn)))
+ ;; `vc-hg.el' gives me, only on MS-Windows and only in batch mode:
+ ;; "Failed (status 255): hg --config ui.report_untrusted=0 commit -m Testing vc-version-diff\n\n foo"
+ (skip-when (and (memq ',backend '(Hg))
+ (eq system-type 'windows-nt)
+ noninteractive))
(vc-test--version-diff ',backend))
))))