##// END OF EJS Templates
share: stop using 'islocal' with repo instance...
marmoute -
r50581:229e0ed8 default
parent child Browse files
Show More
@@ -299,8 +299,13 b' def share('
299 ):
299 ):
300 '''create a shared repository'''
300 '''create a shared repository'''
301
301
302 if not islocal(source):
302 not_local_msg = _(b'can only share local repositories')
303 raise error.Abort(_(b'can only share local repositories'))
303 if util.safehasattr(source, 'local'):
304 if source.local() is None:
305 raise error.Abort(not_local_msg)
306 elif not islocal(source):
307 # XXX why are we getting bytes here ?
308 raise error.Abort(not_local_msg)
304
309
305 if not dest:
310 if not dest:
306 dest = defaultdest(source)
311 dest = defaultdest(source)
General Comments 0
You need to be logged in to leave comments. Login now