[Bug 5677] New: subrepo change can no longer be amended

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Tue Sep 12 13:26:50 UTC 2017


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

            Bug ID: 5677
           Summary: subrepo change can no longer be amended
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: normal
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: yuya at tcha.org
                CC: mercurial-devel at mercurial-scm.org

Since e8a7c1a0565a "cmdutil: remove the redundant commit during amend",
subrepo change is no longer be detected so .hgsubstate can't be amended.

  $ hg init t
  $ cd t
  $ echo a > a
  $ hg ci -Am0
  adding a
  $ echo s = s > .hgsub
  $ hg add .hgsub
  $ hg init s
  $ echo a > s/a
  $ hg ci -R s -Am0
  adding a
  $ hg ci -m1

  $ hg up -R s null
  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
  $ hg ci --amend -m1
  nothing changed
  [1]

BROKEN: .hgsubstate should be amended

Perhaps we'll need to extract the preprocess of localrepository.commit().

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


More information about the Mercurial-devel mailing list