mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
save: always write the full remote name
This commit is contained in:
parent
f57b4b4008
commit
04d2a4729a
@ -208,7 +208,6 @@ def saveremotenames(repo, remote, branches, bookmarks):
|
||||
bfile = repo.join('remotenames')
|
||||
olddata = []
|
||||
existed = os.path.exists(bfile)
|
||||
alias_default = repo.ui.configbool('remotenames', 'alias.default')
|
||||
if existed:
|
||||
f = open(bfile)
|
||||
olddata = [l for l in f
|
||||
@ -219,8 +218,6 @@ def saveremotenames(repo, remote, branches, bookmarks):
|
||||
for branch, nodes in branches.iteritems():
|
||||
for n in nodes:
|
||||
f.write('%s %s/%s\n' % (hex(n), remote, branch))
|
||||
if remote != 'default' and branch == 'default' and alias_default:
|
||||
f.write('%s %s\n' % (hex(n), remote))
|
||||
for bookmark, n in bookmarks.iteritems():
|
||||
f.write('%s %s/%s\n' % (n, remote, bookmark))
|
||||
f.close()
|
||||
|
Loading…
Reference in New Issue
Block a user