Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hg.py @ 13795:43b5fe18ea6c
set NOT_CONTENT_INDEXED on .hg dir (issue2694)
when running on Windows
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Mon, 28 Mar 2011 15:54:22 +0200 |
parents | 7abab875e647 |
children | ad179644750f |
comparison
equal
deleted
inserted
replaced
13793:ba58c5a61503 | 13795:43b5fe18ea6c |
---|---|
141 if os.path.exists(roothg): | 141 if os.path.exists(roothg): |
142 raise util.Abort(_('destination already exists')) | 142 raise util.Abort(_('destination already exists')) |
143 | 143 |
144 if not os.path.isdir(root): | 144 if not os.path.isdir(root): |
145 os.mkdir(root) | 145 os.mkdir(root) |
146 os.mkdir(roothg) | 146 util.makedir(roothg, notindexed=True) |
147 | 147 |
148 requirements = '' | 148 requirements = '' |
149 try: | 149 try: |
150 requirements = srcrepo.opener('requires').read() | 150 requirements = srcrepo.opener('requires').read() |
151 except IOError, inst: | 151 except IOError, inst: |
279 else: | 279 else: |
280 # only clean up directories we create ourselves | 280 # only clean up directories we create ourselves |
281 dir_cleanup.dir_ = hgdir | 281 dir_cleanup.dir_ = hgdir |
282 try: | 282 try: |
283 dest_path = hgdir | 283 dest_path = hgdir |
284 os.mkdir(dest_path) | 284 util.makedir(dest_path, notindexed=True) |
285 except OSError, inst: | 285 except OSError, inst: |
286 if inst.errno == errno.EEXIST: | 286 if inst.errno == errno.EEXIST: |
287 dir_cleanup.close() | 287 dir_cleanup.close() |
288 raise util.Abort(_("destination '%s' already exists") | 288 raise util.Abort(_("destination '%s' already exists") |
289 % dest) | 289 % dest) |