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