Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial repo search

Is there a command that searches a specified string over a Mercurial repository and displays revisions where it is found?

If not, are there any examples of how to implement it?

like image 746
utapyngo Avatar asked Aug 29 '11 15:08

utapyngo


People also ask

What is a Mercurial repository?

Strictly speaking, the term repository refers to the directory named . hg (dot hg) in the repository root directory. The repository root directory is the parent directory of the . hg directory. Mercurial stores its internal data structures – the metadata – inside that .

Do people still use Mercurial?

It's also referred to as a revision control system or Mercurial source control. It is used by software development teams to manage and track changes across projects. It launched in 2005. But its popularity has since faded.

How do you pull in Mercurial?

Pull changes from the Mercurial upstream (Pull)From the main menu, choose Hg | Mercurial | Pull. Specify the required URL address of the source remote repository.


1 Answers

hg grep <string> will search your entire repository history for string.

like image 187
ataylor Avatar answered Dec 13 '22 05:12

ataylor