/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/config.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    config,
23
23
    )
24
24
 
 
25
 
25
26
class GitBranchConfig(config.BranchConfig):
26
27
    """BranchConfig that uses locations.conf in place of branch.conf"""
27
28
 
34
35
        return "<%s of %r>" % (self.__class__.__name__, self.branch)
35
36
 
36
37
    def set_user_option(self, name, value, store=config.STORE_BRANCH,
37
 
            warn_masked=False):
 
38
                        warn_masked=False):
38
39
        """Force local to True"""
39
 
        config.BranchConfig.set_user_option(self, name, value,
40
 
            store=config.STORE_LOCATION, warn_masked=warn_masked)
 
40
        config.BranchConfig.set_user_option(
 
41
            self, name, value, store=config.STORE_LOCATION,
 
42
            warn_masked=warn_masked)
41
43
 
42
44
    def _get_user_id(self):
43
45
        # TODO: Read from ~/.gitconfig