Comments
Patch
new file mode 100644
@@ -0,0 +1,43 @@
+ $ hg init one
+ $ cd one
+
+ $ echo a > a
+ $ hg add a
+ $ hg commit -ma
+ $ echo "test test:foo" >> .hg/schemas
+ $ cd ..
+
+# Schemas are transmitted on clone
+
+ $ hg clone -q one two
+ $ cd two
+ $ cat .hg/schemas
+ test test:foo
+
+# Schemas are updated on pull
+
+ $ echo "test2 test:bar" >> ../one/.hg/schemas
+ $ hg pull -q
+ $ cat .hg/schemas
+ test test:foo
+ test2 test:bar
+
+# Existing schemas are not deleted if remote doesn't have them
+
+ $ echo "test3 test:zoo" > ../one/.hg/schemas
+ $ hg pull -q
+ $ cat .hg/schemas
+ test test:foo
+ test3 test:zoo
+ test2 test:bar
+
+# Empty schema is ok
+
+ $ rm ../one/.hg/schemas
+ $ hg pull -q
+ $ cat .hg/schemas
+ test test:foo
+ test3 test:zoo
+ test2 test:bar
+
+ $ cd ..