[PATCH] obsstore: fix defaultformat option passing
Durham Goode
durham at fb.com
Wed Oct 15 19:55:49 UTC 2014
# HG changeset patch
# User Durham Goode <durham at fb.com>
# Date 1413402730 25200
# Wed Oct 15 12:52:10 2014 -0700
# Node ID d627d886a7d6589563123407a7100e281fbb7b6e
# Parent 75d0edb68b417964110e3fcd69187c867f31a119
obsstore: fix defaultformat option passing
The obsstore format passing was not actually being passed to the obsstore. This
fixes it.
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -405,7 +405,7 @@ class localrepository(object):
# rely on obsstore class default when possible.
kwargs = {}
if defaultformat is not None:
- defaultformat['defaultformat'] = defaultformat
+ kwargs['defaultformat'] = defaultformat
store = obsolete.obsstore(self.sopener, **kwargs)
if store and not obsolete._enabled:
# message is rare enough to not be translated
More information about the Mercurial-devel
mailing list