[PATCH 1 of 3] shelve: compress on-disk bundle
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Fri Oct 2 02:44:36 UTC 2015
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at 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.
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
More information about the Mercurial-devel
mailing list