457 if opts.get('ssh'): |
457 if opts.get('ssh'): |
458 ui.setconfig("ui", "ssh", opts['ssh']) |
458 ui.setconfig("ui", "ssh", opts['ssh']) |
459 if opts.get('remotecmd'): |
459 if opts.get('remotecmd'): |
460 ui.setconfig("ui", "remotecmd", opts['remotecmd']) |
460 ui.setconfig("ui", "remotecmd", opts['remotecmd']) |
461 |
461 |
462 def parseurl(url, revs): |
|
463 '''parse url#branch, returning url, branch + revs''' |
|
464 |
|
465 if '#' not in url: |
|
466 return url, (revs or None) |
|
467 |
|
468 url, rev = url.split('#', 1) |
|
469 return url, revs + [rev] |
|
470 |
|
471 def revpair(repo, revs): |
462 def revpair(repo, revs): |
472 '''return pair of nodes, given list of revisions. second item can |
463 '''return pair of nodes, given list of revisions. second item can |
473 be None, meaning use working dir.''' |
464 be None, meaning use working dir.''' |
474 |
465 |
475 def revfix(repo, val, defval): |
466 def revfix(repo, val, defval): |