diff tests/test-sidedata.t @ 43040:ba4072c0a911

sidedata: test we can successfully write sidedata For now we just write them and rejoice on the lack of crashes. Differential Revision: https://phab.mercurial-scm.org/D6896
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 09 Sep 2019 21:38:29 +0200
parents e16ca9fde7aa
children 559ac8411f12
line wrap: on
line diff
--- a/tests/test-sidedata.t	Fri Sep 27 16:40:07 2019 +0200
+++ b/tests/test-sidedata.t	Mon Sep 09 21:38:29 2019 +0200
@@ -2,6 +2,24 @@
 Test file dedicated to checking side-data related behavior
 ==========================================================
 
+Check data can be written/read from sidedata
+============================================
+
+  $ cat << EOF >> $HGRCPATH
+  > [extensions]
+  > testsidedata=$TESTDIR/testlib/ext-sidedata.py
+  > EOF
+
+  $ hg init test-sidedata --config format.use-side-data=yes
+  $ cd test-sidedata
+  $ echo aaa > a
+  $ hg add a
+  $ hg commit -m a --traceback
+  $ echo aaa > b
+  $ hg add b
+  $ hg commit -m b
+  $ echo xxx >> a
+  $ hg commit -m aa
 
 Check upgrade behavior
 ======================