robustcheckout: fix test for ambiguous revision; r?Callek draft
authorGregory Szorc <gps@mozilla.com>
Mon, 18 Jul 2016 09:26:24 -0700
changeset 8929 20c7209189a591a49ca7128889854778773ae3eb
parent 8928 661f9d930c9841ea1512cbddf0292bd96d073fd2
child 8930 c5522c2e9be41e36b8747ae1482c78a04c8168f7
push id1027
push userbmo:gps@mozilla.com
push dateMon, 18 Jul 2016 17:06:18 +0000
reviewersCallek
robustcheckout: fix test for ambiguous revision; r?Callek We created the revision on the dest repo but then weren't using that repo in the test. Fortunately, this doesn't impact test behavior significantly nor did it uncover a bug. MozReview-Commit-ID: BmWa4kovRer
hgext/robustcheckout/tests/test-revision-branch.t
--- a/hgext/robustcheckout/tests/test-revision-branch.t
+++ b/hgext/robustcheckout/tests/test-revision-branch.t
@@ -80,16 +80,14 @@ updating to it
 
   $ cd dest
   $ hg branch abcdef0123456
   marked working directory as branch abcdef0123456
   $ echo nosha1 > foo
   $ hg commit -m 'ambiguous branch'
   $ cd ..
 
-  $ hg robustcheckout http://localhost:$HGPORT/repo0 ambiguous --revision abcdef0123456
-  ensuring http://localhost:$HGPORT/repo0@abcdef0123456 is available at ambiguous
-  (sharing from existing pooled repository b8b78f0253d822e33ba652fd3d80a5c0837cfdf3)
-  searching for changes
-  no changes found
+  $ hg robustcheckout http://localhost:$HGPORT/repo0 dest --revision abcdef0123456
+  ensuring http://localhost:$HGPORT/repo0@abcdef0123456 is available at dest
+  (existing repository shared store: $TESTTMP/share/b8b78f0253d822e33ba652fd3d80a5c0837cfdf3/.hg)
   abort: --revision argument is ambiguous
   (must be the first 12+ characters of a SHA-1 fragment)
   [255]