Browse Repository Files in Web UI

132 views
Skip to first unread message

Venky Bulusu

unread,
Mar 13, 2019, 5:32:15 AM3/13/19
to Repo and Gerrit Discussion
Hi,

Is there a way to list all the files of a repository in Gerrit Web UI, like we can list all files in GITHUB UI.

At present I need to clone the repository to see the files list in a repository.

Please let me know if there is an option in Gerrit Web UI.

Thanks


GitHub_UI.GIF
GerritUI.GIF

Gert van Dijk

unread,
Mar 13, 2019, 7:35:15 AM3/13/19
to Repo and Gerrit Discussion
Use any of the repository browser plugins/integrations available (e.g. Gitiles, Gitweb, GitBlit, perhaps more available?). After installation of such a plugin, you should see a (browse) link on the repositories overview page and links to refs when viewing changes.

Perhaps nice to mention that Gitiles is planned to be shipped as core plugin in the next release after 2.16 (currently for master versions, via Issue 10334).

If you're unsure which one to choose, I'd suggest to go for Gitiles; I believe it's the easiest to install, it integrates very well and receives updates for Gerrit versions very rapidly as it comes from Google as well. Install it using the plugin manager or install it manually from a build on gerrit-ci.

HTH

Luca Milanesio

unread,
Mar 13, 2019, 7:39:30 AM3/13/19
to Repo and Gerrit Discussion, Luca Milanesio, Gert van Dijk
Gitiles is included also by default with the Gerrit native packaging (see [1]) and the Docker distribution (see [2]).

The Gerrit Docker image has been downloaded over 100k times, which makes it the easiest and most popular way to get started with Gerrit.

HTH

Luca.


HTH

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ganesh Babu

unread,
Mar 13, 2019, 7:41:37 AM3/13/19
to Luca Milanesio, repo-d...@googlegroups.com, Gert van Dijk
Hi Luca,

Already i am using 2.6x version of gerrit it first contains gittiles how to be enble it with the current environment.

Regards
Ganesh babu N

Luca Milanesio

unread,
Mar 13, 2019, 7:56:48 AM3/13/19
to Ganesh Babu, Luca Milanesio, repo-d...@googlegroups.com, Gert van Dijk

On 13 Mar 2019, at 11:41, Ganesh Babu <mail2ga...@gmail.com> wrote:

Hi Luca,

Already i am using 2.6x version of gerrit it first contains gittiles how to be enble it with the current environment.

If you have installed Gerrit v2.16 with a native package or Docker, then there is nothing to do or configure, it's there already.
Otherwise you need to download the plugin from the Gerrit CI to the /plugins directory in Gerrit.

Nothing to configure, no restart needed, it gets automatically detected, loaded and used.

HTH.

Luca.

Gert van Dijk

unread,
Mar 13, 2019, 8:00:58 AM3/13/19
to Repo and Gerrit Discussion
On Wednesday, 13 March 2019 12:41:37 UTC+1, Ganesh Babu wrote:
Already i am using 2.6x version of gerrit it first contains gittiles how to be enble it with the current environment.

(I assume you meant 2.16.x.)

For Gitiles, there's not much to do after installing the plugin, really. By default, without configuration, it "should just work". So, please provide some more information:

Do you see the plugin listed in the list of plugins?
(Assuming you have the permissions to list the, go to menu Browse -> Plugins, or navigate to '/admin/plugins' in your browser, relative from the base-path of your Gerrit installation.)

If yes, what do you see on the repository listing page in the "Repository Browser" column? (menu Browse -> Repositories, or navigate to '/admin/repos' relative from the base-path of your Gerrit installation.) It should look like this:

gerrit-repo-browser.png



If no, what do you see in the Gerrit server side logs? It should list the gitiles plugin attempt to load, e.g. the following is indicated on my installation where it works fine:

[...]
[main] INFO  com.google.gerrit.server.config.PluginConfigFactory : No /var/lib/gerrit/site/etc/gitiles.config; assuming defaults
[...]
[main] INFO  com.google.gerrit.server.plugins.PluginLoader : Loaded plugin gitiles, version 623105f
[...]
[main] INFO  com.googlesource.gerrit.plugins.gitiles.HttpModule : No /var/lib/gerrit/site/etc/gitiles.config; assuming defaults
[...]

HTH

Venky Bulusu

unread,
Mar 13, 2019, 9:47:04 AM3/13/19
to Repo and Gerrit Discussion
Thank you... I have installed it and able to browse the repositories now :)

Is there any plugin to list all repositories in a TREE view in REPOSITORIES Home, instead of showing all repositories as a LIST.

Thanks.

Gert van Dijk

unread,
Mar 13, 2019, 10:28:02 AM3/13/19
to Repo and Gerrit Discussion
On Wednesday, 13 March 2019 14:47:04 UTC+1, Venky Bulusu wrote:
Thank you... I have installed it and able to browse the repositories now :)

Good to hear! :-) So, it turned out that the plugin was not installed?
 
Is there any plugin to list all repositories in a TREE view in REPOSITORIES Home, instead of showing all repositories as a LIST.

That's a different question - and not very specific - do you mean a tree/hierarchy based on ACL inheritance? Or, by their path prefix if using forward slashes in project names? The latter is filed as feature request in the issue tracker for the Gerrit project listing: Issue 10365. Note that you can also use Gitiles for viewing the repository listing. The former form is only available using the ls-projects' SSH command option --tree, I believe.

(I suggest to start a new thread on this list if you have further questions on another topic than what you started this with.)

HTH

Venky Bulusu

unread,
Mar 14, 2019, 12:56:17 AM3/14/19
to Repo and Gerrit Discussion
Yes, I installed 2.16.5 and by default this GITILES plugin did not installed. Based on your suggestion I had installed it and it worked like a charm.

Regarding TREE structure - I had posted in this group already sometime back with subject as "Projects tree structure in Gerrit UI" and dated 19th Feb 2019. 
If you can help in this also, will be very helpful

Basically I am looking for a TREE structure display of all repositories which are present in Gerrit Web UI.

Thank you.

Gert van Dijk

unread,
Mar 14, 2019, 5:13:19 AM3/14/19
to Repo and Gerrit Discussion
On Thursday, 14 March 2019 05:56:17 UTC+1, Venky Bulusu wrote:
Regarding TREE structure - I had posted in this group already sometime back with subject as "Projects tree structure in Gerrit UI" and dated 19th Feb 2019. 
If you can help in this also, will be very helpful

Please use that thread instead (that saves time for others trying to find the context for your message).

Thanks.
Reply all
Reply to author
Forward
0 new messages