[PATCH 2 of 2 evolve-ext] test-inhibit: simplify push destinations for Windows

Matt Harbison mharbison72 at gmail.com
Sat Aug 1 21:19:54 CDT 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1438481786 14400
#      Sat Aug 01 22:16:26 2015 -0400
# Node ID 1a0602f892145247a042322b553b1be19156b8d6
# Parent  b67aa51e6ed5b945b6bc5ff7c6cb6d28d1135e75
test-inhibit: simplify push destinations for Windows

This was aborting because $pwd is expanding to 'C:/path/to/tests':

    -  pushing to file://$TESTTMP/inhibit2
    -  abort: hidden revision '003a4735afde'!
    -  (use --hidden to access hidden revisions)
    +  abort: file:// URLs can only refer to localhost

diff --git a/tests/test-inhibit.t b/tests/test-inhibit.t
--- a/tests/test-inhibit.t
+++ b/tests/test-inhibit.t
@@ -747,15 +747,15 @@
   71eb4f100663 tip
 
 Hidden commits cannot be pushed without --hidden
-  $ hg push -r 003a4735afde file://$pwd/inhibit2
-  pushing to file://$TESTTMP/inhibit2
+  $ hg push -r 003a4735afde $pwd/inhibit2
+  pushing to $TESTTMP/inhibit2
   abort: hidden revision '003a4735afde'!
   (use --hidden to access hidden revisions)
   [255]
 
 Visible commits can still be pushed
-  $ hg push -r 71eb4f100663 file://$pwd/inhibit2
-  pushing to file://$TESTTMP/inhibit2
+  $ hg push -r 71eb4f100663 $pwd/inhibit2
+  pushing to $TESTTMP/inhibit2
   searching for changes
   adding changesets
   adding manifests


More information about the Mercurial-devel mailing list