diff tests/test-obsolete.t @ 22948:c136e26953aa

obsstore: fix defaultformat option passing The obsstore format passing was not actually being passed to the obsstore. This fixes it.
author Durham Goode <durham@fb.com>
date Wed, 15 Oct 2014 12:52:10 -0700
parents 9a7d0f7e0561
children bb8278b289ee
line wrap: on
line diff
--- a/tests/test-obsolete.t	Wed Oct 15 15:35:59 2014 -0400
+++ b/tests/test-obsolete.t	Wed Oct 15 12:52:10 2014 -0700
@@ -73,6 +73,7 @@
   $ cd ..
 
 Killing a single changeset with replacement
+(and testing the format option)
 
   $ hg init tmpb
   $ cd tmpb
@@ -84,7 +85,7 @@
   $ mkcommit new_c
   created new head
   $ hg log -r 'hidden()' --template '{rev}:{node|short} {desc}\n' --hidden
-  $ hg debugobsolete --flag 12 `getid original_c`  `getid new_c` -d '56 120'
+  $ hg debugobsolete --config format.obsstore-version=0 --flag 12 `getid original_c`  `getid new_c` -d '56 120'
   $ hg log -r 'hidden()' --template '{rev}:{node|short} {desc}\n' --hidden
   2:245bde4270cd add original_c
   $ hg debugrevlog -cd
@@ -96,6 +97,11 @@
   $ hg debugobsolete
   245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Wed Dec 31 23:58:56 1969 -0002) {'user': 'test'}
 
+(check for version number of the obsstore)
+
+  $ dd bs=1 count=1 if=.hg/store/obsstore 2>/dev/null
+  \x00 (no-eol) (esc)
+
 do it again (it read the obsstore before adding new changeset)
 
   $ hg up '.^'