Mercurialでgit showをシミュレートする方法はありますか?

Mercurialでgit showをシミュレートする方法はありますか?

私はしばしば$ git show commitidを使用して、人が何を変更したかを確認します。たとえば -

┌─[shirish@debian] - [~/games/libcpuid] - [10029]
└─[$] git show b5bd535

commit b5bd5355829dcd123fba20a3c1d14f2bc139dc43
Author: eloaders <[email protected]>
Date:   Mon Oct 3 20:10:02 2016 +0200

Fix #72

let libcpuid 0.4.0 and brethen conflict with libcpuid 0.3.0 and its
brethen

diff --git a/debian/control b/debian/control
index ba71f44..b70c5da 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Homepage: https://github.com/anrieff/libcpuid
 Package: libcpuid14
 Architecture: amd64 i386
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${misc:Pre-Depends}
-Replaces: libcpuid11

+Replaces: libcpuid11, libcpuid13
 Description: small C library for x86/x86_64 CPU detection and feature extraction

これはから来たものですhttps://github.com/anrieff/libcpuidしかし、それは実際の質問ではありません。色差などでMercurialを使用する同様の方法はありますか? $ hg show Changeset idを試しましたが、役に立ちませんでした。

ベストアンサー1

カラー拡張を有効にする

このようなものを使用してくださいhg log -r NNN -v -p -g(カラーブロックを表示することはできませんが、はいここ)

changeset:   7:32bbc6bc3867
user:        AL <lazybadger@*>
date:        Tue Nov 20 03:51:53 2012 +0600
files:       404.php
description:
Localization of page


diff --git a/404.php b/404.php
--- a/404.php
+++ b/404.php
@@ -1,8 +1,8 @@
 <?php get_header(); ?>

   <article class="noposts">
-       <h2>404 - Content Not Found</h2>
-       <p>We don't seem to be able to find the content you have requested - why not try a search below?</p>
+       <h2><?php _e('404 - Content Not Found','fiver' ); ?></h2>
+       <p><?php _e('We don&rsquo;t seem to be able to find the content you have requested - why not try a search below?','fiver' ); ?></p>
        <?php get_search_form(); ?>
   </article>

デフォルトの出力を変更するには - 独自のスタイルを作成して-T stylenameログオプションに追加します。

ノート

使用されたオプション:

  • -r表示する変更セットの範囲を定義します(単一の変更セットまたは改訂セットのいずれかです)。
  • -v(オプション)詳細出力:デフォルト出力の形式を少し変更し、各変更セットに影響を受けるファイルを含む文字列を追加します(デフォルトではアナログはありませんgit show)。
  • -p変更された違いをログ出力に追加する
  • -g上記のdiffを「拡張Git形式」にエクスポートします(git showdiffは常にGit形式なので)。

おすすめ記事