Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mercurial [2017/03/09 08:40]
mercurial [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== Mercurial ======
  
 +===== Find text in Repository =====
 +
 +  hg archive -t tar - | tar xf - -O | grep my_search_text
 +
 +===== Find text in Multiple Repositories =====
 +  find . -type d -name .hg -prune -exec dirname "{}" ";" | while read repo; do echo "REPO: $repo"; hg -R $repo archive -r tip -t tar - | tar xf - -O |grep -i searched_keyword ; done | more
 +
 +===== Ignore File =====
 +
 +.hgignore:
 +
 +    syntax: glob
 +    target
 +    bin
 +    .classpath
 +    .project
 +    .settings
 +    build.properties
 +
 +{{tag>devel}}