##// END OF EJS Templates
hg: update to use vfs functions in shared destination repository...
Chinmay Joshi -
r21801:2ccd71bb default
parent child Browse files
Show More
@@ -175,13 +175,14 b' def share(ui, source, dest=None, update='
175 root = os.path.realpath(dest)
175 root = os.path.realpath(dest)
176 roothg = os.path.join(root, '.hg')
176 roothg = os.path.join(root, '.hg')
177 destwvfs = scmutil.vfs(dest, realpath=True)
177 destwvfs = scmutil.vfs(dest, realpath=True)
178 destvfs = scmutil.vfs(os.path.join(destwvfs.base, '.hg'), realpath=True)
178
179
179 if os.path.exists(roothg):
180 if destvfs.lexists():
180 raise util.Abort(_('destination already exists'))
181 raise util.Abort(_('destination already exists'))
181
182
182 if not destwvfs.isdir():
183 if not destwvfs.isdir():
183 destwvfs.mkdir()
184 destwvfs.mkdir()
184 util.makedir(roothg, notindexed=True)
185 destvfs.makedir()
185
186
186 requirements = ''
187 requirements = ''
187 try:
188 try:
General Comments 0
You need to be logged in to leave comments. Login now