changeset 7815:bcd364b247ba

convert: change hg.saverev default to False This needlessly breaks changeset identifiers for the common case (cleaning history), which is sad.
author Matt Mackall <mpm@selenic.com>
date Mon, 02 Mar 2009 19:19:12 -0600
parents 4421abf8c85d
children f420eafe59cd
files hgext/convert/__init__.py hgext/convert/hg.py tests/test-convert-hg-startrev.out tests/test-convert.out
diffstat 4 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/__init__.py	Mon Mar 02 19:19:09 2009 -0600
+++ b/hgext/convert/__init__.py	Mon Mar 02 19:19:12 2009 -0600
@@ -90,8 +90,8 @@
         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
 
--- a/hgext/convert/hg.py	Mon Mar 02 19:19:09 2009 -0600
+++ b/hgext/convert/hg.py	Mon Mar 02 19:19:12 2009 -0600
@@ -193,7 +193,7 @@
         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
--- a/tests/test-convert-hg-startrev.out	Mon Mar 02 19:19:09 2009 -0600
+++ b/tests/test-convert-hg-startrev.out	Mon Mar 02 19:19:12 2009 -0600
@@ -48,18 +48,18 @@
 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
--- a/tests/test-convert.out	Mon Mar 02 19:19:09 2009 -0600
+++ b/tests/test-convert.out	Mon Mar 02 19:19:12 2009 -0600
@@ -76,8 +76,8 @@
         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