Commits

Matt Mackall  committed bcd364b

convert: change hg.saverev default to False

This needlessly breaks changeset identifiers for the common case (cleaning
history), which is sad.

  • Participants
  • Parent commits 4421abf

Comments (0)

Files changed (4)

File hgext/convert/__init__.py

         ignore integrity errors when reading. Use it to fix Mercurial
         repositories with missing revlogs, by converting from and to
         Mercurial.
-    --config convert.hg.saverev=True          (boolean)
-        allow target to preserve source revision ID
+    --config convert.hg.saverev=False          (boolean)
+        store original revision ID in changeset (forces target IDs to change)
     --config convert.hg.startrev=0            (hg revision identifier)
         convert start revision and its descendants
 

File hgext/convert/hg.py

         converter_source.__init__(self, ui, path, rev)
         self.ignoreerrors = ui.configbool('convert', 'hg.ignoreerrors', False)
         self.ignored = {}
-        self.saverev = ui.configbool('convert', 'hg.saverev', True)
+        self.saverev = ui.configbool('convert', 'hg.saverev', False)
         try:
             self.repo = hg.repository(self.ui, path)
             # try to provoke an exception if this isn't really a hg

File tests/test-convert-hg-startrev.out

 o  0 "1: add c" files: a b c
 
 % check copy preservation
-changeset:   2:cb71f8e79b45
+changeset:   2:d67b1d48a835
 user:        test
 date:        Thu Jan 01 00:00:04 1970 +0000
 summary:     4: merge 2 and 3, copy d from b
 
-changeset:   1:3334790240a8
+changeset:   1:462c431cf47d
 user:        test
 date:        Thu Jan 01 00:00:02 1970 +0000
 summary:     2: copy e from a, change b
 
 % check copy removal on missing parent
-changeset:   2:cb71f8e79b45
+changeset:   2:d67b1d48a835
 user:        test
 date:        Thu Jan 01 00:00:04 1970 +0000
 summary:     4: merge 2 and 3, copy d from b

File tests/test-convert.out

         ignore integrity errors when reading. Use it to fix Mercurial
         repositories with missing revlogs, by converting from and to
         Mercurial.
-    --config convert.hg.saverev=True          (boolean)
-        allow target to preserve source revision ID
+    --config convert.hg.saverev=False          (boolean)
+        store original revision ID in changeset (forces target IDs to change)
     --config convert.hg.startrev=0            (hg revision identifier)
         convert start revision and its descendants