Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 49812:e3b997f57269
path: directly use the push_variant in `hg summary`
We don't need any extra processing now.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 01 Dec 2022 01:35:17 +0100 |
parents | 54e98a88542b |
children | 0df2cff04291 |
comparison
equal
deleted
inserted
replaced
49811:54e98a88542b | 49812:e3b997f57269 |
---|---|
7284 d = b'default-push' | 7284 d = b'default-push' |
7285 elif b'default' in ui.paths: | 7285 elif b'default' in ui.paths: |
7286 d = b'default' | 7286 d = b'default' |
7287 if d is not None: | 7287 if d is not None: |
7288 path = urlutil.get_unique_push_path(b'summary', repo, ui, d) | 7288 path = urlutil.get_unique_push_path(b'summary', repo, ui, d) |
7289 dest = path.pushloc or path.loc | 7289 dest = path.loc |
7290 dbranch = path.branch | 7290 dbranch = path.branch |
7291 else: | 7291 else: |
7292 dest = b'default' | 7292 dest = b'default' |
7293 dbranch = None | 7293 dbranch = None |
7294 revs, checkout = hg.addbranchrevs(repo, repo, (dbranch, []), None) | 7294 revs, checkout = hg.addbranchrevs(repo, repo, (dbranch, []), None) |