D8231: commit: print debug message when clearing dirstate and wdir clean

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri Mar 6 08:23:52 UTC 2020


Closed by commit rHG6306baa7d19a: commit: print debug message when clearing dirstate and wdir clean (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8231?vs=20511&id=20538

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8231/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8231

AFFECTED FILES
  mercurial/localrepo.py
  tests/test-graft.t

CHANGE DETAILS

diff --git a/tests/test-graft.t b/tests/test-graft.t
--- a/tests/test-graft.t
+++ b/tests/test-graft.t
@@ -758,6 +758,7 @@
    branchmerge: True, force: True, partial: False
    ancestor: b592ea63bb0c, local: 7e61b508e709+, remote: 7a4785234d87
   starting 4 threads for background file closing (?)
+  nothing to commit, clearing merge state
   note: graft of 13:7a4785234d87 created no changes to commit
   $ hg log -r 'destination(13)'
 All copies of a cset
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -2956,6 +2956,7 @@
                 or self.ui.configbool(b'ui', b'allowemptycommit')
             )
             if not allowemptycommit:
+                self.ui.debug(b'nothing to commit, clearing merge state\n')
                 ms.reset()
                 return None
 



To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list