vcs: commits, expose refs function to fetch commit refereces such as tags, bookmarks, etc.
This commit is contained in:
parent
40e74de7a2
commit
ec6a342178
2 changed files with 8 additions and 5 deletions
|
|
@ -340,11 +340,7 @@ def get_repo_changeset(request, apiuser, repoid, revision,
|
|||
_cs_json = cs.__json__()
|
||||
_cs_json['diff'] = build_commit_data(cs, changes_details)
|
||||
if changes_details == 'full':
|
||||
_cs_json['refs'] = {
|
||||
'branches': [cs.branch],
|
||||
'bookmarks': getattr(cs, 'bookmarks', []),
|
||||
'tags': cs.tags
|
||||
}
|
||||
_cs_json['refs'] = cs._get_refs()
|
||||
return _cs_json
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue