Mercurial > hg
changeset 21801:2ccd71bbd0f7
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
author | Chinmay Joshi <c@chinmayjoshi.com> |
---|---|
date | Sat, 21 Jun 2014 14:37:39 +0530 |
parents | 219af1521a6a |
children | ff27fad408c4 |
files | mercurial/hg.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Sat Jun 21 14:29:20 2014 +0530 +++ b/mercurial/hg.py Sat Jun 21 14:37:39 2014 +0530 @@ -175,13 +175,14 @@ 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: