[Bug 3805] New: hg incoming crash if locally known is filtered remotely.

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Mon Feb 4 13:02:47 CST 2013


http://bz.selenic.com/show_bug.cgi?id=3805

          Priority: normal
            Bug ID: 3805
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: hg incoming crash if locally known is filtered
                    remotely.
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: pierre-yves.david at logilab.fr
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.5-rc
         Component: Mercurial
           Product: Mercurial

as highlighted by this test patch

diff --git a/tests/test-obsolete.t b/tests/test-obsolete.t
--- a/tests/test-obsolete.t
+++ b/tests/test-obsolete.t
@@ -774,6 +774,41 @@ Checking _enable=False warning if obsole
   parent:      7:50c51b361e60
   user:        test
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     add celestine

+  $ echo '[extensions]' >> $HGRCPATH
+  $ echo "obs=${TESTTMP}/obs.py" >> $HGRCPATH
+
 #endif
+
+Test incoming/oucoming with changeset obsolete remotly, known locally
+
+  $ hg init repo-issue3805
+  $ cd repo-issue3805
+  $ echo "foo" > foo
+  $ hg ci -Am "A"
+  adding foo
+  $ hg log -G
+  @  changeset:   0:193e9254ce7e
+     tag:         tip
+     user:        test
+     date:        Thu Jan 01 00:00:00 1970 +0000
+     summary:     A
+  
+  $ hg clone . ../other-issue3805
+  updating to branch default
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ echo "bar" >> foo
+  $ hg ci --amend
+  $ cd ../other-issue3805
+  $ hg incoming --traceback
+  comparing with $TESTTMP/tmpe/repo-issue3805
+  searching for changes
+  abort: 00changelog.i at 193e9254ce7e: no node!
+  [255]
+  $ hg outgoing
+  comparing with $TESTTMP/tmpe/repo-issue3805
+  searching for changes
+  no changes found
+  [1]
+

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list