-
Notifications
You must be signed in to change notification settings - Fork 0
/
psvn.elc
1376 lines (1315 loc) · 195 KB
/
psvn.elc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
;ELC
;;; Compiled by [email protected] on Fri Oct 1 12:33:33 2010
;;; from file /Users/oceanhug/.emacs.d/psvn.el
;;; in Emacs version 22.3.1
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
(if (and (boundp 'emacs-version)
(< (aref emacs-version (1- (length emacs-version))) ?A)
(or (and (boundp 'epoch::version) epoch::version)
(string-lessp emacs-version "19.29")))
(error "`psvn.el' was compiled for Emacs 19.29 or later"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(byte-code "\300\301!\210\302\303\304\217\207" [require easymenu nil (byte-code "\300\301!\207" [require diff-mode] 2) ((error))] 3)
#@30 The revision number of psvn.
(defconst svn-psvn-revision "$Id$" (#$ . 718))
#@95 *Add '-v' to svn status call.
This can be toggled with \[svn-status-toggle-svn-verbose-flag].
(custom-declare-variable 'svn-status-verbose 't '(#$ . -800) :type 'boolean :group 'psvn)
#@136 *Name of a saved log file.
This can be either absolute, or relative to the default directory
of the `svn-log-edit-buffer-name' buffer.
(custom-declare-variable 'svn-log-edit-file-name '"++svn-log++" '(#$ . -991) :type 'file :group 'psvn)
(put 'svn-log-edit-file-name 'risky-local-variable t)
#@56 *Insert the filelist to commit in the *svn-log* buffer
(custom-declare-variable 'svn-log-edit-insert-files-to-commit 't '(#$ . -1289) :type 'boolean :group 'psvn)
#@112 *Use log-edit-mode as base for svn-log-edit-mode
This variable takes effect only when psvn.el is being loaded.
(custom-declare-variable 'svn-log-edit-use-log-edit-mode '(and (condition-case nil (require 'log-edit) (error nil)) t) '(#$ . -1459) :type 'boolean :group 'psvn)
#@73 *Value used for `paragraph-start' in `svn-log-edit-buffer-name' buffer.
(custom-declare-variable 'svn-log-edit-paragraph-start '"$\\|[ ]*$\\|##.*$\\|\\*.*:.*$\\|[ ]+(.+):.*$" '(#$ . -1738) :type 'regexp :group 'psvn)
#@76 *Value used for `paragraph-separate' in `svn-log-edit-buffer-name' buffer.
(custom-declare-variable 'svn-log-edit-paragraph-separate '"$\\|##.*$" '(#$ . -1963) :type 'regexp :group 'psvn)
#@117 *Hide unknown files in `svn-status-buffer-name' buffer.
This can be toggled with \[svn-status-toggle-hide-unknown].
(custom-declare-variable 'svn-status-hide-unknown 'nil '(#$ . -2158) :type 'boolean :group 'psvn)
#@123 *Hide unmodified files in `svn-status-buffer-name' buffer.
This can be toggled with \[svn-status-toggle-hide-unmodified].
(custom-declare-variable 'svn-status-hide-unmodified 'nil '(#$ . -2379) :type 'boolean :group 'psvn)
#@228 *Whether to sort the `svn-status-buffer-name' buffer.
Setting this variable to nil speeds up \[M-x svn-status], however the
listing may then become incorrect.
This can be toggled with \[svn-status-toggle-sort-status-buffer].
(custom-declare-variable 'svn-status-sort-status-buffer 't '(#$ . -2609) :type 'boolean :group 'psvn)
#@71 *Whether to delete temporary ediff files. If set to ask, ask the user
(custom-declare-variable 'svn-status-ediff-delete-temporary-files 'nil '(#$ . -2944) :type '(choice (const t) (const nil) (const ask)) :group 'psvn)
#@289 *The changelog style that is used for `svn-file-add-to-changelog'.
Possible values are:
'changelog: use `add-change-log-entry-other-window'
'svn-dev: use commit messages that are used by the svn developers
a function: This function is called to add a new entry to the changelog file.
(custom-declare-variable 'svn-status-changelog-style ''changelog '(#$ . -3170) :type '(set (const changelog) (const svn-dev)) :group 'psvn)
#@102 *List of operations after which all user marks will be removed.
Possible values are: commit, revert.
(custom-declare-variable 'svn-status-unmark-files-after-list ''(commit revert) '(#$ . -3605) :type '(set (const commit) (const revert)) :group 'psvn)
#@44 *Try to preserve the window configuration.
(custom-declare-variable 'svn-status-preserve-window-configuration 't '(#$ . -3862) :type 'boolean :group 'psvn)
#@49 *Auto revert buffers that have changed on disk.
(custom-declare-variable 'svn-status-auto-revert-buffers 't '(#$ . -4024) :type 'boolean :group 'psvn)
#@152 *List of operations that should use a negated meaning of the prefix argument.
The supported functions are `svn-status' and `svn-status-set-user-mark'.
(custom-declare-variable 'svn-status-negate-meaning-of-arg-commands ''nil '(#$ . -4182) :type '(set (function-item svn-status) (function-item svn-status-set-user-mark)) :group 'psvn)
#@91 *The name of the svn executable.
This can be either absolute or looked up on `exec-path'.
(custom-declare-variable 'svn-status-svn-executable '"svn" '(#$ . -4522) :type 'file :group 'psvn)
(put 'svn-status-svn-executable 'risky-local-variable t)
#@54 *The default directory that is suggested svn export.
(custom-declare-variable 'svn-status-default-export-directory '"~/" '(#$ . -4774) :type 'file :group 'psvn)
#@446 *A list of environment variables that should be set for that svn process.
Each element is either a string "VARIABLE=VALUE" which will be added to
the environment when svn is run, or just "VARIABLE" which causes that
variable to be entirely removed from the environment.
The default setting is '("LC_MESSAGES=C" "LC_ALL="). This ensures that the svn command
line client does not output localized strings. psvn.el relies on the english
messages.
(custom-declare-variable 'svn-status-svn-environment-var-list ''("LC_MESSAGES=C" "LC_ALL=") '(#$ . -4942) :type '(repeat string) :group 'psvn)
(put 'svn-status-svn-environment-var-list 'risky-local-variable t)
#@266 Function to display a Subversion related WWW page in a browser.
So far, this is used only for "trac" issue tracker integration.
By default, this is nil, which means use `browse-url-browser-function'.
Any non-nil value overrides that variable, with the same syntax.
(custom-declare-variable 'svn-browse-url-function 'nil '(#$ . 5604) :type `(choice (const :tag "Specified by `browse-url-browser-function'" nil) (function :value browse-url-default-browser :match ,(lambda (widget value) (or (symbolp value) (functionp value)))) (svn-alist :tag "Regexp/function association list" :key-type regexp :value-type function :value (("." . browse-url-default-browser)))) :link '(emacs-commentary-link "browse-url") :group 'psvn)
#@402 An alist to specify which windows should be used for svn command outputs.
The following keys are supported: diff, log, info, blame, proplist, update.
The following values can be given:
nil ... show in `svn-process-buffer-name' buffer
t ... show in dedicated *svn-info* buffer
invisible ... don't show the buffer (eventually useful for update)
a string ... show in a buffer named string
(custom-declare-variable 'svn-status-window-alist ''((diff "*svn-diff*") (log "*svn-log*") (info t) (blame t) (proplist t) (update t)) '(#$ . 6330) :type '(svn-alist :key-type symbol :value-type (group (choice (const :tag "Show in *svn-process* buffer" nil) (const :tag "Show in dedicated *svn-info* buffer" t) (const :tag "Don't show the output" invisible) (string :tag "Show in a buffer named")))) :options '(diff log info blame proplist update) :group 'psvn)
#@486 *Whether the mark for out of date files is short or long.
If this variable is is t, and a file is out of date (i.e., there is a newer
version in the repository than the working copy), then the file will
be marked by "**"
If this variable is nil, and the file is out of date then the longer phrase
"(Update Available)" is used.
In either case the mark gets the face
`svn-status-update-available-face', and will only be visible if
`\[svn-status-update]' is run with a prefix argument
(custom-declare-variable 'svn-status-short-mod-flag-p 't '(#$ . -7200) :type '(choice (const :tag "Short \"**\"" t) (const :tag "Long \"(Update Available)\"" nil)) :group 'psvn)
#@169 The psvn.el debugging verbosity level.
The higher the number, the more debug messages are shown.
See `svn-status-message' for the meaning of values for that variable.
(defvar svn-status-debug-level 0 (#$ . 7870))
#@70 A list of locations for a quick access via `svn-status-via-bookmark'
(defvar svn-bookmark-list nil (#$ . 8090))
#@32 Name for the svn status buffer
(defvar svn-status-buffer-name "*svn-status*" (#$ . 8208))
#@33 Name for the svn process buffer
(defvar svn-process-buffer-name " *svn-process*" (#$ . 8304))
#@34 Name for the svn log-edit buffer
(defvar svn-log-edit-buffer-name "*svn-log-edit*" (#$ . 8404))
#@189 *Whether a header line should be used.
When t: Use the emacs header line
When 'inline: Insert the header line in the `svn-status-buffer-name' buffer
Otherwise: Don't display a header line
(custom-declare-variable 'svn-status-use-header-line '(if (boundp 'header-line-format) t 'inline) '(#$ . -8507) :type '(choice (const :tag "Show column titles as a header line" t) (const :tag "Insert column titles as text in the buffer" inline) (other :tag "No column titles" nil)) :group 'psvn)
#@112 *List of arguments to pass to svn log.
(used in `svn-status-show-svn-log'; override these by giving prefixes).
(custom-declare-variable 'svn-status-default-log-arguments ''("-v") '(#$ . -8998) :type '(repeat string) :group 'psvn)
(put 'svn-status-default-log-arguments 'risky-local-variable t)
#@347 *List of arguments to pass to svn commit.
If you don't like recursive commits, set this value to ("-N")
or mark the directory before committing it.
Do not put an empty string here, except as an argument of an option:
Subversion and the operating system may treat that as a file name
equivalent to ".", so you would commit more than you intended.
(custom-declare-variable 'svn-status-default-commit-arguments ''nil '(#$ . -9299) :type '(repeat string) :group 'psvn)
(put 'svn-status-default-commit-arguments 'risky-local-variable t)
#@488 *A list of arguments that is passed to the svn diff command.
When the built in diff command is used,
the following options are available: --ignore-eol-style, --ignore-space-change,
--ignore-all-space, --ignore-eol-style.
The following setting ignores eol style changes and all white space changes:
'("-x" "--ignore-eol-style --ignore-all-space")
If you'd like to suppress whitespace changes using the external diff command
use the following value:
'("--diff-cmd" "diff" "-x" "-wbBu")
(custom-declare-variable 'svn-status-default-diff-arguments ''("-x" "--ignore-eol-style") '(#$ . -9838) :type '(repeat string) :group 'psvn)
(put 'svn-status-default-diff-arguments 'risky-local-variable t)
#@122 *A list of arguments that is passed to the svn blame command.
See `svn-status-default-diff-arguments' for some examples.
(custom-declare-variable 'svn-status-default-blame-arguments ''("-x" "--ignore-eol-style") '(#$ . -10538))
(put 'svn-status-default-blame-arguments 'risky-local-variable t)
#@109 Path for an eventual existing trac issue tracker.
This can be set with \[svn-status-set-trac-project-root].
(defvar svn-trac-project-root nil (#$ . 10839))
#@91 *A short name for the actual project.
This can be set with \[svn-status-set-module-name].
(defvar svn-status-module-name nil (#$ . -11001))
#@406 *A list of known branches for the actual project
This can be set with \[svn-status-set-branch-list].
The list contains full repository paths or shortcuts starting with #
# at the beginning is replaced by the repository url.
#1# has the special meaning that all paths below the given directory
will be considered for interactive selections.
A useful setting might be: '("#trunk" "#1#tags" "#1#branches")
(defvar svn-status-branch-list nil (#$ . -11148))
#@91 *Whether to automatically restore state from ++psvn.state file before running svn-status.
(defvar svn-status-load-state-before-svn-status t (#$ . -11609))
#@122 A list of link handlers in *svn-log* buffers.
These link handlers must be registered via `svn-log-register-link-handler'
(defvar svn-log-link-handlers nil (#$ . 11771))
#@43 Hook run when entering `svn-status-mode'.
(defvar svn-status-mode-hook nil (#$ . 11946))
#@45 Hook run when entering `svn-log-edit-mode'.
(defvar svn-log-edit-mode-hook nil (#$ . 12041))
#@41 Hook run after commiting files via svn.
(defvar svn-log-edit-done-hook nil (#$ . 12140))
#@129 Hook that can be used to preprocess the output from svn.
The function `svn-status-remove-control-M' can be useful for that hook
(defvar svn-post-process-svn-output-hook nil (#$ . 12236))
(byte-code "\301=\203 \302\303\304\"\210\301\207" [system-type windows-nt add-hook svn-post-process-svn-output-hook svn-status-remove-control-M] 3)
#@106 The coding system that is used for the svn command line client.
It is used in svn-run, if it is not nil.
(defvar svn-status-svn-process-coding-system (byte-code "\301\300!\205 \207" [locale-coding-system boundp] 2) (#$ . 12580))
#@232 The coding system that is used to save files that are loaded as
parameter or data files via the svn command line client.
It is used in the following functions: `svn-prop-edit-do-it', `svn-log-edit-done'.
You could set it to 'utf-8
(defvar svn-status-svn-file-coding-system 'undecided-unix (#$ . 12818))
#@36 *Use ido completion functionality.
(custom-declare-variable 'svn-status-use-ido-completion '(fboundp 'ido-completing-read) '(#$ . -13127) :type 'boolean :group 'psvn)
(byte-code "\302B\303\302!\204 \304\302 \203 \305\202 \306\"\210\302\207" [current-load-list svn-status-use-ido-completion svn-status-completing-read-function default-boundp set-default ido-completing-read completing-read] 3)
#@111 Track user/password queries.
This feature is implemented via a process filter.
It is an experimental feature.
(defvar svn-status-track-user-input nil (#$ . 13532))
#@73 Whether `svn-status-update-buffer' should call `svn-status-parse-info'.
(defvar svn-status-refresh-info nil (#$ . 13702))
(byte-code "\302\303\304\305\306\307%\210\302\310\304\311\306\303%\210\312\313!\210\301B\314\315\316!!\210 \203) \312\317!\210\202/ \312\317\304\320#\210\304\207" [current-load-list svn-xemacsp custom-declare-group psvn nil "Subversion interface for Emacs." :group tools psvn-faces "psvn faces." require cl (lambda (#1=#:defconst-tmp-var) (defconst svn-xemacsp #1#)) featurep xemacs overlay t] 6)
#@125 Specifies how the filenames look like in the listing.
If t, their full path name will be displayed, else only the filename.
(custom-declare-variable 'svn-status-display-full-path 'nil '(#$ . 14230) :type 'boolean :group 'psvn)
#@56 Prefix key for the psvn commands in the global keymap.
(custom-declare-variable 'svn-status-prefix-key '[(control x) (meta s)] '(#$ . 14463) :type '(choice (const [(control x) 118 83]) (const [(super s)]) (const [(hyper s)]) (const [(control x) 118]) (const [(control x) 86]) (sexp)) :group 'psvn :set #[(var value) "\302!\203 \303J!\210 L\210\304J\305\"\207" [var value boundp global-unset-key global-set-key svn-global-keymap] 3])
#@66 *The default directory that is suggested for `svn-admin-create'.
(custom-declare-variable 'svn-admin-default-create-directory '"~/" '(#$ . -14907) :type 'string :group 'psvn)
#@114 A function that receives a line-info and decides whether to hide that line.
See psvn.el for an example function.
(defvar svn-status-custom-hide-function nil (#$ . 15089))
(add-to-list 'auto-mode-alist '("\\.~?\\(HEAD\\|BASE\\|PREV\\)~?\\'" ignore t))
#@42 List of visited svn working directories.
(defvar svn-status-directory-history nil (#$ . 15346))
(byte-code "\301B\302\301!\204 \303\301\304\"\210\305B\302\305!\204 \303\305\304\"\210\306B\302\306!\2042 \303\306\307\310\311\312\313$\"\210\304\207" [current-load-list svn-process-cmd default-boundp set-default nil svn-status-info svn-status-filename-to-buffer-position-cache make-hash-table :test equal :weakness t] 7)
#@46 The parsed result from the svn info command.
(defvar svn-status-base-info nil (#$ . 15778))
(byte-code "\301B\302\301!\204 \303\301\304\"\210\305B\302\305!\204 \303\305\306\"\210\307B\302\307!\204- \303\307\310\"\210\311B\302\311!\204<