~ubuntu-branches/ubuntu/precise/mercurial/precise-updates

« back to all changes in this revision

Viewing changes to tests/test-revset-dirstate-parents.t

  • Committer: Bazaar Package Importer
  • Author(s): Javi Merino
  • Date: 2011-03-06 16:01:58 UTC
  • mto: (28.1.2 sid) (1.1.14)
  • mto: This revision was merged to the branch mainline in revision 32.
  • Revision ID: james.westby@ubuntu.com-20110306160158-y94pzpmtd7b1xgjk
Tags: upstream-1.8
ImportĀ upstreamĀ versionĀ 1.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
  $ HGENCODING=utf-8
 
2
  $ export HGENCODING
 
3
 
 
4
  $ try() {
 
5
  >   hg debugrevspec --debug $@
 
6
  > }
 
7
 
 
8
  $ log() {
 
9
  >   hg log --template '{rev}\n' -r "$1"
 
10
  > }
 
11
 
 
12
  $ hg init repo
 
13
  $ cd repo
 
14
 
 
15
  $ try 'p1()'
 
16
  ('func', ('symbol', 'p1'), None)
 
17
  $ try 'p2()'
 
18
  ('func', ('symbol', 'p2'), None)
 
19
  $ try 'parents()'
 
20
  ('func', ('symbol', 'parents'), None)
 
21
 
 
22
null revision
 
23
  $ log 'p1()'
 
24
  $ log 'p2()'
 
25
  $ log 'parents()'
 
26
 
 
27
working dir with a single parent
 
28
  $ echo a > a
 
29
  $ hg ci -Aqm0
 
30
  $ log 'p1()'
 
31
  0
 
32
  $ log 'tag() and p1()'
 
33
  $ log 'p2()'
 
34
  $ log 'parents()'
 
35
  0
 
36
  $ log 'tag() and parents()'
 
37
 
 
38
merge in progress
 
39
  $ echo b > b
 
40
  $ hg ci -Aqm1
 
41
  $ hg up -q 0
 
42
  $ echo c > c
 
43
  $ hg ci -Aqm2
 
44
  $ hg merge -q
 
45
  $ log 'p1()'
 
46
  2
 
47
  $ log 'p2()'
 
48
  1
 
49
  $ log 'tag() and p2()'
 
50
  $ log 'parents()'
 
51
  1
 
52
  2