##// END OF EJS Templates
avoid double slash problem mentioned in issue695
Alexis S. L. Carvalho -
r5226:438ff951 default
parent child Browse files
Show More
@@ -1490,6 +1490,11 b' def clone(ui, source, dest=None, **opts)'
1490 Source patch repository is looked for in <src>/.hg/patches by
1490 Source patch repository is looked for in <src>/.hg/patches by
1491 default. Use -p <url> to change.
1491 default. Use -p <url> to change.
1492 '''
1492 '''
1493 def patchdir(repo):
1494 url = repo.url()
1495 if url.endswith('/'):
1496 url = url[:-1]
1497 return url + '/.hg/patches'
1493 cmdutil.setremoteconfig(ui, opts)
1498 cmdutil.setremoteconfig(ui, opts)
1494 if dest is None:
1499 if dest is None:
1495 dest = hg.defaultdest(source)
1500 dest = hg.defaultdest(source)
@@ -1511,10 +1516,8 b' def clone(ui, source, dest=None, **opts)'
1511 update=False,
1516 update=False,
1512 stream=opts['uncompressed'])
1517 stream=opts['uncompressed'])
1513 ui.note(_('cloning patch repo\n'))
1518 ui.note(_('cloning patch repo\n'))
1514 spr, dpr = hg.clone(ui, opts['patches'] or (sr.url() + '/.hg/patches'),
1519 spr, dpr = hg.clone(ui, opts['patches'] or patchdir(sr), patchdir(dr),
1515 dr.url() + '/.hg/patches',
1520 pull=opts['pull'], update=not opts['noupdate'],
1516 pull=opts['pull'],
1517 update=not opts['noupdate'],
1518 stream=opts['uncompressed'])
1521 stream=opts['uncompressed'])
1519 if dr.local():
1522 if dr.local():
1520 if qbase:
1523 if qbase:
General Comments 0
You need to be logged in to leave comments. Login now