diff tests/test-rhg.t @ 45804:6991f3014311

rhg: strip copied files metadata from `cat` output Differential Revision: https://phab.mercurial-scm.org/D9264
author Antoine cezar<acezar@chwitlabs.fr>
date Thu, 29 Oct 2020 19:25:33 +0100
parents f17caf8f3fef
children 57dc78861196
line wrap: on
line diff
--- a/tests/test-rhg.t	Mon Nov 02 14:39:43 2020 -0500
+++ b/tests/test-rhg.t	Thu Oct 29 19:25:33 2020 +0100
@@ -90,3 +90,19 @@
   file1\x00b8e02f6433738021a065f94175c7cd23db5f05be (esc)
   file2\x005d9299349fc01ddd25d0070d149b124d8f10411e (esc)
   file3\x002661d26c649684b482d10f91960cc3db683c38b4 (esc)
+
+Cat files
+  $ cd $TESTTMP
+  $ rm -rf repository
+  $ hg init repository
+  $ cd repository
+  $ echo "original content" > original
+  $ hg add original
+  $ hg commit -m "add original" original
+  $ rhg cat -r 0 original
+  original content
+Cat copied file should not display copy metadata
+  $ hg copy original copy_of_original
+  $ hg commit -m "add copy of original"
+  $ rhg cat -r 1 copy_of_original
+  original content