##// END OF EJS Templates
changegroup: add a option to create bundle with full snapshot only...
Boris Feld -
r40459:808b7626 default
parent child Browse files
Show More
@@ -698,7 +698,7 b' def deltagroup(repo, store, nodes, ischa'
698 698 total=len(nodes))
699 699
700 700 configtarget = repo.ui.config('devel', 'bundle.delta')
701 if configtarget not in ('', 'p1'):
701 if configtarget not in ('', 'p1', 'full'):
702 702 msg = _("""config "devel.bundle.delta" as unknown value: %s""")
703 703 repo.ui.warn(msg % configtarget)
704 704
@@ -707,6 +707,8 b' def deltagroup(repo, store, nodes, ischa'
707 707 deltamode = repository.CG_DELTAMODE_PREV
708 708 elif configtarget == 'p1':
709 709 deltamode = repository.CG_DELTAMODE_P1
710 elif configtarget == 'full':
711 deltamode = repository.CG_DELTAMODE_FULL
710 712
711 713 revisions = store.emitrevisions(
712 714 nodes,
@@ -905,3 +905,7 b' Test the option that create slim bundle'
905 905
906 906 $ hg bundle -a --config devel.bundle.delta=p1 ./slim.hg
907 907 3 changesets found
908
909 Test the option that create and no-delta's bundle
910 $ hg bundle -a --config devel.bundle.delta=full ./full.hg
911 3 changesets found
General Comments 0
You need to be logged in to leave comments. Login now