Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
pulkit |
hg-reviewers |
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | hgext/git/manifest.py (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
6fd30151562c | 867ba2d4102d | Pulkit Goyal | Feb 28 2020, 8:19 AM |
val = self._pending_changes[path] | val = self._pending_changes[path] | ||||
if val is None: | if val is None: | ||||
raise KeyError | raise KeyError | ||||
return val | return val | ||||
t = self._tree | t = self._tree | ||||
comps = upath.split('/') | comps = upath.split('/') | ||||
for comp in comps[:-1]: | for comp in comps[:-1]: | ||||
te = self._tree[comp] | te = self._tree[comp] | ||||
t = self.gitrepo[te.id] | t = self._git_repo[te.id] | ||||
ent = t[comps[-1]] | ent = t[comps[-1]] | ||||
if ent.filemode == pygit2.GIT_FILEMODE_BLOB: | if ent.filemode == pygit2.GIT_FILEMODE_BLOB: | ||||
flags = b'' | flags = b'' | ||||
elif ent.filemode == pygit2.GIT_FILEMODE_BLOB_EXECUTABLE: | elif ent.filemode == pygit2.GIT_FILEMODE_BLOB_EXECUTABLE: | ||||
flags = b'x' | flags = b'x' | ||||
elif ent.filemode == pygit2.GIT_FILEMODE_LINK: | elif ent.filemode == pygit2.GIT_FILEMODE_LINK: | ||||
flags = b'l' | flags = b'l' | ||||
else: | else: |