mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 05:17:54 +00:00
Use "hg log --template" instead of "hg log --style".
This commit is contained in:
parent
afaeb0ed57
commit
371b974e07
@ -236,7 +236,7 @@ depend: siglist.c signame.c
|
|||||||
|
|
||||||
ChangeLog:
|
ChangeLog:
|
||||||
if test -d $(srcdir)/.hg; then \
|
if test -d $(srcdir)/.hg; then \
|
||||||
if hg log -R $(srcdir) --style=changelog -r "sort(branch(.) or follow(), -date)" > $@.tmp; then \
|
if hg log -R $(srcdir) --template=changelog -r "sort(branch(.) or follow(), -date)" > $@.tmp; then \
|
||||||
mv -f $@.tmp $(srcdir)/$@; \
|
mv -f $@.tmp $(srcdir)/$@; \
|
||||||
else \
|
else \
|
||||||
rm -f $@.tmp; \
|
rm -f $@.tmp; \
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#
|
#
|
||||||
# Simple script to massage "git log" output into a GNU style ChangeLog.
|
# Simple script to massage "git log" output into a GNU style ChangeLog.
|
||||||
# The goal is to emulate "hg log --style=changelog" via perl format.
|
# The goal is to emulate "hg log --template=changelog" via perl format.
|
||||||
|
|
||||||
use Getopt::Std;
|
use Getopt::Std;
|
||||||
use Text::Wrap;
|
use Text::Wrap;
|
||||||
@ -46,7 +46,7 @@ my $key_date = "";
|
|||||||
my $log_size = 0;
|
my $log_size = 0;
|
||||||
my @lines;
|
my @lines;
|
||||||
|
|
||||||
# Wrap like "hg log --style=changelog"
|
# Wrap like "hg log --template=changelog"
|
||||||
$Text::Wrap::columns = 77;
|
$Text::Wrap::columns = 77;
|
||||||
|
|
||||||
while (<LOG>) {
|
while (<LOG>) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user