Mercurial - user list

Is there a way to list chapters created by a specific user?

With the hg heads command, I cannot filter the user.

While hg log I can filter the user, but I can’t figure out how to list only the last set of changes in the branch.

UPDATE :

Thanks to Tim Henigan for the answer below. I have come to the following conclusion.

 log -r "head() and not closed() and user('<username>')" 

In my particular case, I only wanted the last chapters in reverse order, so I made an alias for this function.

 [alias] myhist = log -r "reverse(head() and not closed() and user('<username>'))" --template "{rev}: {branches}\n" -l 10 

so calling hg myhist gives me up to the last ten sets of changes that are the last in their branch. I use the --template option to see only the version number and branch name to get a brief overview of my recent activity.

+6
source share
1 answer

If you are using a newer version of Mercurial, you can build this query using revsets :

hg log -r "heads(all()) and not closed() and user('<user>')"

+9
source

Source: https://habr.com/ru/post/890922/


All Articles