diff tests/test-default-push.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 c4f45ce85351
children 10917b062adf
line wrap: on
line diff
--- a/tests/test-default-push.t	Wed Oct 08 07:45:51 2014 -0400
+++ b/tests/test-default-push.t	Mon Oct 06 16:35:02 2014 -0400
@@ -37,6 +37,7 @@
 
 Push should push to 'default-push' when set:
 
+  $ echo '[paths]' >> b/.hg/hgrc
   $ echo 'default-push = ../c' >> b/.hg/hgrc
   $ hg --cwd b push
   pushing to $TESTTMP/c (glob)
@@ -45,4 +46,3 @@
   adding manifests
   adding file changes
   added 1 changesets with 1 changes to 1 files
-