[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-hgcmd 5c735b3 86/87: Implement repository-url
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vc-hgcmd 5c735b3 86/87: Implement repository-url |
Date: |
Sat, 5 Jun 2021 16:11:52 -0400 (EDT) |
branch: externals/vc-hgcmd
commit 5c735b3e3897b7ba52b5ac4e6a2f43ca283fd52d
Author: muffinmad <andreyk.mad@gmail.com>
Commit: muffinmad <andreyk.mad@gmail.com>
Implement repository-url
---
vc-hgcmd.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/vc-hgcmd.el b/vc-hgcmd.el
index 1025981..8df4653 100644
--- a/vc-hgcmd.el
+++ b/vc-hgcmd.el
@@ -5,7 +5,7 @@
;; Author: Andrii Kolomoiets <andreyk.mad@gmail.com>
;; Keywords: vc
;; URL: https://github.com/muffinmad/emacs-vc-hgcmd
-;; Package-Version: 1.11
+;; Package-Version: 1.12
;; Package-Requires: ((emacs "25.1"))
;; This file is NOT part of GNU Emacs.
@@ -95,6 +95,7 @@
;; - extra-menu () OK shelve, addremove
;; - extra-dir-menu () OK extra-status-menu same
as extra-menu
;; - conflicted-files (dir) OK with no respect to DIR
+;; - repository-url (file-or-dir) OK
;;
;; VC backend to work with hg repositories through hg command server.
;; https://www.mercurial-scm.org/wiki/CommandServer
@@ -1543,6 +1544,11 @@ If FILES is nil show diff for whole changeset."
"Return the ignore file of the repository of FILE."
(expand-file-name ".hgignore" (vc-hgcmd-root file)))
+(defun vc-hgcmd-repository-url (file-or-dir &optional remote)
+ "Return the URL of REMOTE or default repository of FILE-OR-DIR."
+ (let ((default-directory (vc-hgcmd-root file-or-dir)))
+ (vc-hgcmd-command "config" (concat "paths." (or remote "default")))))
+
(defun vc-hgcmd-runcommand (command)
"Run custom hg COMMAND."
(interactive "sRun hg: ")
- [elpa] externals/vc-hgcmd b82518f 52/87: Functions implementation status in commentary, (continued)
- [elpa] externals/vc-hgcmd b82518f 52/87: Functions implementation status in commentary, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 3ee691d 55/87: Wrong heading in readme, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd ce36707 56/87: Find proper filename across renames on diff, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd fc7b852 57/87: Don't retrieve files for fileless diff; region-history, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 0b052a6 69/87: Suppress untrusted hgrc warning, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 4036564 73/87: Show all 'summary' output, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 45000c8 75/87: Don't append extra empty line in vc-dir, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd da539aa 78/87: Skip lines with unknow status while parsing 'hg status', Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 44afcf1 80/87: Shortlog, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 8fc2e2c 79/87: Run command in current buffer rather then in output buffer, Stefan Monnier, 2021/06/05
- [elpa] externals/vc-hgcmd 5c735b3 86/87: Implement repository-url,
Stefan Monnier <=