##// END OF EJS Templates
obsstore: fix defaultformat option passing...
Durham Goode -
r22948:c136e269 default
parent child Browse files
Show More
@@ -405,7 +405,7 b' class localrepository(object):'
405 # rely on obsstore class default when possible.
405 # rely on obsstore class default when possible.
406 kwargs = {}
406 kwargs = {}
407 if defaultformat is not None:
407 if defaultformat is not None:
408 defaultformat['defaultformat'] = defaultformat
408 kwargs['defaultformat'] = defaultformat
409 store = obsolete.obsstore(self.sopener, **kwargs)
409 store = obsolete.obsstore(self.sopener, **kwargs)
410 if store and not obsolete._enabled:
410 if store and not obsolete._enabled:
411 # message is rare enough to not be translated
411 # message is rare enough to not be translated
@@ -73,6 +73,7 b' Killing a single changeset with itself s'
73 $ cd ..
73 $ cd ..
74
74
75 Killing a single changeset with replacement
75 Killing a single changeset with replacement
76 (and testing the format option)
76
77
77 $ hg init tmpb
78 $ hg init tmpb
78 $ cd tmpb
79 $ cd tmpb
@@ -84,7 +85,7 b' Killing a single changeset with replacem'
84 $ mkcommit new_c
85 $ mkcommit new_c
85 created new head
86 created new head
86 $ hg log -r 'hidden()' --template '{rev}:{node|short} {desc}\n' --hidden
87 $ hg log -r 'hidden()' --template '{rev}:{node|short} {desc}\n' --hidden
87 $ hg debugobsolete --flag 12 `getid original_c` `getid new_c` -d '56 120'
88 $ hg debugobsolete --config format.obsstore-version=0 --flag 12 `getid original_c` `getid new_c` -d '56 120'
88 $ hg log -r 'hidden()' --template '{rev}:{node|short} {desc}\n' --hidden
89 $ hg log -r 'hidden()' --template '{rev}:{node|short} {desc}\n' --hidden
89 2:245bde4270cd add original_c
90 2:245bde4270cd add original_c
90 $ hg debugrevlog -cd
91 $ hg debugrevlog -cd
@@ -96,6 +97,11 b' Killing a single changeset with replacem'
96 $ hg debugobsolete
97 $ hg debugobsolete
97 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Wed Dec 31 23:58:56 1969 -0002) {'user': 'test'}
98 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Wed Dec 31 23:58:56 1969 -0002) {'user': 'test'}
98
99
100 (check for version number of the obsstore)
101
102 $ dd bs=1 count=1 if=.hg/store/obsstore 2>/dev/null
103 \x00 (no-eol) (esc)
104
99 do it again (it read the obsstore before adding new changeset)
105 do it again (it read the obsstore before adding new changeset)
100
106
101 $ hg up '.^'
107 $ hg up '.^'
General Comments 0
You need to be logged in to leave comments. Login now