how to obtain git's information when pulling in mercurial.

Uwe Brauer oub at mat.ucm.es
Tue May 19 11:07:00 UTC 2020


>>> "MJ" == Manuel Jacob <me at manueljacob.de> writes:

Hi Manuel


   > Hi Uwe,
   > On 2020-05-19 10:48, Uwe Brauer wrote:

   > You’re right that this is a hg-git bug:
   > https://foss.heptapod.net/mercurial/hg-git/issues/315

Good to know, because I always found the lack of any information 
annoying.

   >> But even for pure mercurial repositories I have
   >> [hooks]
   >> changegroup.diffstat=hg diff --stat -r "p1($HG_NODE)" -r
   >> "max(descendants($HG_NODE))"
   >> outgoing=hg diff --stat -r "p1($HG_NODE)" -r
   >> "max(descendants($HG_NODE))"
   >> But still this seems not to provide the same amount of information,
   >> git
   >> provides.
   >> Any suggestions?

   > Apart from the missing hook, what information do you miss? For

What hook is missing?


   > questions like this, it’s unlikely that you get a helpful answer.

Right, what I found helpful in the information git displayed are
basically two things.

    1. The renaming was clearly visible 
       {Hoja 2 => hoja2}/mieuler.m                                    |   0
       {Hoja 2 => hoja2}/mieulermej.m                                 |   0

    2. In Mercurial this looks like (a testing I did locally)

 
pulling from /home/oub/HGTest/Clases/Server
searching for changes
 Test.org |  6 ++++++
 test.org |  6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
new changesets 5dade11f4e0f
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
 Test.org |  6 ++++++
 test.org |  6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

I guess it is a question of taste but I find the git representation a
but more intuitive.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5673 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20200519/a062cf32/attachment.p7s>


More information about the Mercurial mailing list