You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".idea","path":".idea","contentType":"directory"},{"name":".settings","path":".settings","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"editrights","path":"editrights","contentType":"directory"},{"name":"hooks","path":"hooks","contentType":"directory"},{"name":"subcmds","path":"subcmds","contentType":"directory"},{"name":"tests","path":"tests","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".project","path":".project","contentType":"file"},{"name":".pydevproject","path":".pydevproject","contentType":"file"},{"name":".pylintrc","path":".pylintrc","contentType":"file"},{"name":"COPYING","path":"COPYING","contentType":"file"},{"name":"NOTES.md","path":"NOTES.md","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SUBMITTING_PATCHES","path":"SUBMITTING_PATCHES","contentType":"file"},{"name":"color.py","path":"color.py","contentType":"file"},{"name":"command.py","path":"command.py","contentType":"file"},{"name":"editor.py","path":"editor.py","contentType":"file"},{"name":"error.py","path":"error.py","contentType":"file"},{"name":"git_command.py","path":"git_command.py","contentType":"file"},{"name":"git_config.py","path":"git_config.py","contentType":"file"},{"name":"git_refs.py","path":"git_refs.py","contentType":"file"},{"name":"git_ssh","path":"git_ssh","contentType":"file"},{"name":"main.py","path":"main.py","contentType":"file"},{"name":"manifest_xml.py","path":"manifest_xml.py","contentType":"file"},{"name":"pager.py","path":"pager.py","contentType":"file"},{"name":"portable.py","path":"portable.py","contentType":"file"},{"name":"progress.py","path":"progress.py","contentType":"file"},{"name":"project.py","path":"project.py","contentType":"file"},{"name":"repo","path":"repo","contentType":"file"},{"name":"repo.cmd","path":"repo.cmd","contentType":"file"},{"name":"repo.iml","path":"repo.iml","contentType":"file"},{"name":"repo_trace.py","path":"repo_trace.py","contentType":"file"},{"name":"repoc","path":"repoc","contentType":"file"}],"totalCount":34}},"fileTreeProcessingTime":8.838498,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":48996882,"defaultBranch":"master","name":"git-repo","ownerLogin":"lmachraf","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2016-01-04T12:53:14.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/16455667?v=4","public":true,"private":false,"isOrgOwned":false},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1620162487.0612009","canEdit":false,"refType":"branch","currentOid":"397288358d2dde18e4450317db245a32126b1511"},"path":"error.py","currentUser":null,"blob":{"rawLines":["#","# Copyright (C) 2008 The Android Open Source Project","#","# Licensed under the Apache License, Version 2.0 (the \"License\");","# you may not use this file except in compliance with the License.","# You may obtain a copy of the License at","#","# http://www.apache.org/licenses/LICENSE-2.0","#","# Unless required by applicable law or agreed to in writing, software","# distributed under the License is distributed on an \"AS IS\" BASIS,","# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.","# See the License for the specific language governing permissions and","# limitations under the License.","","class ManifestParseError(Exception):"," \"\"\"Failed to parse the manifest file."," \"\"\"","","","class ManifestInvalidRevisionError(Exception):"," \"\"\"The revision value in a project is incorrect."," \"\"\"","","","class NoManifestException(Exception):"," \"\"\"The required manifest does not exist."," \"\"\"","","","class EditorError(Exception):"," \"\"\"Unspecified error from the user's text editor."," \"\"\"",""," def __init__(self, reason):"," super(EditorError, self).__init__()"," self.reason = reason",""," def __str__(self):"," return self.reason","","","class GitError(Exception):"," \"\"\"Unspecified internal error from git."," \"\"\"",""," def __init__(self, command):"," super(GitError, self).__init__()"," self.command = command",""," def __str__(self):"," return self.command","","","class UploadError(Exception):"," \"\"\"A bundle upload to Gerrit did not succeed."," \"\"\"",""," def __init__(self, reason):"," super(UploadError, self).__init__()"," self.reason = reason",""," def __str__(self):"," return self.reason","","","class DownloadError(Exception):"," \"\"\"Cannot download a repository."," \"\"\"",""," def __init__(self, reason):"," super(DownloadError, self).__init__()"," self.reason = reason",""," def __str__(self):"," return self.reason","","","class NoSuchProjectError(Exception):"," \"\"\"A specified project does not exist in the work tree."," \"\"\"",""," def __init__(self, name=None):"," super(NoSuchProjectError, self).__init__()"," self.name = name",""," def __str__(self):"," if self.Name is None:"," return 'in current directory'"," return self.name","","","class InvalidProjectGroupsError(Exception):"," \"\"\"A specified project is not suitable for the specified groups"," \"\"\"",""," def __init__(self, name=None):"," super(InvalidProjectGroupsError, self).__init__()"," self.name = name",""," def __str__(self):"," if self.Name is None:"," return 'in current directory'"," return self.name","","","class RepoChangedException(Exception):"," \"\"\"Thrown if 'repo sync' results in repo updating its internal"," repo or manifest repositories. In this special case we must"," use exec to re-execute repo with the new code and manifest."," \"\"\"",""," def __init__(self, extra_args=None):"," super(RepoChangedException, self).__init__()"," self.extra_args = extra_args or []","","","class HookError(Exception):"," \"\"\"Thrown if a 'repo-hook' could not be run.",""," The common case is that the file wasn't present when we tried to run it."," \"\"\""],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/lmachraf/git-repo/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"error.py","displayUrl":"https://github.com/lmachraf/git-repo/blob/master/error.py?raw=true","headerInfo":{"blobSize":"3.05 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"4e5ed7d","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Flmachraf%2Fgit-repo%2Fblob%2Fmaster%2Ferror.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"122","truncatedSloc":"87"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/lmachraf/git-repo/blob/master/error.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/lmachraf/git-repo/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/lmachraf/git-repo/raw/refs/heads/master/error.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"ManifestParseError","kind":"class","ident_start":609,"ident_end":627,"extent_start":603,"extent_end":689,"fully_qualified_name":"ManifestParseError","ident_utf16":{"start":{"line_number":15,"utf16_col":6},"end":{"line_number":15,"utf16_col":24}},"extent_utf16":{"start":{"line_number":15,"utf16_col":0},"end":{"line_number":17,"utf16_col":7}}},{"name":"ManifestInvalidRevisionError","kind":"class","ident_start":698,"ident_end":726,"extent_start":692,"extent_end":799,"fully_qualified_name":"ManifestInvalidRevisionError","ident_utf16":{"start":{"line_number":20,"utf16_col":6},"end":{"line_number":20,"utf16_col":34}},"extent_utf16":{"start":{"line_number":20,"utf16_col":0},"end":{"line_number":22,"utf16_col":7}}},{"name":"NoManifestException","kind":"class","ident_start":808,"ident_end":827,"extent_start":802,"extent_end":892,"fully_qualified_name":"NoManifestException","ident_utf16":{"start":{"line_number":25,"utf16_col":6},"end":{"line_number":25,"utf16_col":25}},"extent_utf16":{"start":{"line_number":25,"utf16_col":0},"end":{"line_number":27,"utf16_col":7}}},{"name":"EditorError","kind":"class","ident_start":901,"ident_end":912,"extent_start":895,"extent_end":1143,"fully_qualified_name":"EditorError","ident_utf16":{"start":{"line_number":30,"utf16_col":6},"end":{"line_number":30,"utf16_col":17}},"extent_utf16":{"start":{"line_number":30,"utf16_col":0},"end":{"line_number":39,"utf16_col":26}}},{"name":"__init__","kind":"function","ident_start":996,"ident_end":1004,"extent_start":992,"extent_end":1092,"fully_qualified_name":"EditorError.__init__","ident_utf16":{"start":{"line_number":34,"utf16_col":8},"end":{"line_number":34,"utf16_col":16}},"extent_utf16":{"start":{"line_number":34,"utf16_col":4},"end":{"line_number":36,"utf16_col":28}}},{"name":"__str__","kind":"function","ident_start":1102,"ident_end":1109,"extent_start":1098,"extent_end":1143,"fully_qualified_name":"EditorError.__str__","ident_utf16":{"start":{"line_number":38,"utf16_col":8},"end":{"line_number":38,"utf16_col":15}},"extent_utf16":{"start":{"line_number":38,"utf16_col":4},"end":{"line_number":39,"utf16_col":26}}},{"name":"GitError","kind":"class","ident_start":1152,"ident_end":1160,"extent_start":1146,"extent_end":1382,"fully_qualified_name":"GitError","ident_utf16":{"start":{"line_number":42,"utf16_col":6},"end":{"line_number":42,"utf16_col":14}},"extent_utf16":{"start":{"line_number":42,"utf16_col":0},"end":{"line_number":51,"utf16_col":27}}},{"name":"__init__","kind":"function","ident_start":1234,"ident_end":1242,"extent_start":1230,"extent_end":1330,"fully_qualified_name":"GitError.__init__","ident_utf16":{"start":{"line_number":46,"utf16_col":8},"end":{"line_number":46,"utf16_col":16}},"extent_utf16":{"start":{"line_number":46,"utf16_col":4},"end":{"line_number":48,"utf16_col":30}}},{"name":"__str__","kind":"function","ident_start":1340,"ident_end":1347,"extent_start":1336,"extent_end":1382,"fully_qualified_name":"GitError.__str__","ident_utf16":{"start":{"line_number":50,"utf16_col":8},"end":{"line_number":50,"utf16_col":15}},"extent_utf16":{"start":{"line_number":50,"utf16_col":4},"end":{"line_number":51,"utf16_col":27}}},{"name":"UploadError","kind":"class","ident_start":1391,"ident_end":1402,"extent_start":1385,"extent_end":1629,"fully_qualified_name":"UploadError","ident_utf16":{"start":{"line_number":54,"utf16_col":6},"end":{"line_number":54,"utf16_col":17}},"extent_utf16":{"start":{"line_number":54,"utf16_col":0},"end":{"line_number":63,"utf16_col":26}}},{"name":"__init__","kind":"function","ident_start":1482,"ident_end":1490,"extent_start":1478,"extent_end":1578,"fully_qualified_name":"UploadError.__init__","ident_utf16":{"start":{"line_number":58,"utf16_col":8},"end":{"line_number":58,"utf16_col":16}},"extent_utf16":{"start":{"line_number":58,"utf16_col":4},"end":{"line_number":60,"utf16_col":28}}},{"name":"__str__","kind":"function","ident_start":1588,"ident_end":1595,"extent_start":1584,"extent_end":1629,"fully_qualified_name":"UploadError.__str__","ident_utf16":{"start":{"line_number":62,"utf16_col":8},"end":{"line_number":62,"utf16_col":15}},"extent_utf16":{"start":{"line_number":62,"utf16_col":4},"end":{"line_number":63,"utf16_col":26}}},{"name":"DownloadError","kind":"class","ident_start":1638,"ident_end":1651,"extent_start":1632,"extent_end":1867,"fully_qualified_name":"DownloadError","ident_utf16":{"start":{"line_number":66,"utf16_col":6},"end":{"line_number":66,"utf16_col":19}},"extent_utf16":{"start":{"line_number":66,"utf16_col":0},"end":{"line_number":75,"utf16_col":26}}},{"name":"__init__","kind":"function","ident_start":1718,"ident_end":1726,"extent_start":1714,"extent_end":1816,"fully_qualified_name":"DownloadError.__init__","ident_utf16":{"start":{"line_number":70,"utf16_col":8},"end":{"line_number":70,"utf16_col":16}},"extent_utf16":{"start":{"line_number":70,"utf16_col":4},"end":{"line_number":72,"utf16_col":28}}},{"name":"__str__","kind":"function","ident_start":1826,"ident_end":1833,"extent_start":1822,"extent_end":1867,"fully_qualified_name":"DownloadError.__str__","ident_utf16":{"start":{"line_number":74,"utf16_col":8},"end":{"line_number":74,"utf16_col":15}},"extent_utf16":{"start":{"line_number":74,"utf16_col":4},"end":{"line_number":75,"utf16_col":26}}},{"name":"NoSuchProjectError","kind":"class","ident_start":1876,"ident_end":1894,"extent_start":1870,"extent_end":2207,"fully_qualified_name":"NoSuchProjectError","ident_utf16":{"start":{"line_number":78,"utf16_col":6},"end":{"line_number":78,"utf16_col":24}},"extent_utf16":{"start":{"line_number":78,"utf16_col":0},"end":{"line_number":89,"utf16_col":24}}},{"name":"__init__","kind":"function","ident_start":1984,"ident_end":1992,"extent_start":1980,"extent_end":2086,"fully_qualified_name":"NoSuchProjectError.__init__","ident_utf16":{"start":{"line_number":82,"utf16_col":8},"end":{"line_number":82,"utf16_col":16}},"extent_utf16":{"start":{"line_number":82,"utf16_col":4},"end":{"line_number":84,"utf16_col":24}}},{"name":"__str__","kind":"function","ident_start":2096,"ident_end":2103,"extent_start":2092,"extent_end":2207,"fully_qualified_name":"NoSuchProjectError.__str__","ident_utf16":{"start":{"line_number":86,"utf16_col":8},"end":{"line_number":86,"utf16_col":15}},"extent_utf16":{"start":{"line_number":86,"utf16_col":4},"end":{"line_number":89,"utf16_col":24}}},{"name":"InvalidProjectGroupsError","kind":"class","ident_start":2216,"ident_end":2241,"extent_start":2210,"extent_end":2569,"fully_qualified_name":"InvalidProjectGroupsError","ident_utf16":{"start":{"line_number":92,"utf16_col":6},"end":{"line_number":92,"utf16_col":31}},"extent_utf16":{"start":{"line_number":92,"utf16_col":0},"end":{"line_number":103,"utf16_col":24}}},{"name":"__init__","kind":"function","ident_start":2339,"ident_end":2347,"extent_start":2335,"extent_end":2448,"fully_qualified_name":"InvalidProjectGroupsError.__init__","ident_utf16":{"start":{"line_number":96,"utf16_col":8},"end":{"line_number":96,"utf16_col":16}},"extent_utf16":{"start":{"line_number":96,"utf16_col":4},"end":{"line_number":98,"utf16_col":24}}},{"name":"__str__","kind":"function","ident_start":2458,"ident_end":2465,"extent_start":2454,"extent_end":2569,"fully_qualified_name":"InvalidProjectGroupsError.__str__","ident_utf16":{"start":{"line_number":100,"utf16_col":8},"end":{"line_number":100,"utf16_col":15}},"extent_utf16":{"start":{"line_number":100,"utf16_col":4},"end":{"line_number":103,"utf16_col":24}}},{"name":"RepoChangedException","kind":"class","ident_start":2578,"ident_end":2598,"extent_start":2572,"extent_end":2958,"fully_qualified_name":"RepoChangedException","ident_utf16":{"start":{"line_number":106,"utf16_col":6},"end":{"line_number":106,"utf16_col":26}},"extent_utf16":{"start":{"line_number":106,"utf16_col":0},"end":{"line_number":114,"utf16_col":42}}},{"name":"__init__","kind":"function","ident_start":2830,"ident_end":2838,"extent_start":2826,"extent_end":2958,"fully_qualified_name":"RepoChangedException.__init__","ident_utf16":{"start":{"line_number":112,"utf16_col":8},"end":{"line_number":112,"utf16_col":16}},"extent_utf16":{"start":{"line_number":112,"utf16_col":4},"end":{"line_number":114,"utf16_col":42}}},{"name":"HookError","kind":"class","ident_start":2967,"ident_end":2976,"extent_start":2961,"extent_end":3123,"fully_qualified_name":"HookError","ident_utf16":{"start":{"line_number":117,"utf16_col":6},"end":{"line_number":117,"utf16_col":15}},"extent_utf16":{"start":{"line_number":117,"utf16_col":0},"end":{"line_number":121,"utf16_col":7}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/lmachraf/git-repo/branches":{"post":"ODN46dvuHKwe5goKVmdg_RAXSYc57aN-k5sWhAicd_fgrUMcWKF7sKbZgHQyl3mdC2GGg2fFxlQV2CR87HuWBw"},"/repos/preferences":{"post":"ijjQxOSDDGfD1JXwj7C8uJaWcfJAyrMWBBDAWV1ZxPUKbPHfxAABSTT7Fg7Dz_0tElyhTIRI9k5wEFgEeSjVrw"}}},"title":"git-repo/error.py at master · lmachraf/git-repo","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}