1. aragost Trifork
  2. Untitled project
  3. projrc

Commits

Nikolaus Schueler  committed 2b6c840

Fixed part of the tests

Some tests still fail because there are problems with subpath remapping.
Subpath remapping should not be tested here, it's not related to basic projrc
functionality.

  • Participants
  • Parent commits 9098e0b
  • Branches default

Comments (0)

Files changed (3)

File projrc.py

View file
     b = multi
       line
       value!
+    <BLANKLINE>
     [foo]
     z = w
     x = xxx

File tests/test-projrc-include.t

View file
 
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "projrc = $TESTDIR/../projrc.py" >> $HGRCPATH
+  $ echo "[projrc]" >> $HGRCPATH
+  $ echo "include = *" >> $HGRCPATH
+  $ echo "servers = *" >> $HGRCPATH
+  $ echo "confirm = False" >> $HGRCPATH
 
 make initial repository
 
   [bar]
   x = Hello
   y = World
+  
   [foo]
   b = Hello
     World!

File tests/test-projrc.t

View file
 
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "projrc = $TESTDIR/../projrc.py" >> $HGRCPATH
+  $ echo "[projrc]" >> $HGRCPATH
+  $ echo "include = *" >> $HGRCPATH
+  $ echo "servers = *" >> $HGRCPATH
+  $ echo "confirm = False" >> $HGRCPATH
 
 test clone with no projrc
 
   $ cd ..
   $ hg clone a b
   updating to branch default
+  projrc settings file updated and applied
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd b
   $ hg showconfig extensions
   $ echo "relink =" >> ../a/.hg/projrc
   $ hg pull
   pulling from $TESTTMP/a
+  projrc settings file updated and applied
   searching for changes
   no changes found
+  [1]
   $ hg showconfig extensions
   extensions.children=
   extensions.relink=
   pulling from $TESTTMP/a
   searching for changes
   no changes found
+  [1]
   $ hg showconfig extensions
   extensions.projrc=*/projrc.py (glob)
 
   $ cd ../b
   $ hg pull http://localhost:$HGPORT/
   pulling from http://localhost:$HGPORT/
+  projrc settings file updated and applied
   searching for changes
   no changes found
+  [1]
   $ cat .hg/projrc
   #\ projrc encoding check, line must begin with '#\ '
   [test]
   not saving retrieved projrc file: parse error at 'this is broken' on projrc:1
   searching for changes
   no changes found
+  [1]
 
 kill hg serve