DXR will be turned off on Tuesday, December 29th. It will redirect to Searchfox.
See the announcement on Discourse.

DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
  $ . $TESTDIR/hgext/overlay/tests/helpers.sh

  $ hg init empty
  $ hg -R empty serve -d --pid-file hg.pid -p $HGPORT
  $ cat hg.pid >> $DAEMON_PIDS

  $ hg init repo0
  $ cd repo0
  $ echo 0 > foo
  $ hg -q commit -A -m initial
  $ echo 1 > foo
  $ hg commit -m 'head 1 commit 1'
  $ echo 2 > foo
  $ hg commit -m 'head 1 commit 2'
  $ echo 3 > foo
  $ hg commit -m 'head 1 commit 3'
  $ hg -q up -r 0
  $ echo 4 > foo
  $ hg commit -m 'head 2 commit 1'
  created new head
  $ echo 5 > foo
  $ hg commit -m 'head 2 commit 2'
  $ hg merge -t :local 3
  0 files updated, 1 files merged, 0 files removed, 0 files unresolved
  (branch merge, don't forget to commit)
  $ hg commit -m 'merge 3 into 5'
  $ hg log -G -T '{node|short} {desc}'
  @    775588bbd687 merge 3 into 5
  |\
  | o  ac6bba5999bc head 2 commit 2
  | |
  | o  09ef50e3bf32 head 2 commit 1
  | |
  o |  5272c3c4ef03 head 1 commit 3
  | |
  o |  38627e51950d head 1 commit 2
  | |
  o |  eb87a779cc67 head 1 commit 1
  |/
  o  af1e0a150cd4 initial
  

  $ hg serve -d --pid-file hg.pid -p $HGPORT1
  $ cat hg.pid >> $DAEMON_PIDS
  $ cd ..

  $ hg init dest

--into required

  $ cd dest
  $ hg overlay http://localhost:$HGPORT
  abort: --into must be specified
  [255]

Local repos not accepted

  $ hg overlay ../empty --into prefix
  abort: source repo cannot be local
  [255]

No revisions is an error

  $ hg overlay http://localhost:$HGPORT --into prefix
  abort: unable to determine source revisions
  [255]

Non-contiguous revision range is an error

  $ hg overlay http://localhost:$HGPORT1 'af1e0a150cd4 + ac6bba5999bc' --into prefix
  pulling http://localhost:$HGPORT1 into $TESTTMP/dest/.hg/localhost~3a* (glob)
  requesting all changes
  adding changesets
  adding manifests
  adding file changes
  added 7 changesets with 7 changes to 1 files
  new changesets af1e0a150cd4:775588bbd687 (?)
  abort: source revisions must be part of contiguous DAG range
  [255]

Multiple heads is an error

  $ hg overlay http://localhost:$HGPORT1 '::5272c3c4ef03 + ::ac6bba5999bc' --into prefix
  abort: source revisions must be part of same DAG head
  [255]

Cannot overlay merges

  $ hg overlay http://localhost:$HGPORT1 --into prefix
  abort: do not support overlaying merges: 775588bbd687
  [255]

Dest revision is invalid

  $ hg overlay --dest foo http://localhost:$HGPORT1 af1e0a150cd4::tip --into prefix
  abort: unknown revision 'foo'!
  [255]