[PATCH] allow 'hg out' / 'hg in' to show oldest commit first
Michal Kvasnica
kvasnica at control.ee.ethz.ch
Thu Sep 29 16:24:01 CDT 2005
# HG changeset patch
# User Michal Kvasnica <kvasnica at control.ee.ethz.ch>
# Node ID 751c09f35af984eddf8a2b44fa255d4714633478
# Parent 8549335d19fc740b6fcbd8ba5d2b205721bc9f33
allow 'hg out' / 'hg in' to show oldest commit first
diff -r 8549335d19fc -r 751c09f35af9 mercurial/commands.py
--- a/mercurial/commands.py Thu Sep 29 13:20:03 2005 -0700
+++ b/mercurial/commands.py Thu Sep 29 22:22:31 2005 +0100
@@ -1195,6 +1195,8 @@
if not o:
return
o = other.newer(o)
+ if opts['oldest_first']:
+ o.reverse()
for n in o:
show_changeset(ui, other, changenode=n)
if opts['patch']:
@@ -1291,6 +1293,8 @@
other = hg.repository(ui, dest)
o = repo.findoutgoing(other)
o = repo.newer(o)
+ if opts['oldest_first']:
+ o.reverse()
for n in o:
show_changeset(ui, repo, changenode=n)
if opts['patch']:
@@ -1851,7 +1855,8 @@
('b', 'base', "", 'base path')],
"hg import [-f] [-p NUM] [-b BASE] PATCH..."),
"incoming|in": (incoming,
- [('p', 'patch', None, 'show patch')],
+ [('p', 'patch', None, 'show patch'),
+ ('o', 'oldest-first', None, 'show log with oldest record first')],
'hg incoming [-p] [SOURCE]'),
"^init": (init, [], 'hg init [DEST]'),
"locate":
@@ -1872,7 +1877,8 @@
'hg log [-I] [-X] [-r REV]... [-p] [FILE]'),
"manifest": (manifest, [], 'hg manifest [REV]'),
"outgoing|out": (outgoing,
- [('p', 'patch', None, 'show patch')],
+ [('p', 'patch', None, 'show patch'),
+ ('o', 'oldest-first', None, 'show log with oldest record first')],
'hg outgoing [-p] [DEST]'),
"parents": (parents, [], 'hg parents [REV]'),
"paths": (paths, [], 'hg paths [NAME]'),
More information about the Mercurial
mailing list