mercurial/dirstate.py
changeset 26749 4a82cb5c1dc8
parent 26747 beff0b2481b3
child 26781 1aee2ab0f902
--- a/mercurial/dirstate.py	Sat Oct 17 01:15:34 2015 +0900
+++ b/mercurial/dirstate.py	Sat Oct 17 01:15:34 2015 +0900
@@ -661,6 +661,11 @@
 
         filename = self._filename
         if tr is False: # not explicitly specified
+            if (self._ui.configbool('devel', 'all-warnings')
+                or self.ui.configbool('devel', 'check-dirstate-write')):
+                self._ui.develwarn('use dirstate.write with '
+                                   'repo.currenttransaction()')
+
             if self._opener.lexists(self._pendingfilename):
                 # if pending file already exists, in-memory changes
                 # should be written into it, because it has priority