Show More
@@ -405,7 +405,7 b' class localrepository(object):' | |||
|
405 | 405 | # rely on obsstore class default when possible. |
|
406 | 406 | kwargs = {} |
|
407 | 407 | if defaultformat is not None: |
|
408 |
|
|
|
408 | kwargs['defaultformat'] = defaultformat | |
|
409 | 409 | store = obsolete.obsstore(self.sopener, **kwargs) |
|
410 | 410 | if store and not obsolete._enabled: |
|
411 | 411 | # message is rare enough to not be translated |
@@ -73,6 +73,7 b' Killing a single changeset with itself s' | |||
|
73 | 73 | $ cd .. |
|
74 | 74 | |
|
75 | 75 | Killing a single changeset with replacement |
|
76 | (and testing the format option) | |
|
76 | 77 | |
|
77 | 78 | $ hg init tmpb |
|
78 | 79 | $ cd tmpb |
@@ -84,7 +85,7 b' Killing a single changeset with replacem' | |||
|
84 | 85 | $ mkcommit new_c |
|
85 | 86 | created new head |
|
86 | 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 | 89 | $ hg log -r 'hidden()' --template '{rev}:{node|short} {desc}\n' --hidden |
|
89 | 90 | 2:245bde4270cd add original_c |
|
90 | 91 | $ hg debugrevlog -cd |
@@ -96,6 +97,11 b' Killing a single changeset with replacem' | |||
|
96 | 97 | $ hg debugobsolete |
|
97 | 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 | 105 | do it again (it read the obsstore before adding new changeset) |
|
100 | 106 | |
|
101 | 107 | $ hg up '.^' |
General Comments 0
You need to be logged in to leave comments.
Login now