Changeset View
Changeset View
Standalone View
Standalone View
tests/test-identify.t
#require serve | #require serve | ||||
#if no-outer-repo | #if no-outer-repo | ||||
no repo | no repo | ||||
$ hg id | $ hg id | ||||
abort: there is no Mercurial repository here (.hg not found) | abort: there is no Mercurial repository here (.hg not found) | ||||
[255] | [10] | ||||
#endif | #endif | ||||
create repo | create repo | ||||
$ hg init test | $ hg init test | ||||
$ cd test | $ cd test | ||||
$ echo a > a | $ echo a > a | ||||
▲ Show 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | with remote http repo | ||||
$ cat hg.pid >> $DAEMON_PIDS | $ cat hg.pid >> $DAEMON_PIDS | ||||
$ hg id http://localhost:$HGPORT1/ | $ hg id http://localhost:$HGPORT1/ | ||||
cb9a9f314b8b | cb9a9f314b8b | ||||
remote with rev number? | remote with rev number? | ||||
$ hg id -n http://localhost:$HGPORT1/ | $ hg id -n http://localhost:$HGPORT1/ | ||||
abort: can't query remote revision number, branch, or tags | abort: can't query remote revision number, branch, or tags | ||||
[255] | [10] | ||||
remote with tags? | remote with tags? | ||||
$ hg id -t http://localhost:$HGPORT1/ | $ hg id -t http://localhost:$HGPORT1/ | ||||
abort: can't query remote revision number, branch, or tags | abort: can't query remote revision number, branch, or tags | ||||
[255] | [10] | ||||
remote with branch? | remote with branch? | ||||
$ hg id -b http://localhost:$HGPORT1/ | $ hg id -b http://localhost:$HGPORT1/ | ||||
abort: can't query remote revision number, branch, or tags | abort: can't query remote revision number, branch, or tags | ||||
[255] | [10] | ||||
test bookmark support | test bookmark support | ||||
$ hg bookmark Y | $ hg bookmark Y | ||||
$ hg bookmark Z | $ hg bookmark Z | ||||
$ hg bookmarks | $ hg bookmarks | ||||
Y 0:cb9a9f314b8b | Y 0:cb9a9f314b8b | ||||
* Z 0:cb9a9f314b8b | * Z 0:cb9a9f314b8b | ||||
Show All 37 Lines |