Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG488e313954ea: py3: check for bytes instead of str in hg.share()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/hg.py (2 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Needs Revision | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg |
if not islocal(source): | if not islocal(source): | ||||
raise error.Abort(_('can only share local repositories')) | raise error.Abort(_('can only share local repositories')) | ||||
if not dest: | if not dest: | ||||
dest = defaultdest(source) | dest = defaultdest(source) | ||||
else: | else: | ||||
dest = ui.expandpath(dest) | dest = ui.expandpath(dest) | ||||
if isinstance(source, str): | if isinstance(source, bytes): | ||||
origsource = ui.expandpath(source) | origsource = ui.expandpath(source) | ||||
source, branches = parseurl(origsource) | source, branches = parseurl(origsource) | ||||
srcrepo = repository(ui, source) | srcrepo = repository(ui, source) | ||||
rev, checkout = addbranchrevs(srcrepo, srcrepo, branches, None) | rev, checkout = addbranchrevs(srcrepo, srcrepo, branches, None) | ||||
else: | else: | ||||
srcrepo = source.local() | srcrepo = source.local() | ||||
origsource = source = srcrepo.url() | origsource = source = srcrepo.url() | ||||
checkout = None | checkout = None |