Show More
@@ -669,7 +669,12 b' def showpeerurls(context, mapping):' | |||
|
669 | 669 | def makemap(k): |
|
670 | 670 | p = paths[k] |
|
671 | 671 | d = {b'name': k, b'url': p.rawloc} |
|
672 |
|
|
|
672 | sub_opts = util.sortdict(sorted(pycompat.iteritems(p.suboptions))) | |
|
673 | d.update(sub_opts) | |
|
674 | path_dict = util.sortdict() | |
|
675 | path_dict[b'url'] = p.rawloc | |
|
676 | path_dict.update(sub_opts) | |
|
677 | d[b'urls'] = [path_dict] | |
|
673 | 678 | return d |
|
674 | 679 | |
|
675 | 680 | def format_one(k): |
@@ -98,6 +98,9 b' log template:' | |||
|
98 | 98 | expand: $TESTTMP/a/$SOMETHING/bar |
|
99 | 99 | $ hg log -rnull -T '{get(peerurls, "dupe")}\n' |
|
100 | 100 | $TESTTMP/b#tip |
|
101 | $ hg log -rnull -T '{peerurls % "{urls|json}\n"}' | |
|
102 | [{"pushurl": "https://example.com/dupe", "url": "$TESTTMP/b#tip"}] | |
|
103 | [{"url": "$TESTTMP/a/$SOMETHING/bar"}] | |
|
101 | 104 | |
|
102 | 105 | (sub options can be populated by map/dot operation) |
|
103 | 106 |
General Comments 0
You need to be logged in to leave comments.
Login now