Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/emacs/site-lisp/mercurial/ |
Upload File : |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\207" [require diff-mode easymenu executable vc] 2) #@77 Test CLAUSES for feature at compile time. Each clause is (FEATURE BODY...). (defalias 'hg-feature-cond '(macro . #[(&rest clauses) "\30523 \306\211\2051 \n@\211@ A\211\307=\204! \310\f!\203( \311\305\312B\"\210*\nA\211\204\f \306*0\207" [clauses x --dolist-tail-- body feature --cl-block-nil-- nil t featurep throw progn] 5 (#$ . 520)])) (byte-code "\300\301!\210\302\303\304\305\306\307%\210\310\311\312\313\314\315\306\303&\210\310\316\304\317\314\320\306\303&\210\310\321\304\322\314\320\306\303&\210\310\323\304\324\314\320\306\303&\210\310\325\304\326\314\320\306\303&\210\310\327\330\331\314\320\306\303&\210\310\332\304\333\314\334\306\303&\210\310\335\304\336\314\334\306\303&\210\310\337\340\341\314\342\306\303&\210\310\343\344\345\314\342\306\303&\210\310\346\347\350\314\334\306\303&\210\310\351\352\353\314\354\306\303&\210\310\355\356\357\314\354\306\303&\207" [require view custom-declare-group mercurial nil "Mercurial distributed SCM." :group tools custom-declare-variable hg-binary (or (executable-find "hg") (dolist (path '("~/bin/hg" "/usr/bin/hg" "/usr/local/bin/hg")) (when (file-executable-p path) (return path)))) "The path to Mercurial's hg executable." :type (file :must-match t) hg-mode-hook "Hook run when a buffer enters hg-mode." sexp hg-commit-mode-hook "Hook run when a buffer is created to prepare a commit." hg-pre-commit-hook "Hook run before a commit is performed.\nIf you want to prevent the commit from proceeding, raise an error." hg-log-mode-hook "Hook run after a buffer is filled with log information." hg-global-prefix "h" "The global prefix for Mercurial keymap bindings." hg-commit-allow-empty-message "Whether to allow changes to be committed with empty descriptions." boolean hg-commit-allow-empty-file-list "Whether to allow changes to be committed without any modified files." hg-rev-completion-limit 100 "The maximum number of revisions that hg-read-rev will offer to complete.\nThis affects memory usage and performance when prompting for revisions\nin a repository with a lot of history." integer hg-log-limit 50 "The maximum number of revisions that hg-log will display." hg-update-modeline t "Whether to update the modeline with the status of a file after every save.\nSet this to nil on platforms with poor process management, such as Windows." hg-incoming-repository "default" "The repository from which changes are pulled from by default.\nThis should be a symbolic repository name, since it is used for all\nrepository-related commands." string hg-outgoing-repository "" "The repository to which changes are pushed to by default.\nThis should be a symbolic repository name, since it is used for all\nrepository-related commands."] 8) #@36 Is this file managed by Mercurial? (defvar hg-mode nil (#$ . 3240)) (byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local hg-mode put permanent-local t] 4) (defvar hg-status nil) (byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local hg-status put permanent-local t] 4) (defvar hg-prev-buffer nil) (byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local hg-prev-buffer put permanent-local t] 4) (defvar hg-root nil) (byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local hg-root put permanent-local t] 4) (defvar hg-view-mode nil) (byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local hg-view-mode put permanent-local t] 4) (defvar hg-view-file-name nil) (byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local hg-view-file-name put permanent-local t] 4) #@47 The name to use for Mercurial output buffers. (defvar hg-output-buffer-name "*Hg*" (#$ . 4127)) (defvar hg-file-history nil) (defvar hg-repo-history nil) (defvar hg-rev-history nil) (defvar hg-repo-completion-table nil) (defconst hg-commit-message-start "--- Enter your commit message. Type `C-c C-c' to commit. ---\n") (defconst hg-commit-message-end "--- Files in bold will be committed. Click to toggle selection. ---\n") (defconst hg-state-alist '((77 . modified) (65 . added) (82 . removed) (33 . deleted) (67 . normal) (73 . ignored) (63))) #@54 This keymap overrides some default vc-mode bindings. (defvar hg-prefix-map (byte-code "\302 \303 \"\210\304\305\306#\210\304\307\310#\210\304\311\312#\210\304\313\314#\210\304\315\316#\210\304\317\320#\210\304\321\322#\210\304\323\324#\210)\207" [map vc-prefix-map make-sparse-keymap set-keymap-parent define-key "=" hg-diff "c" hg-undo "g" hg-annotate "i" hg-add "l" hg-log "n" hg-commit-start "u" hg-revert-buffer "~" hg-version-other-window] 4) (#$ . 4682)) (defvar hg-mode-map (byte-code "\302 \303\304 #\210)\207" [map hg-prefix-map make-sparse-keymap define-key "v"] 4)) (byte-code "\301\302\211#\207" [hg-mode-map add-minor-mode hg-mode] 4) (defvar hg-global-map (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\310#\210\302\311\312#\210\302\313\314#\210\302\315\316#\210\302\317\320#\210\302\321\322#\210\302\323\324#\210\302\325\326#\210\302\327\330#\210\302\331\316#\210\302\332\333#\210\302\334\335#\210\302\336\337#\210\302\340\341#\210\302\342\343#\210)\207" [map make-sparse-keymap define-key "," hg-incoming "." hg-outgoing "<" hg-pull "=" hg-diff-repo ">" hg-push "?" hg-help-overview "A" hg-addremove "U" hg-revert "a" hg-add "c" hg-commit-start "f" hg-forget "h" "i" hg-init "l" hg-log-repo "r" hg-root "s" hg-status "u" hg-update] 4)) (global-set-key hg-global-prefix hg-global-map) (defvar hg-view-mode-map (byte-code "\301 \302\303\304#\210)\207" [map make-sparse-keymap define-key [mouse-2] hg-buffer-mouse-clicked] 4)) (add-minor-mode 'hg-view-mode "" hg-view-mode-map) (defvar hg-commit-mode-map (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\310#\210)\207" [map make-sparse-keymap define-key "" hg-commit-finish "" hg-commit-kill "v=" hg-diff-repo] 4)) (defvar hg-commit-mode-file-map (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\306#\210)\207" [map make-sparse-keymap define-key [mouse-2] hg-commit-mouse-clicked " " hg-commit-toggle-file " "] 4)) (defalias 'hg-binary #[nil "\203 \207\301\302!\207" [hg-binary error "No `hg' executable found!"] 2]) (put 'hg-binary 'byte-optimizer 'byte-compile-inline-expand) #@230 Replace all matches in STR for REGEXP with NEWTEXT string. Return the new string. Optional LITERAL non-nil means do a literal replacement. This function bridges yet another pointless impedance gap between XEmacs and GNU Emacs. (defalias 'hg-replace-in-string #[(str regexp newtext &optional literal) "\304 \n\305%\207" [regexp newtext str literal replace-regexp-in-string nil] 6 (#$ . 6821)]) (put 'hg-replace-in-string 'byte-optimizer 'byte-compile-inline-expand) #@55 Strip leading and trailing blank lines from a string. (defalias 'hg-strip #[(str) "\304\305\306\307\n\306 %,\310\305\306\307\n\306 %,\207" [str literal newtext regexp "[ \n][ \n]*\\'" "" nil replace-regexp-in-string "\\`[ \n]*[ \n]"] 6 (#$ . 7296)]) (put 'hg-strip 'byte-optimizer 'byte-compile-inline-expand) #@40 Strip trailing newlines from a string. (defalias 'hg-chomp #[(str) "\304\305\306\307\n\306 %,\207" [str literal newtext regexp "[ \n]+\\'" "" nil replace-regexp-in-string] 6 (#$ . 7629)]) (put 'hg-chomp 'byte-optimizer 'byte-compile-inline-expand) #@139 Run the shell command COMMAND, returning (EXIT-CODE . COMMAND-OUTPUT). The list ARGS contains a list of arguments to pass to the command. (defalias 'hg-run-command #[(command &rest args) "\305\306\307!\310\216 r q\210\311\312\n\305\313\305&*r q\210\314 +\f*B\207" [exit-code standard-output command args output nil generate-new-buffer " *string-output*" #[nil "\301!\207" [standard-output kill-buffer] 2] apply call-process t buffer-string] 7 (#$ . 7891)]) #@76 Run the Mercurial command COMMAND, returning (EXIT-CODE . COMMAND-OUTPUT). (defalias 'hg-run #[(command &rest args) "\303\304\203\n \202 \305\306! \n$\207" [hg-binary command args apply hg-run-command error "No `hg' executable found!"] 5 (#$ . 8363)]) #@128 Run the Mercurial command COMMAND, returning its output. If the command does not exit with a zero status code, raise an error. (defalias 'hg-run0 #[(command &rest args) "\304\305\203\n \202 \306\307! \n$\211@\310=\204# \306\311 \nB@#\202% A)\207" [hg-binary command args res apply hg-run-command error "No `hg' executable found!" 0 "Mercurial command failed %s - exit code %s"] 6 (#$ . 8625)]) (defalias 'hg-do-across-repo '(macro . #[(path &rest body) "\304\305!\304\306!\307 \310\nDDC\311\312\313B\314D\315\316\317\320\321 EEBBFDE*\207" [buf-name root-name path body make-symbol "root-" "buf-" let hg-root save-excursion dolist ((buffer-list)) set-buffer when and hg-status equal (hg-root buffer-file-name)] 12])) (put 'hg-do-across-repo 'lisp-indent-function 1) #@170 Sync buffers visiting PATH with their on-disk copies. If PATH is not being visited, but is under the repository root, sync all buffers visiting files in the repository. (defalias 'hg-sync-buffers #[(path) "\306!\211\203 r q\210\307 )\202? \310!\212\311 \312\211\205>