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

login
register
mail settings
Submitter mercurial-bugs@selenic.com
Date Feb. 4, 2013, 7:02 p.m.
Message ID <bug-3805-285@http.bz.selenic.com/>
Download mbox | patch
Permalink /patch/802/
State Not Applicable
Headers show

Comments

mercurial-bugs@selenic.com - Feb. 4, 2013, 7:02 p.m.
http://bz.selenic.com/show_bug.cgi?id=3805

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

as highlighted by this test patch

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@193e9254ce7e: no node!
+  [255]
+  $ hg outgoing
+  comparing with $TESTTMP/tmpe/repo-issue3805
+  searching for changes
+  no changes found
+  [1]
+