Mercurial > emacs
annotate admin/revdiff @ 86154:1cdfc94602cb
* smime.el (from):
* rfc2047.el (message-posting-charset):
* qp.el (mm-use-ultra-safe-encoding):
* pop3.el (parse-time-months):
* nnrss.el (mm-text-html-renderer, mm-text-html-washer-alist):
* nnml.el (files):
* nnheader.el (gnus-newsgroup-name, nnheader-file-coding-system)
(jka-compr-compression-info-list, ange-ftp-path-format)
(efs-path-regexp):
* nndiary.el (files):
* mml2015.el (mc-default-scheme, mc-schemes, pgg-default-user-id)
(pgg-errors-buffer, pgg-output-buffer, epg-user-id-alist)
(epg-digest-algorithm-alist, inhibit-redisplay)
(password-cache-expiry):
* mml1991.el (pgg-default-user-id, pgg-errors-buffer)
(pgg-output-buffer, password-cache-expiry):
* mml.el (mml-dnd-protocol-alist, ange-ftp-name-format)
(efs-path-regexp):
* mml-smime.el (epg-user-id-alist, epg-digest-algorithm-alist)
(inhibit-redisplay):
* mm-uu.el (file-name, start-point, end-point, entry)
(gnus-newsgroup-name, gnus-newsgroup-charset):
* mm-util.el (mm-mime-mule-charset-alist, latin-unity-coding-systems)
(latin-unity-ucs-list):
* mm-bodies.el (mm-uu-yenc-decode-function, mm-uu-decode-function)
(mm-uu-binhex-decode-function):
* message.el (gnus-message-group-art, gnus-list-identifiers, )
(rmail-enable-mime-composing, gnus-local-organization)
(gnus-post-method, gnus-select-method, gnus-active-hashtb)
(gnus-read-active-file, facemenu-add-face-function)
(facemenu-remove-face-function, gnus-article-decoded-p)
(tool-bar-mode):
* mail-source.el (display-time-mail-function):
* gnus-util.el (nnmail-pathname-coding-system)
(nnmail-active-file-coding-system, gnus-emphasize-whitespace-regexp)
(gnus-original-article-buffer, gnus-user-agent)
(rmail-default-rmail-file, mm-text-coding-system, tool-bar-mode)
(xemacs-codename, sxemacs-codename, emacs-program-version):
* gnus-sum.el (tool-bar-mode, gnus-tmp-header, number):
* gnus-start.el (gnus-agent-covered-methods)
(gnus-agent-file-loading-local, gnus-agent-file-loading-cache)
(gnus-current-headers, gnus-thread-indent-array, gnus-newsgroup-name)
(gnus-newsgroup-headers, gnus-group-list-mode)
(gnus-group-mark-positions, gnus-newsgroup-data)
(gnus-newsgroup-unreads, nnoo-state-alist)
(gnus-current-select-method, mail-sources)
(nnmail-scan-directory-mail-source-once, nnmail-split-history)
(nnmail-spool-file, gnus-cache-active-hashtb):
* gnus-mh.el (mh-lib-progs):
* gnus-ems.el (gnus-tmp-unread, gnus-tmp-replied)
(gnus-tmp-score-char, gnus-tmp-indentation, gnus-tmp-opening-bracket)
(gnus-tmp-lines, gnus-tmp-name, gnus-tmp-closing-bracket)
(gnus-tmp-subject-or-nil, gnus-check-before-posting, gnus-mouse-face)
(gnus-group-buffer):
* gnus-cite.el (font-lock-defaults-computed, font-lock-keywords)
(font-lock-set-defaults):
* gnus-art.el (tool-bar-map, w3m-minor-mode-map)
(gnus-face-properties-alist, charset, gnus-summary-article-menu)
(gnus-summary-post-menu, total-parts, type, condition, length):
* gnus-agent.el (gnus-agent-read-agentview):
* flow-fill.el (show-trailing-whitespace):
* gnus-group.el (tool-bar-mode, nnrss-group-alist): Remove unnecessary
eval-and-compile wrappers for byte compiler pacifiers.
* mm-view.el (mm-inline-image-xemacs): Only do something for XEmacs.
(mm-display-inline-fontify): Check for featurep 'xemacs not
extent-list.
* mm-decode.el (mm-display-external): Check for featurep 'xemacs not
itimer-list.
(mm-create-image-xemacs): Only do something for XEmacs.
(mm-image-fit-p): Check for featurep 'xemacs not glyph-width.
* mm-util.el (mm-find-buffer-file-coding-system): Add check for XEmacs.
* gnus-registry.el (gnus-adaptive-word-syntax-table):
* gnus-fun.el (gnus-face-properties-alist): Pacify byte compiler.
* textmodes/reftex-dcr.el (reftex-start-itimer-once): Add check
for XEmacs.
* calc/calc-menu.el (calc-mode-map): Pacify byte compiler.
* doc-view.el (doc-view-resolution): Add missing :group.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Fri, 16 Nov 2007 16:50:35 +0000 |
parents | 450fa81c5930 |
children | cde444d03b82 f55f9811f5d7 |
rev | line source |
---|---|
38850 | 1 #! /usr/bin/perl |
2 | |
75348 | 3 # Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
4 # Free Software Foundation, Inc. | |
38850 | 5 # |
6 # This file is part of GNU Emacs. | |
7 # | |
8 # GNU Emacs is free software; you can redistribute it and/or modify | |
9 # it under the terms of the GNU General Public License as published by | |
78240
450fa81c5930
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
75348
diff
changeset
|
10 # the Free Software Foundation; either version 3, or (at your option) |
38850 | 11 # any later version. |
12 # | |
13 # GNU Emacs is distributed in the hope that it will be useful, | |
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 # GNU General Public License for more details. | |
17 # | |
18 # You should have received a copy of the GNU General Public License | |
19 # along with GNU Emacs; see the file COPYING. If not, write to the | |
64079 | 20 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
21 # Boston, MA 02110-1301, USA. | |
38850 | 22 |
23 use File::Basename; | |
24 | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
25 if (@ARGV < 3) |
38850 | 26 { |
27 print <<USAGE; | |
28 revdiff FILE OLD NEW | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
29 |
38850 | 30 Get a diff of FILE between revisions OLD and NEW. Store the |
39132 | 31 diff in a file named FILE-OLD-NEW.diff. |
32 | |
33 If OLD is `-' use FILE's current revision for OLD. If OLD is | |
34 `-<number>', use the Nth revision before the current one for OLD. | |
35 | |
36 If NEW is +<number> or -<number>, build diffs between revisions OLD | |
37 and OLD +/- <number>. | |
38850 | 38 |
39 Examples: | |
40 | |
41 revdiff FILE - -1 get the latest change of FILE | |
39132 | 42 revdiff FILE -1 +1 also gets the latest change of FILE |
38850 | 43 revdiff FILE 1.500 +2 get diffs 1.500-1.501 and 1.501-1.502. |
44 | |
45 USAGE | |
46 exit 1; | |
47 } | |
48 | |
49 $file = shift @ARGV; | |
50 $old = shift @ARGV; | |
51 | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
52 sub diffit |
38850 | 53 { |
54 my ($old, $new) = @_; | |
55 print "cvs diff -r$old -r$new $file >$file-$old-$new.diff\n"; | |
56 system "cvs diff -r$old -r$new $file >$file-$old-$new.diff"; | |
57 } | |
58 | |
59 sub current_revision ($) | |
60 { | |
61 my ($file) = @_; | |
62 my $dir = dirname ($file); | |
63 my $base = basename ($file); | |
64 my $entries = "$dir/CVS/Entries"; | |
65 die "Can't find $entries" unless -f $entries; | |
66 open (IN, "<$entries") or die "Cannot open $entries"; | |
67 my $rev; | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
68 while ($line = <IN>) |
38850 | 69 { |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
70 if ($line =~ m,/$base/([^/]+),) |
38850 | 71 { |
72 $rev = $1; | |
73 break; | |
74 } | |
75 } | |
76 die "Cannot determine current revision of $file" unless $rev; | |
77 close (IN); | |
78 return $rev; | |
79 } | |
80 | |
81 if ($old eq "-") | |
39132 | 82 { |
83 $old = current_revision ($file); | |
84 } | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
85 elsif ($old =~ /^-(\d+)$/) |
39132 | 86 { |
87 my $offset = $1; | |
88 $old = current_revision ($file); | |
89 die "Internal error" unless $old =~ /(.*)\.(\d+)$/; | |
90 my $minor = $2 - $offset; | |
91 $old = sprintf ("%d.%d", $1, $minor); | |
92 } | |
38850 | 93 |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
94 while (@ARGV) |
38850 | 95 { |
96 my $new = shift @ARGV; | |
97 if ($new =~ /^[+]\d+$/) | |
98 { | |
99 my $n = $new; | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
100 for ($i = 0; $i < $n; ++$i) |
38850 | 101 { |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
102 unless ($old =~ /(.*)\.(\d+)$/) |
38850 | 103 { |
104 die "Internal error"; | |
105 } | |
106 my $j = $2 + 1; | |
107 $new = "$1.$j"; | |
108 diffit ($old, $new); | |
109 $old = $new; | |
110 } | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
111 } |
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
112 elsif ($new =~ /^[-]\d+$/) |
38850 | 113 { |
114 my $n = - $new; | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
115 for ($i = 0; $i < $n; ++$i) |
38850 | 116 { |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
117 unless ($old =~ /(.*)\.(\d+)$/) |
38850 | 118 { |
119 die "Internal error"; | |
120 } | |
121 my $j = $2 - 1; | |
122 $new = "$1.$j"; | |
123 diffit ($new, $old); | |
124 $old = $new; | |
125 } | |
126 } | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
39132
diff
changeset
|
127 else |
38850 | 128 { |
129 diffit ($old, $new); | |
130 $old = $new; | |
131 } | |
132 } | |
133 | |
134 # Local Variables: | |
135 # mode: cperl | |
136 # End: | |
52401 | 137 |
138 # arch-tag: 2798b20d-c7f2-4c78-8378-7bb529c36a09 |