Patchwork [1,of,3] shelve: compress on-disk bundle

login
register
mail settings
Submitter Pierre-Yves David
Date Oct. 2, 2015, 2:44 a.m.
Message ID <a942f2084f9b8f7d4bb2.1443753876@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/10724/
State Accepted
Headers show

Comments

Pierre-Yves David - Oct. 2, 2015, 2:44 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1443572070 25200
#      Tue Sep 29 17:14:30 2015 -0700
# Node ID a942f2084f9b8f7d4bb2b2fc14b8c7012a8a4619
# Parent  97dc6ab42aad232c73180dee648685c26662230b
shelve: compress on-disk bundle

Shelve is using 'HG10UN' bundle for no obvious reason. Changing this to 'HG10BZ'
as we do for other bundle stored on disk.

Patch

diff --git a/hgext/shelve.py b/hgext/shelve.py
--- a/hgext/shelve.py
+++ b/hgext/shelve.py
@@ -104,11 +104,11 @@  class shelvedfile(object):
 
     def bundlerepo(self):
         return bundlerepo.bundlerepository(self.repo.baseui, self.repo.root,
                                            self.vfs.join(self.fname))
     def writebundle(self, cg):
-        changegroup.writebundle(self.ui, cg, self.fname, 'HG10UN', self.vfs)
+        changegroup.writebundle(self.ui, cg, self.fname, 'HG10BZ', self.vfs)
 
 class shelvedstate(object):
     """Handle persistence during unshelving operations.
 
     Handles saving and restoring a shelved state. Ensures that different