Mercurial > hg
annotate tests/test-alias @ 7239:135003a470f3
Bookmarks: Add the bookmarks extension
Mercurial bookmarks are local moveable pointers to changesets.
If you commit a changeset that is based on a changeset that has a
bookmark on it, the bookmark is forwarded to the new changeset.
Thanks to Ian Dees, Ronny Pfannschmidt for their patches,
Thanks to ronny, tonfa, prianha, mpm, #mercurial for their comments
and their support that helped me to get things done.
author | David Soria Parra <dsp@php.net> |
---|---|
date | Wed, 22 Oct 2008 21:53:27 +0200 |
parents | 5db730475d6d |
children | a0104303f400 |
rev | line source |
---|---|
4801 | 1 #!/bin/sh |
2 | |
5523
5db730475d6d
tests/*: avoid losing the original settings from $HGRCPATH
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4801
diff
changeset
|
3 cat >> $HGRCPATH <<EOF |
4801 | 4 [extensions] |
5 alias= | |
6 | |
7 [alias] | |
8 myinit = init | |
9 cleanstatus = status -c | |
10 unknown = bargle | |
11 ambiguous = s | |
12 recursive = recursive | |
13 EOF | |
14 | |
15 echo '% basic' | |
16 hg myinit alias | |
17 | |
18 echo '% unknown' | |
19 hg unknown | |
20 | |
21 echo '% ambiguous' | |
22 hg ambiguous | |
23 | |
24 echo '% recursive' | |
25 hg recursive | |
26 | |
27 cd alias | |
28 echo foo > foo | |
29 hg ci -Amfoo | |
30 | |
31 echo '% with opts' | |
32 hg cleanst |