diff tests/test-subrepo-recursion.t @ 12274:c02e1ed3d407

incoming: recurse into subrepositories with --subrepos/-S flag As with push and outgoing, the optional source path is ignored for the subrepositories. Fixing this is Issue1852.
author Martin Geisler <mg@lazybytes.net>
date Mon, 13 Sep 2010 13:09:31 +0200
parents 42ecd56399d7
children 88a42bf5fa46
line wrap: on
line diff
--- a/tests/test-subrepo-recursion.t	Mon Sep 13 13:09:30 2010 +0200
+++ b/tests/test-subrepo-recursion.t	Mon Sep 13 13:09:31 2010 +0200
@@ -287,3 +287,33 @@
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     3-4-2
   
+
+Switch to original repo and setup default path:
+
+  $ cd ../repo
+  $ echo '[paths]' >> .hg/hgrc
+  $ echo 'default = ../repo2' >> .hg/hgrc
+
+Test incoming:
+
+  $ hg incoming -S
+  comparing with .*/test-subrepo-recursion.t/repo2
+  searching for changes
+  changeset:   3:2655b8ecc4ee
+  tag:         tip
+  user:        test
+  date:        Thu Jan 01 00:00:00 1970 +0000
+  summary:     3-4-2
+  
+  comparing with .*/test-subrepo-recursion.t/repo2/foo
+  searching for changes
+  changeset:   4:e96193d6cb36
+  tag:         tip
+  user:        test
+  date:        Thu Jan 01 00:00:00 1970 +0000
+  summary:     3-4-2
+  
+  $ hg incoming -S --bundle incoming.hg
+  abort: cannot combine --bundle and --subrepos
+
+  $ exit 0