Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F59087055
search_repo.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Apr 19, 16:40
Size
273 B
Mime Type
text/x-python
Expires
Sun, Apr 21, 16:40 (2 d)
Engine
blob
Format
Raw Data
Handle
17123940
Attached To
rPHAPI Phabricator API scripts
search_repo.py
View Options
#!/usr/bin/env python3
HOST
=
'scitassrv18.epfl.ch'
from
phabricator
import
Phabricator
phab
=
Phabricator
(
host
=
'https://{}/api/'
.
format
(
HOST
))
repo
=
phab
.
diffusion
.
repository
.
search
(
constraints
=
{
'types'
:
[
'svn'
]})
for
r
in
repo
[
'data'
]:
print
(
'R{}'
.
format
(
r
[
'id'
]))
Event Timeline
Log In to Comment