diff tests/test-url-rev.t @ 22837:2be7d5ebd4d0

config: use the same hgrc for a cloned repo as for an uninitted repo This just copies the same local sample hgrc, except it sets the default path to the repo it was cloned from. This is cut-and-paste from the local sample hgrc, but I think it's acceptable, since the two pieces of code are right next to each other and they're small. There is danger of them going out of synch, but it would complicate the code too much to get rid of this C&P. I also add ui as an import to hg.py, but with demandimport, this should not be a noticeable performance hit.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Mon, 06 Oct 2014 16:35:02 -0400
parents 82b2ba904e3e
children 392ed77879c3
line wrap: on
line diff
--- a/tests/test-url-rev.t	Wed Oct 08 07:45:51 2014 -0400
+++ b/tests/test-url-rev.t	Mon Oct 06 16:35:02 2014 -0400
@@ -41,16 +41,20 @@
   summary:     change a
   
   $ cat clone/.hg/hgrc
-  # You may want to set your username here if it is not set
-  # globally, or this repository requires a different
-  # username from your usual configuration. If you want to
-  # set something for all of your repositories on this
-  # computer, try running the command
-  # 'hg config --edit --global'
-  # [ui]
+  # example repository config (see "hg help config" for more info)
+  [paths]
+  default = $TESTTMP/repo#foo
+  
+  # path aliases to other clones of this repo in URLs or filesystem paths
+  # (see "hg help config.paths" for more info)
+  #
+  # default-push = ssh://jdoe@example.net/hg/jdoes-fork
+  # my-fork      = ssh://jdoe@example.net/hg/jdoes-fork
+  # my-clone     = /home/jdoe/jdoes-clone
+  
+  [ui]
+  # name and email (local to this repository, optional), e.g.
   # username = Jane Doe <jdoe@example.com>
-  [paths]
-  default = $TESTTMP/repo#foo (glob)
 
 Changing original repo: