Merge with upstream
authorThomas Arendsen Hein <thomas@intevation.de>
Tue, 07 Nov 2006 22:18:34 +0100
changeset 3622 535da78ae47b
parent 3621 7d3d603e7df9 (current diff)
parent 3619 8c4fd0de5de8 (diff)
child 3623 44247ecc2965
Merge with upstream
--- a/mercurial/commands.py	Tue Nov 07 21:43:19 2006 +0100
+++ b/mercurial/commands.py	Tue Nov 07 22:18:34 2006 +0100
@@ -324,12 +324,13 @@
 
         parents = log.parentrevs(rev)
         if not self.ui.debugflag:
-            parents = [p for p in parents if p != nullrev]
-            if len(parents) == 1 and parents[0] == rev-1:
-                parents = []
+            if parents[1] == nullrev:
+                if parents[0] >= rev - 1:
+                    parents = []
+                else:
+                    parents = [parents[0]]
         parents = [(p, hexfunc(log.node(p))) for p in parents]
 
-
         self.ui.write(_("changeset:   %d:%s\n") % (rev, hexfunc(changenode)))
 
         if branch:
--- a/mercurial/merge.py	Tue Nov 07 21:43:19 2006 +0100
+++ b/mercurial/merge.py	Tue Nov 07 22:18:34 2006 +0100
@@ -65,8 +65,8 @@
     for f in wctx.unknown():
         if f in man:
             if mctx.filectx(f).cmp(wctx.filectx(f).data()):
-                raise util.Abort(_("'%s' already exists in the working"
-                                   " dir and differs from remote") % f)
+                raise util.Abort(_("untracked local file '%s' differs"\
+                                   " from remote version") % f)
 
 def forgetremoved(wctx, mctx):
     """
--- a/tests/test-globalopts.out	Tue Nov 07 21:43:19 2006 +0100
+++ b/tests/test-globalopts.out	Tue Nov 07 22:18:34 2006 +0100
@@ -27,6 +27,7 @@
 %% abbrev of long option
 changeset:   1:b6c483daf290
 tag:         tip
+parent:      -1:000000000000
 user:        test
 date:        Thu Jan 01 00:00:01 1970 +0000
 summary:     b
@@ -49,6 +50,7 @@
 %% -v/--verbose
 changeset:   1:b6c483daf290
 tag:         tip
+parent:      -1:000000000000
 user:        test
 date:        Thu Jan 01 00:00:01 1970 +0000
 files:       b
--- a/tests/test-merge1.out	Tue Nov 07 21:43:19 2006 +0100
+++ b/tests/test-merge1.out	Tue Nov 07 22:18:34 2006 +0100
@@ -10,7 +10,7 @@
 M b
 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
 %% merge should fail
-abort: 'b' already exists in the working dir and differs from remote
+abort: untracked local file 'b' differs from remote version
 %% merge of b expected
 merging for b
 merging b
--- a/tests/test-unrelated-pull.out	Tue Nov 07 21:43:19 2006 +0100
+++ b/tests/test-unrelated-pull.out	Tue Nov 07 22:18:34 2006 +0100
@@ -11,6 +11,7 @@
 (run 'hg heads' to see heads, 'hg merge' to merge)
 changeset:   1:bdcee5d51fa6
 tag:         tip
+parent:      -1:000000000000
 user:        a
 date:        Mon Jan 12 13:46:40 1970 +0000
 summary:     a