robustcheckout: add test for resolving symbolic revision (
bug 1287506); r?Callek
The test shows behavior is currently buggy because we don't resolve
the symbolic revision from the remote.
MozReview-Commit-ID: EdZS3Ts8jeY
--- a/hgext/robustcheckout/tests/test-revision-branch.t
+++ b/hgext/robustcheckout/tests/test-revision-branch.t
@@ -86,8 +86,32 @@ updating to it
$ cd ..
$ 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]
+
+Revision of branch from remote repo is used to resolve locally checkout out
+revision
+
+ $ cd dest
+ $ hg -q up -r 0
+ $ touch file0
+ $ hg -q commit -A -m 'default head 2'
+ $ cd ..
+
+ $ hg -R server/repo0 log -r default -T '{node}\n'
+ 5d6cdc75a09bcccf76f9339a28e1d89360c59dce
+ $ hg -R dest log -r default -T '{node}\n'
+ 6f89935a511842d2a7393cad33ef93bf793b1db2
+
+FIXME
+
+ $ hg robustcheckout http://localhost:$HGPORT/repo0 dest --branch default
+ ensuring http://localhost:$HGPORT/repo0@default is available at dest
+ (existing repository shared store: $TESTTMP/share/b8b78f0253d822e33ba652fd3d80a5c0837cfdf3/.hg)
+ (pulling to obtain default)
+ no changes found
+ 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ updated to 6f89935a511842d2a7393cad33ef93bf793b1db2