# HG changeset patch # User Chinmay Joshi # Date 2014-06-21 09:07:39 # Node ID 2ccd71bbd0f72860a02eb491ceb3ef305e0d8a17 # Parent 219af1521a6a44c2fb6fbd508f3b161644aac446 hg: update to use vfs functions in shared destination repository This patch uses destvfs with base as .hg directory in shared destination repository to update filesystem function with vfs. Some methods are changed to use vfs functions with destvfs. branch 'default' HG: bookmark '@' HG: changed mercurial/hg.py diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -175,13 +175,14 @@ def share(ui, source, dest=None, update= root = os.path.realpath(dest) roothg = os.path.join(root, '.hg') destwvfs = scmutil.vfs(dest, realpath=True) + destvfs = scmutil.vfs(os.path.join(destwvfs.base, '.hg'), realpath=True) - if os.path.exists(roothg): + if destvfs.lexists(): raise util.Abort(_('destination already exists')) if not destwvfs.isdir(): destwvfs.mkdir() - util.makedir(roothg, notindexed=True) + destvfs.makedir() requirements = '' try: