Skip to content
Snippets Groups Projects
  1. Jan 09, 2016
  2. May 17, 2017
    • Jun Wu's avatar
      drawdag: provide filenode for its dummy filectx · 911057981ba4
      Jun Wu authored
      basefctx has filenode, which will be used in a future fast path of skipping
      flag processor during repo._filecommit.
      
      This patch adds filenode to drawdag's faked filectx so we don't need to use
      hasattr in localrepo.py.
      911057981ba4
  3. Feb 11, 2017
  4. Mar 27, 2017
  5. Nov 09, 2016
    • Jun Wu's avatar
      drawdag: update test repos by drawing the changelog DAG in ASCII · a31634336471
      Jun Wu authored
      Currently, we have "debugbuilddag" which is a powerful tool to build test
      cases but not intuitive. We may end up running "hg log" in the test to make
      the test more readable.
      
      This patch adds a "drawdag" extension with a "debugdrawdag" command for
      similar testing purpose. Unlike the cryptic "debugbuilddag" command, it
      reads an ASCII graph that is intuitive to human, so the test case can be
      more readable.
      
      Unlike "debugbuilddag", "drawdag" does not require an empty repo. So it can
      be used to add new changesets to an existing repo.
      
      Since the "drawdag" logic is not that trivial and only makes sense for
      testing purpose, the extension is added to the "tests" directory, to make
      the core logic clean. If we find it useful (for example, to demonstrate
      cases and help user understand some cases) and want to ship it by default in
      the future, we can move it to a ship-by-default "debugdrawdag" at that time.
      a31634336471
Loading