mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +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:
|
||||
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)/$@; \
|
||||
else \
|
||||
rm -f $@.tmp; \
|
||||
|
@ -17,7 +17,7 @@
|
||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
#
|
||||
# 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 Text::Wrap;
|
||||
@ -46,7 +46,7 @@ my $key_date = "";
|
||||
my $log_size = 0;
|
||||
my @lines;
|
||||
|
||||
# Wrap like "hg log --style=changelog"
|
||||
# Wrap like "hg log --template=changelog"
|
||||
$Text::Wrap::columns = 77;
|
||||
|
||||
while (<LOG>) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user