##// END OF EJS Templates
debugdiscovery: report heads in sorted order
Mads Kiilerich <mads at kiilerich.com> -
r18254:2dfe519d default
parent child Browse files
Show More
@@ -1827,8 +1827,8 b' def debugdiscovery(ui, repo, remoteurl="'
1827 1827 force=True)
1828 1828 common = set(common)
1829 1829 if not opts.get('nonheads'):
1830 ui.write(("unpruned common: %s\n") % " ".join([short(n)
1831 for n in common]))
1830 ui.write(("unpruned common: %s\n") %
1831 " ".join(sorted(short(n) for n in common)))
1832 1832 dag = dagutil.revlogdag(repo.changelog)
1833 1833 all = dag.ancestorset(dag.internalizeall(common))
1834 1834 common = dag.externalizeall(dag.headsetofconnecteds(all))
@@ -1837,7 +1837,8 b' def debugdiscovery(ui, repo, remoteurl="'
1837 1837 common = set(common)
1838 1838 rheads = set(hds)
1839 1839 lheads = set(repo.heads())
1840 ui.write(("common heads: %s\n") % " ".join([short(n) for n in common]))
1840 ui.write(("common heads: %s\n") %
1841 " ".join(sorted(short(n) for n in common)))
1841 1842 if lheads <= common:
1842 1843 ui.write(("local is subset\n"))
1843 1844 elif rheads <= common:
@@ -2134,7 +2135,8 b' def debugobsolete(ui, repo, precursor=No'
2134 2135 ui.write(' ')
2135 2136 ui.write(hex(repl))
2136 2137 ui.write(' %X ' % m._data[2])
2137 ui.write(m.metadata())
2138 ui.write('{%s}' % (', '.join('%r: %r' % t for t in
2139 sorted(m.metadata().items()))))
2138 2140 ui.write('\n')
2139 2141
2140 2142 @command('debugpushkey', [], _('REPO NAMESPACE [KEY OLD NEW]'))
@@ -36,8 +36,8 b' Small superset:'
36 36 % -- a -> b tree
37 37 comparing with b
38 38 searching for changes
39 unpruned common: b5714e113bc0 66f7d451a68b 01241442b3c2
40 common heads: b5714e113bc0 01241442b3c2
39 unpruned common: 01241442b3c2 66f7d451a68b b5714e113bc0
40 common heads: 01241442b3c2 b5714e113bc0
41 41 local is subset
42 42
43 43 % -- a -> b set
@@ -45,14 +45,14 b' Small superset:'
45 45 query 1; heads
46 46 searching for changes
47 47 all local heads known remotely
48 common heads: b5714e113bc0 01241442b3c2
48 common heads: 01241442b3c2 b5714e113bc0
49 49 local is subset
50 50
51 51 % -- b -> a tree
52 52 comparing with a
53 53 searching for changes
54 unpruned common: b5714e113bc0 01241442b3c2
55 common heads: b5714e113bc0 01241442b3c2
54 unpruned common: 01241442b3c2 b5714e113bc0
55 common heads: 01241442b3c2 b5714e113bc0
56 56 remote is subset
57 57
58 58 % -- b -> a set
@@ -60,7 +60,7 b' Small superset:'
60 60 query 1; heads
61 61 searching for changes
62 62 all remote heads known locally
63 common heads: b5714e113bc0 01241442b3c2
63 common heads: 01241442b3c2 b5714e113bc0
64 64 remote is subset
65 65
66 66
@@ -89,7 +89,7 b' Many new:'
89 89 % -- b -> a tree
90 90 comparing with a
91 91 searching for changes
92 unpruned common: bebd167eb94d 66f7d451a68b
92 unpruned common: 66f7d451a68b bebd167eb94d
93 93 common heads: bebd167eb94d
94 94
95 95 % -- b -> a set
@@ -128,7 +128,7 b' Both sides many new with stub:'
128 128 % -- b -> a tree
129 129 comparing with a
130 130 searching for changes
131 unpruned common: 66f7d451a68b 2dc09a01254d
131 unpruned common: 2dc09a01254d 66f7d451a68b
132 132 common heads: 2dc09a01254d
133 133
134 134 % -- b -> a set
General Comments 0
You need to be logged in to leave comments. Login now