tests/test-pull-update.t
changeset 46759 ce42fe36d581
parent 45840 527ce85c2e60
--- a/tests/test-pull-update.t	Fri Mar 12 09:15:40 2021 -0800
+++ b/tests/test-pull-update.t	Wed Mar 10 16:35:17 2021 +0100
@@ -246,3 +246,25 @@
      active-before-pull        3:483b76ad4309
 
   $ cd ..
+
+Issue622: hg init && hg pull -u URL doesn't checkout default branch
+
+  $ hg init test
+  $ cd test
+  $ echo foo>foo
+  $ hg addremove
+  adding foo
+  $ hg commit -m 1
+  $ cd ..
+
+  $ hg init empty
+  $ cd empty
+  $ hg pull -u ../test
+  pulling from ../test
+  requesting all changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 1 changesets with 1 changes to 1 files
+  new changesets 340e38bdcde4
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved