Submitter | Chinmay Joshi |
---|---|
Date | June 21, 2014, 10:27 a.m. |
Message ID | <88dcd32c93da90ec779e.1403346470@genesis> |
Download | mbox | patch |
Permalink | /patch/5028/ |
State | Accepted |
Commit | 2ccd71bbd0f72860a02eb491ceb3ef305e0d8a17 |
Headers | show |
Comments
Patch
diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -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: