Switching VCS log tab between git & hg repos in same project
已回答
I have a project with multiple modules, some of which use hg, and some of which use git.
How can I switch the VCS Log tab between repositories?
Right now, I see logs for my hg repos intermingled, but I can't seem to find out how to switch to showing my git logs.
Also, I'd prefer to only see logs for one hg repo at a time.
Basically, all I need is a drop-down to select the repository whose logs I want to view, but I can't seem to find one.
I'm using 2018.2 RC 2.
请先登录再写评论。
The Log tab shows history of all Git and HG repositories registered in the project together by default. If some repository is missing - make sure it is registered in Settings - Version control, and check logs for errors.
> Also, I'd prefer to only see logs for one hg repo at a time. I need is a drop-down to select the repository
Use the Path filter to select which repositories should be shown and which should not.
Moreover, in 2018.2 it is possible to open several separate Log tabs with own set of filters.
Thanks. I had a problem with IntelliJ's caching of VCS config info when switching between workspaces for different Git branches. Removing the Git root from IntelliJ, then re-adding it fixed the issue, and the Log tab started working again.
I also like to view the log for one repo at a time, I like that you can create a new Log tab in PhpStorm 2018, but is there a way to customize the name of the tabs, instead of trying to guess which repo is Log and which is Log: 1?
There is no option to rename log tabs in the UI currently. https://youtrack.jetbrains.com/issue/IDEA-191960
However, since 2019.1 additional Log tabs are named after the filters they have selected. A newly created tab is called Log: all. Consider updating to a newer version.