comparison hgext/share.py @ 18825:f0564402d059

repo: repo isolation, do not pass on repo.ui for creating new repos A repo should not get the configuration from an other repo, so create it with the global configuration in repo.baseui. This is done too when recreating a repo. The repo configuration is reread anyway. And now deleted repo configuration does not persist.
author Simon Heimberg <simohe@besonet.ch>
date Wed, 10 Oct 2012 21:55:49 +0200
parents 38caf405d010
children 02465cafb0a9
comparison
equal deleted inserted replaced
18824:f0d55e1b4855 18825:f0564402d059
57 finally: 57 finally:
58 destlock and destlock.release() 58 destlock and destlock.release()
59 lock and lock.release() 59 lock and lock.release()
60 60
61 # update store, spath, sopener and sjoin of repo 61 # update store, spath, sopener and sjoin of repo
62 repo.__init__(ui, repo.root) 62 repo.__init__(repo.baseui, repo.root)
63 63
64 cmdtable = { 64 cmdtable = {
65 "share": 65 "share":
66 (share, 66 (share,
67 [('U', 'noupdate', None, _('do not create a working copy'))], 67 [('U', 'noupdate', None, _('do not create a working copy'))],