diff options
| author | Kjetil Orbekk | 2023-12-29 08:59:23 -0500 |
|---|---|---|
| committer | Dmitry Gutov | 2024-01-01 19:56:02 +0200 |
| commit | 73126d62a8bb4b69692c03304e16007c45258ff2 (patch) | |
| tree | 9942fcb3c7483556f22ce76905b087328f860fb3 /test | |
| parent | 1c369263db826a02e01d4209c7b6b8617971c37c (diff) | |
| download | emacs-73126d62a8bb4b69692c03304e16007c45258ff2.tar.gz emacs-73126d62a8bb4b69692c03304e16007c45258ff2.zip | |
Fix vg-hg-annotate-time bug
* lisp/vc/vc-hg.el (vc-hg-annotate-time): Fix extraction of timestamp
from string.
* test/lisp/vc/vc-hg-tests.el (vc-hg-annotate-time): Test that the
correct timestamp is found.
Copyright-paperwork-exempt: yes
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/vc/vc-hg-tests.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lisp/vc/vc-hg-tests.el b/test/lisp/vc/vc-hg-tests.el index 89d518b2a91..43bb922d567 100644 --- a/test/lisp/vc/vc-hg-tests.el +++ b/test/lisp/vc/vc-hg-tests.el | |||
| @@ -53,6 +53,8 @@ | |||
| 53 | (ert-deftest vc-hg-annotate-time () | 53 | (ert-deftest vc-hg-annotate-time () |
| 54 | (with-temp-buffer | 54 | (with-temp-buffer |
| 55 | (save-excursion (insert "philringnalda 218075 2014-11-28 CLOBBER:")) | 55 | (save-excursion (insert "philringnalda 218075 2014-11-28 CLOBBER:")) |
| 56 | (should (floatp (vc-hg-annotate-time))))) | 56 | (should (equal (vc-hg-annotate-time) |
| 57 | (vc-annotate-convert-time | ||
| 58 | (encode-time 0 0 0 28 11 2014)))))) | ||
| 57 | 59 | ||
| 58 | ;;; vc-hg-tests.el ends here | 60 | ;;; vc-hg-tests.el ends here |