push: write distance

This commit is contained in:
Sean Farley 2015-02-09 20:59:50 -08:00
parent 61ae60e640
commit e14cb0d306

View File

@ -43,6 +43,7 @@ def expush(orig, repo, remote, *args, **kwargs):
for branch, nodes in remote.branchmap().iteritems(): for branch, nodes in remote.branchmap().iteritems():
bmap[branch] = [n for n in nodes if not repo[n].obsolete()] bmap[branch] = [n for n in nodes if not repo[n].obsolete()]
saveremotenames(repo, path, bmap, remote.listkeys('bookmarks')) saveremotenames(repo, path, bmap, remote.listkeys('bookmarks'))
writedistance(repo)
except Exception, e: except Exception, e:
ui.debug('remote branches for path %s not saved: %s\n' ui.debug('remote branches for path %s not saved: %s\n'
% (path, e)) % (path, e))