[Bug 5891] New: Subrepo remapping doesn't appear to work

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Fri May 18 15:08:44 UTC 2018


https://bz.mercurial-scm.org/show_bug.cgi?id=5891

            Bug ID: 5891
           Summary: Subrepo remapping doesn't appear to work
           Product: Mercurial
           Version: 4.6
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: matt_harbison at yahoo.com
                CC: mercurial-devel at mercurial-scm.org

It looks like the only test coverage is to call `hg debugsub` in
test-subrepo-paths.t, which doesn't actually instantiate the subrepo in the
remapped location.  If the subrepo move below is commented out, the failures go
away, even though `hg debugsub` seems to show the source has been properly
remapped.

  $ hg init outer2
  $ cd outer2

  $ hg init sub
  $ touch sub/x.txt
  $ echo 'sub = sub' > .hgsub
  $ hg add .hgsub
  $ hg ci -ASm 'add subrepo'
  adding sub/x.txt
  committing subrepository sub
  $ touch foo.txt
  $ hg ci -Aqm 'foo'
  $ hg cat sub/x.txt -r 0

  $ hg debugsub
  path sub
   source   sub
   revision 6095723e3ce9e706158f4afba2f6cd5279d2940a

  $ mv sub $TESTTMP/sub
  $ cat > .hg/hgrc <<EOF
  > [subpaths]
  > sub = $TESTTMP/sub
  > EOF

  $ hg cat sub/x.txt -r 0
  skipping missing subrepository: sub
  [1]

  $ hg debugsub
  path sub
   source   $TESTTMP/sub
   revision 6095723e3ce9e706158f4afba2f6cd5279d2940a

  $ hg verify -q
  subrepo 'sub' not found in revision 6353828cd40f

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list