equal
deleted
inserted
replaced
452 if len(key) == 20: |
452 if len(key) == 20: |
453 key = hex(key) |
453 key = hex(key) |
454 except: |
454 except: |
455 pass |
455 pass |
456 raise error.RepoLookupError(_("unknown revision '%s'") % key) |
456 raise error.RepoLookupError(_("unknown revision '%s'") % key) |
|
457 |
|
458 def lookupbranch(self, key, remote=None): |
|
459 repo = remote or self |
|
460 if key in repo.branchmap(): |
|
461 return key |
|
462 |
|
463 repo = (remote and remote.local()) and remote or self |
|
464 return repo[key].branch() |
457 |
465 |
458 def local(self): |
466 def local(self): |
459 return True |
467 return True |
460 |
468 |
461 def join(self, f): |
469 def join(self, f): |