~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_revno.py

  • Committer: Ian Clatworthy
  • Date: 2007-11-27 21:17:06 UTC
  • mto: (3054.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3055.
  • Revision ID: ian.clatworthy@internode.on.net-20071127211706-871zcqst0yi5tcvl
make fixes suggested by proof-readers

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 by Canonical Ltd
 
1
# Copyright (C) 2005 Canonical Ltd
2
2
# -*- coding: utf-8 -*-
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
37
37
        self.assertEquals(int(bzr('revno')), 0)
38
38
 
39
39
        open('foo', 'wb').write('foo\n')
40
 
        bzr('add', 'foo')
41
 
        bzr('commit', '-m', 'foo')
 
40
        bzr('add foo')
 
41
        bzr('commit -m foo')
42
42
        self.assertEquals(int(bzr('revno')), 1)
43
43
 
44
44
        os.mkdir('baz')
45
 
        bzr('add', 'baz')
46
 
        bzr('commit', '-m', 'baz')
 
45
        bzr('add baz')
 
46
        bzr('commit -m baz')
47
47
        self.assertEquals(int(bzr('revno')), 2)
48
48
 
49
49
        os.chdir('..')
50
 
        self.assertEquals(int(bzr('revno', 'a')), 2)
51
 
        self.assertEquals(int(bzr('revno', 'a/baz')), 2)
 
50
        self.assertEquals(int(bzr('revno a')), 2)
 
51
        self.assertEquals(int(bzr('revno a/baz')), 2)
52
52
 
53
53