Home / Function/ isInMercurialRepository() — react Function Reference

isInMercurialRepository() — react Function Reference

Architecture documentation for the isInMercurialRepository() function in test.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  0f9e7a79_0654_e673_bb6d_4c0355cbd894["isInMercurialRepository()"]
  eae4798f_c938_bf53_7a48_4ff868613933["test.js"]
  0f9e7a79_0654_e673_bb6d_4c0355cbd894 -->|defined in| eae4798f_c938_bf53_7a48_4ff868613933
  style 0f9e7a79_0654_e673_bb6d_4c0355cbd894 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fixtures/flight/scripts/test.js lines 31–38

function isInMercurialRepository() {
  try {
    execSync('hg --cwd . root', {stdio: 'ignore'});
    return true;
  } catch (e) {
    return false;
  }
}

Domain

Subdomains

Frequently Asked Questions

What does isInMercurialRepository() do?
isInMercurialRepository() is a function in the react codebase, defined in fixtures/flight/scripts/test.js.
Where is isInMercurialRepository() defined?
isInMercurialRepository() is defined in fixtures/flight/scripts/test.js at line 31.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free