##// END OF EJS Templates
repair: use cg3 for treemanifests...
Martin von Zweigbergk -
r27930:7cbb3a01 stable
parent child Browse files
Show More
@@ -22,9 +22,7 b' from . import ('
22
22
23 def _bundle(repo, bases, heads, node, suffix, compress=True):
23 def _bundle(repo, bases, heads, node, suffix, compress=True):
24 """create a bundle with the specified revisions as a backup"""
24 """create a bundle with the specified revisions as a backup"""
25 cgversion = '01'
25 cgversion = changegroup.safeversion(repo)
26 if 'generaldelta' in repo.requirements:
27 cgversion = '02'
28
26
29 cg = changegroup.changegroupsubset(repo, bases, heads, 'strip',
27 cg = changegroup.changegroupsubset(repo, bases, heads, 'strip',
30 version=cgversion)
28 version=cgversion)
@@ -285,6 +285,17 b' Turning off treemanifest config has no e'
285 1 127 111 0 5 25ecb8cb8618 000000000000 000000000000
285 1 127 111 0 5 25ecb8cb8618 000000000000 000000000000
286 2 238 55 1 6 5b16163a30c6 25ecb8cb8618 000000000000
286 2 238 55 1 6 5b16163a30c6 25ecb8cb8618 000000000000
287
287
288 Stripping and recovering changes should work
289
290 $ hg st --change tip
291 M dir1/a
292 $ hg --config extensions.strip= strip tip
293 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
294 saved backup bundle to $TESTTMP/repo-mixed/.hg/strip-backup/51cfd7b1e13b-78a2f3ed-backup.hg (glob)
295 $ hg unbundle -q .hg/strip-backup/*
296 $ hg st --change tip
297 M dir1/a
298
288 Create deeper repo with tree manifests.
299 Create deeper repo with tree manifests.
289
300
290 $ cd ..
301 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now