Show More
@@ -0,0 +1,6 b'' | |||||
|
1 | <item> | |||
|
2 | <title>#tag|escape#</title> | |||
|
3 | <link>#url#?cs=#node|short#</link> | |||
|
4 | <description><![CDATA[#tag|strip|escape|addbreaks#]]></description> | |||
|
5 | <pubDate>#date|rfc822date#</pubDate> | |||
|
6 | </item> |
@@ -0,0 +1,6 b'' | |||||
|
1 | #header# | |||
|
2 | <title>#repo|escape#: tags </title> | |||
|
3 | <description>#repo|escape# tag history</description> | |||
|
4 | #entriesnotip%tagentry# | |||
|
5 | </channel> | |||
|
6 | </rss> |
@@ -994,7 +994,7 b' def debugrebuildstate(ui, repo, rev=None' | |||||
994 | change = repo.changelog.read(rev) |
|
994 | change = repo.changelog.read(rev) | |
995 | n = change[0] |
|
995 | n = change[0] | |
996 | files = repo.manifest.readflags(n) |
|
996 | files = repo.manifest.readflags(n) | |
997 |
wlock = |
|
997 | wlock = repo.wlock() | |
998 | repo.dirstate.rebuild(rev, files.iteritems()) |
|
998 | repo.dirstate.rebuild(rev, files.iteritems()) | |
999 |
|
999 | |||
1000 | def debugcheckstate(ui, repo): |
|
1000 | def debugcheckstate(ui, repo): | |
@@ -1637,7 +1637,6 b' def log(ui, repo, *pats, **opts):' | |||||
1637 | if opts['only_merges'] and len(parents) != 2: |
|
1637 | if opts['only_merges'] and len(parents) != 2: | |
1638 | continue |
|
1638 | continue | |
1639 |
|
1639 | |||
1640 | br = None |
|
|||
1641 | if opts['keyword']: |
|
1640 | if opts['keyword']: | |
1642 | changes = getchange(rev) |
|
1641 | changes = getchange(rev) | |
1643 | miss = 0 |
|
1642 | miss = 0 | |
@@ -1650,7 +1649,8 b' def log(ui, repo, *pats, **opts):' | |||||
1650 | if miss: |
|
1649 | if miss: | |
1651 | continue |
|
1650 | continue | |
1652 |
|
1651 | |||
1653 | if opts['branch']: |
|
1652 | br = None | |
|
1653 | if opts['branches']: | |||
1654 | br = repo.branchlookup([repo.changelog.node(rev)]) |
|
1654 | br = repo.branchlookup([repo.changelog.node(rev)]) | |
1655 |
|
1655 | |||
1656 | show_changeset(du, repo, rev, brinfo=br) |
|
1656 | show_changeset(du, repo, rev, brinfo=br) | |
@@ -1660,9 +1660,10 b' def log(ui, repo, *pats, **opts):' | |||||
1660 | du.write("\n\n") |
|
1660 | du.write("\n\n") | |
1661 | elif st == 'iter': |
|
1661 | elif st == 'iter': | |
1662 | if count == limit: break |
|
1662 | if count == limit: break | |
1663 | count += 1 |
|
1663 | if du.hunk[rev]: | |
1664 | for args in du.hunk[rev]: |
|
1664 | count += 1 | |
1665 | ui.write(*args) |
|
1665 | for args in du.hunk[rev]: | |
|
1666 | ui.write(*args) | |||
1666 |
|
1667 | |||
1667 | def manifest(ui, repo, rev=None): |
|
1668 | def manifest(ui, repo, rev=None): | |
1668 | """output the latest or given revision of the project manifest |
|
1669 | """output the latest or given revision of the project manifest | |
@@ -1713,7 +1714,7 b' def outgoing(ui, repo, dest="default-pus' | |||||
1713 | dodiff(ui, ui, repo, prev, n) |
|
1714 | dodiff(ui, ui, repo, prev, n) | |
1714 | ui.write("\n") |
|
1715 | ui.write("\n") | |
1715 |
|
1716 | |||
1716 | def parents(ui, repo, rev=None, branch=None): |
|
1717 | def parents(ui, repo, rev=None, branches=None): | |
1717 | """show the parents of the working dir or revision |
|
1718 | """show the parents of the working dir or revision | |
1718 |
|
1719 | |||
1719 | Print the working directory's parent revisions. |
|
1720 | Print the working directory's parent revisions. | |
@@ -1724,7 +1725,7 b' def parents(ui, repo, rev=None, branch=N' | |||||
1724 | p = repo.dirstate.parents() |
|
1725 | p = repo.dirstate.parents() | |
1725 |
|
1726 | |||
1726 | br = None |
|
1727 | br = None | |
1727 | if branch is not None: |
|
1728 | if branches is not None: | |
1728 | br = repo.branchlookup(p) |
|
1729 | br = repo.branchlookup(p) | |
1729 | for n in p: |
|
1730 | for n in p: | |
1730 | if n != nullid: |
|
1731 | if n != nullid: | |
@@ -2225,7 +2226,10 b' def tip(ui, repo, **opts):' | |||||
2225 | Show the tip revision. |
|
2226 | Show the tip revision. | |
2226 | """ |
|
2227 | """ | |
2227 | n = repo.changelog.tip() |
|
2228 | n = repo.changelog.tip() | |
2228 | show_changeset(ui, repo, changenode=n) |
|
2229 | br = None | |
|
2230 | if opts['branches']: | |||
|
2231 | br = repo.branchlookup([n]) | |||
|
2232 | show_changeset(ui, repo, changenode=n, brinfo=br) | |||
2229 | if opts['patch']: |
|
2233 | if opts['patch']: | |
2230 | dodiff(ui, ui, repo, repo.changelog.parents(n)[0], n) |
|
2234 | dodiff(ui, ui, repo, repo.changelog.parents(n)[0], n) | |
2231 |
|
2235 | |||
@@ -2440,7 +2444,7 b' table = {' | |||||
2440 | _('hg grep [OPTION]... PATTERN [FILE]...')), |
|
2444 | _('hg grep [OPTION]... PATTERN [FILE]...')), | |
2441 | "heads": |
|
2445 | "heads": | |
2442 | (heads, |
|
2446 | (heads, | |
2443 |
[('b', 'branches', None, _(' |
|
2447 | [('b', 'branches', None, _('show branches')), | |
2444 | ('r', 'rev', '', _('show only heads which are descendants of rev'))], |
|
2448 | ('r', 'rev', '', _('show only heads which are descendants of rev'))], | |
2445 | _('hg heads [-b] [-r <rev>]')), |
|
2449 | _('hg heads [-b] [-r <rev>]')), | |
2446 | "help": (help_, [], _('hg help [COMMAND]')), |
|
2450 | "help": (help_, [], _('hg help [COMMAND]')), | |
@@ -2474,7 +2478,7 b' table = {' | |||||
2474 | (log, |
|
2478 | (log, | |
2475 | [('I', 'include', [], _('include names matching the given patterns')), |
|
2479 | [('I', 'include', [], _('include names matching the given patterns')), | |
2476 | ('X', 'exclude', [], _('exclude names matching the given patterns')), |
|
2480 | ('X', 'exclude', [], _('exclude names matching the given patterns')), | |
2477 | ('b', 'branch', None, _('show branches')), |
|
2481 | ('b', 'branches', None, _('show branches')), | |
2478 | ('k', 'keyword', [], _('search for a keyword')), |
|
2482 | ('k', 'keyword', [], _('search for a keyword')), | |
2479 | ('l', 'limit', '', _('limit number of changes displayed')), |
|
2483 | ('l', 'limit', '', _('limit number of changes displayed')), | |
2480 | ('r', 'rev', [], _('show the specified revision or range')), |
|
2484 | ('r', 'rev', [], _('show the specified revision or range')), | |
@@ -2490,7 +2494,7 b' table = {' | |||||
2490 | _('hg outgoing [-p] [-n] [-M] [DEST]')), |
|
2494 | _('hg outgoing [-p] [-n] [-M] [DEST]')), | |
2491 | "^parents": |
|
2495 | "^parents": | |
2492 | (parents, |
|
2496 | (parents, | |
2493 | [('b', 'branch', None, _('show branches'))], |
|
2497 | [('b', 'branches', None, _('show branches'))], | |
2494 | _('hg parents [-b] [REV]')), |
|
2498 | _('hg parents [-b] [REV]')), | |
2495 | "paths": (paths, [], _('hg paths [NAME]')), |
|
2499 | "paths": (paths, [], _('hg paths [NAME]')), | |
2496 | "^pull": |
|
2500 | "^pull": | |
@@ -2577,7 +2581,11 b' table = {' | |||||
2577 | ('r', 'rev', '', _('revision to tag'))], |
|
2581 | ('r', 'rev', '', _('revision to tag'))], | |
2578 | _('hg tag [-r REV] [OPTION]... NAME')), |
|
2582 | _('hg tag [-r REV] [OPTION]... NAME')), | |
2579 | "tags": (tags, [], _('hg tags')), |
|
2583 | "tags": (tags, [], _('hg tags')), | |
2580 | "tip": (tip, [('p', 'patch', None, _('show patch'))], _('hg tip')), |
|
2584 | "tip": | |
|
2585 | (tip, | |||
|
2586 | [('b', 'branches', None, _('show branches')), | |||
|
2587 | ('p', 'patch', None, _('show patch'))], | |||
|
2588 | _('hg [-b] [-p] tip')), | |||
2581 | "unbundle": |
|
2589 | "unbundle": | |
2582 | (unbundle, |
|
2590 | (unbundle, | |
2583 | [('u', 'update', None, |
|
2591 | [('u', 'update', None, |
@@ -660,9 +660,10 b' class hgweb(object):' | |||||
660 | i = self.repo.tagslist() |
|
660 | i = self.repo.tagslist() | |
661 | i.reverse() |
|
661 | i.reverse() | |
662 |
|
662 | |||
663 | def entries(**map): |
|
663 | def entries(notip=False, **map): | |
664 | parity = 0 |
|
664 | parity = 0 | |
665 | for k,n in i: |
|
665 | for k,n in i: | |
|
666 | if notip and k == "tip": continue | |||
666 | yield {"parity": parity, |
|
667 | yield {"parity": parity, | |
667 | "tag": k, |
|
668 | "tag": k, | |
668 | "tagmanifest": hex(cl.read(n)[0]), |
|
669 | "tagmanifest": hex(cl.read(n)[0]), | |
@@ -672,7 +673,8 b' class hgweb(object):' | |||||
672 |
|
673 | |||
673 | yield self.t("tags", |
|
674 | yield self.t("tags", | |
674 | manifest=hex(mf), |
|
675 | manifest=hex(mf), | |
675 | entries=entries) |
|
676 | entries=lambda **x: entries(False, **x), | |
|
677 | entriesnotip=lambda **x: entries(True, **x)) | |||
676 |
|
678 | |||
677 | def summary(self): |
|
679 | def summary(self): | |
678 | cl = self.repo.changelog |
|
680 | cl = self.repo.changelog |
@@ -4,3 +4,5 b' changelog = changelog-rss.tmpl' | |||||
4 | changelogentry = changelogentry-rss.tmpl |
|
4 | changelogentry = changelogentry-rss.tmpl | |
5 | filelog = filelog-rss.tmpl |
|
5 | filelog = filelog-rss.tmpl | |
6 | filelogentry = filelogentry-rss.tmpl |
|
6 | filelogentry = filelogentry-rss.tmpl | |
|
7 | tags = tags-rss.tmpl | |||
|
8 | tagentry = tagentry-rss.tmpl |
@@ -1,11 +1,14 b'' | |||||
1 | #header# |
|
1 | #header# | |
2 | <title>#repo|escape#: tags</title> |
|
2 | <title>#repo|escape#: tags</title> | |
|
3 | <link rel="alternate" type="application/rss+xml" | |||
|
4 | href="?cmd=tags;style=rss" title="RSS feed for #repo|escape#: tags"> | |||
3 | </head> |
|
5 | </head> | |
4 | <body> |
|
6 | <body> | |
5 |
|
7 | |||
6 | <div class="buttons"> |
|
8 | <div class="buttons"> | |
7 | <a href="?cl=tip">changelog</a> |
|
9 | <a href="?cl=tip">changelog</a> | |
8 | <a href="?mf=#manifest|short#;path=/">manifest</a> |
|
10 | <a href="?mf=#manifest|short#;path=/">manifest</a> | |
|
11 | <a type="application/rss+xml" href="?cmd=tags;style=rss">rss</a> | |||
9 | </div> |
|
12 | </div> | |
10 |
|
13 | |||
11 | <h2>tags:</h2> |
|
14 | <h2>tags:</h2> |
General Comments 0
You need to be logged in to leave comments.
Login now