[PATCH 1 of 2] graphlog: test for when cset revs != file revs

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Sun Nov 16 20:05:08 UTC 2008


# HG changeset patch
# User Peter Arrenbrecht <peter.arrenbrecht at gmail.com>
# Date 1226865729 -3600
# Node ID e2c0df7baf8e98397d7691a0231eaa547db721f2
# Parent  f5f6b7dcd217ee22cb13bf496b0e190689b07751
graphlog: test for when cset revs != file revs

This test runs OK when applied before 7bc62ebe7693. But it breaks after it. The second patch in this series fixes the refactoring in 7bc62ebe7693.

diff --git a/tests/test-glog b/tests/test-glog
--- a/tests/test-glog
+++ b/tests/test-glog
@@ -151,3 +151,16 @@
 hg glog -l1 repo/0
 hg glog -l1 repo/missing
 
+echo % file log with revs != cset revs
+hg init flog
+cd flog
+echo one >one
+hg add one
+hg commit -mone
+echo two >two
+hg add two
+hg commit -mtwo
+echo more >two
+hg commit -mmore
+hg glog two
+
diff --git a/tests/test-glog.out b/tests/test-glog.out
--- a/tests/test-glog.out
+++ b/tests/test-glog.out
@@ -369,3 +369,15 @@
    date:        Thu Jan 01 00:00:00 1970 +0000
    summary:     (0) root
 
+% file log with revs != cset revs
+@  changeset:   2:12c28321755b
+|  tag:         tip
+|  user:        test
+|  date:        Thu Jan 01 00:00:00 1970 +0000
+|  summary:     more
+|
+o  changeset:   1:5ac72c0599bf
+   user:        test
+   date:        Thu Jan 01 00:00:00 1970 +0000
+   summary:     two
+



More information about the Mercurial-devel mailing list