Skip to content

Commit fe1acd4

Browse files
committed
Updated def_branch var name to default_branch for consistency/clarity
1 parent b82671f commit fe1acd4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mbed/mbed.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def _scm(cls):
254254
@staticclass
255255
class Bld(object):
256256
name = 'bld'
257-
def_branch = 'default'
257+
default_branch = 'default'
258258

259259
def isurl(url):
260260
m_url = re.match(regex_url_ref, url.strip().replace('\\', '/'))
@@ -374,7 +374,7 @@ def getbranch():
374374
@staticclass
375375
class Hg(object):
376376
name = 'hg'
377-
def_branch = 'default'
377+
default_branch = 'default'
378378
ignore_file = os.path.join('.hg', 'hgignore')
379379

380380
def isurl(url):
@@ -575,7 +575,7 @@ def unignore(dest):
575575
@staticclass
576576
class Git(object):
577577
name = 'git'
578-
def_branch = 'master'
578+
default_branch = 'master'
579579
ignore_file = os.path.join('.git', 'info', 'exclude')
580580

581581
def isurl(url):
@@ -1082,7 +1082,7 @@ def clone(self, url, path, rev=None, depth=None, protocol=None, **kwargs):
10821082
scm.cleanup()
10831083
info("Update cached copy from remote repository")
10841084
if not rev:
1085-
rev = scm.def_branch
1085+
rev = scm.default_branch
10861086
scm.update(rev, True)
10871087
main = False
10881088
except (ProcessException, IOError):

0 commit comments

Comments
 (0)