unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-devel@gnu.org
Subject: Re: vc-next-action RCS vs hg: copies the entry of ChangeLog
Date: Mon, 19 Oct 2015 16:20:15 +0300	[thread overview]
Message-ID: <87d1wb806o.fsf@mat.ucm.es> (raw)
In-Reply-To: 5624CDB9.505@yandex.ru

>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:

> On 10/19/2015 01:57 PM, Uwe Brauer wrote:
>> I send you a possible hg log
>> hg log --template "commit {node}\nAuthor: {author}\nDate: {date|rfc822date}\n{desc}\n{nofiles}\n"
>> 
>> And for me it looks very much than the one of git, so one could just use
>> the same code.
>> 
>> However you seem to prefer a different format.
>> 
>> Could you please tell me what you have in mind?

> I don't know which template string that corresponds to, but for
> vc-print-log, we use the normal 'hg log' output.

> For vc-print-root-log, we currently use this template:

> (concat "{rev}:{ifeq(branch, 'default','', '{branch}')}"
>         ":{bookmarks}:{tags}:{author|person}"
>         " {date|shortdate} {desc|firstline}\\n")

> So we have two of them, and we probably want to modify each of them
> slightly, so that the messages are displayed in full.


Ok 

However when I run

hg log --template "changeset: {rev}:{node|short}\ntag: {tags}\nuser:
{author}\nDate: {date|rfc822date}\ndescription: {desc}\n{nofiles}\n"

I obtain
,----
| changeset: 17:5d2e1c5cdb3c
| tag: tip
| user: Uwe Brauer <oub@mat.ucm.es>
| Date: Mon, 19 Oct 2015 13:51:29 +0300
| description: second commit
| 
| * testhg.tex: my first one.
`----

While with
hg log -v

,----
| changeset:   17:5d2e1c5cdb3c
| tag:         tip
| user:        Uwe Brauer <oub@mat.ucm.es>
| date:        Mon Oct 19 13:51:29 2015 +0300
| files:       testhg.tex
| description:
| second commit
| 
| * testhg.tex: my first one.
| 
`----


So I think the new template should be fine or you want to fiddle me the
 newlines?

How to implement that in is not entirely clear to me. Maybe a different
template for hg is needed?







  reply	other threads:[~2015-10-19 13:20 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-15  6:48 vc-next-action RCS vs hg: copies the entry of ChangeLog Uwe Brauer
2015-10-15 10:54 ` Dmitry Gutov
2015-10-18  7:02   ` Uwe Brauer
2015-10-18  7:58     ` Dmitry Gutov
2015-10-18  8:25       ` Uwe Brauer
2015-10-18  9:50         ` Dmitry Gutov
2015-10-18 10:22           ` Uwe Brauer
2015-10-18 13:06           ` Uwe Brauer
2015-10-18 20:04             ` Dmitry Gutov
2015-10-19  6:43               ` Uwe Brauer
2015-10-19  6:55               ` Uwe Brauer
2015-10-19  7:07                 ` Eli Zaretskii
2015-10-19  7:18                   ` Uwe Brauer
2015-10-19  8:14                   ` Uwe Brauer
2015-10-19  8:30                     ` Eli Zaretskii
2015-10-19  8:38                       ` Uwe Brauer
2015-10-19  8:52                         ` Dmitry Gutov
2015-10-19  9:13                           ` Dmitry Gutov
2015-10-19  9:04                         ` Eli Zaretskii
2015-10-19  9:15                           ` Uwe Brauer
2015-10-19  9:20                             ` Dmitry Gutov
2015-10-19 10:45                               ` Uwe Brauer
2015-10-19 10:51                                 ` Dmitry Gutov
2015-10-19 10:57                                   ` Uwe Brauer
2015-10-19 11:02                                     ` Dmitry Gutov
2015-10-19 13:20                                       ` Uwe Brauer [this message]
2015-10-19 23:46                                         ` Dmitry Gutov
2015-10-20  6:05                                           ` Uwe Brauer
2015-10-20  8:34                                             ` Dmitry Gutov
2015-10-26 16:35                                               ` [Solved] (was: vc-next-action RCS vs hg: copies the entry of ChangeLog) Uwe Brauer
2015-10-27 13:15                                                 ` [Solved] Dmitry Gutov
2015-10-27 14:23                                                   ` [Solved] Uwe Brauer
2015-10-27 15:15                                                     ` [Solved] Dmitry Gutov
2015-10-27 14:30                                                   ` [Solved] Uwe Brauer
2015-10-27 14:49                                                   ` [prop: change] (was: [Solved]) Uwe Brauer
2015-10-27 15:16                                                     ` [prop: change] Dmitry Gutov
2015-10-27 15:56                                                       ` Uwe Brauer
2015-10-27 17:18                                                       ` Uwe Brauer
     [not found]                                                         ` <562FB38A.7060007@yandex.ru>
     [not found]                                                           ` <87eggf1lmy.fsf@mat.ucm.es>
     [not found]                                                             ` <5630ABD8.1000408@yandex.ru>
     [not found]                                                               ` <87twpbfaiv.fsf@mat.ucm.es>
2015-10-28 12:38                                                                 ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d1wb806o.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).