shell - Finding the most edited files in all history of a Mercurial repository -


from command line, how can list of edited files in history of mercurial repository?

hg log --template "{files % '{file}\n'}"| sort | uniq -c | sort -rg | head -10 
  • you have use same chained pipes, answer "finding changed files in git" question
  • you have replace generation of list part mercurial-specific
  • something on history in mercurial, in git, log command
  • in order change format of output log, have use templating
  • templating help contains in samples section first example "format lists" template, have adopt removing bells , whistles getting newline-separated list

ps: i'm out of ideas, how sort|uniq|head in windows-world, except installing gow (because i hate cygwin)

bonus answer

for "most changed chunks" (chunks, not lines of code) hg-core be

hg diff -r "all()" --stat 

Comments