~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Alexander Belchenko
  • Date: 2012-03-29 08:34:13 UTC
  • mto: (6015.44.14 2.4)
  • mto: This revision was merged to the branch mainline in revision 6513.
  • Revision ID: bialix@ukr.net-20120329083413-d4bqqdtfn2yrxp4f
change st_dev, st_ino, st_uid, st_gid from int members to properties.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009-2012 Canonical Ltd
 
1
# Copyright (C) 2009, 2010, 2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
19
19
 
20
20
 
21
21
from bzrlib import (
22
 
    branch,
23
22
    tests,
24
23
    )
25
24
from bzrlib.tests import (
145
144
            'to', format=test_foreign.DummyForeignVcsDirFormat())
146
145
 
147
146
    def set_config_push_strict(self, value):
148
 
        br = branch.Branch.open('local')
149
 
        br.get_config_stack().set('dpush_strict', value)
 
147
        # set config var (any of bazaar.conf, locations.conf, branch.conf
 
148
        # should do)
 
149
        conf = self.tree.branch.get_config()
 
150
        conf.set_user_option('dpush_strict', value)
150
151
 
151
152
    _default_command = ['dpush', '../to']
152
153