Show More
@@ -4478,6 +4478,10 b' def log(ui, repo, *pats, **opts):' | |||
|
4478 | 4478 | Returns 0 on success. |
|
4479 | 4479 | |
|
4480 | 4480 | """ |
|
4481 | if opts.get('follow') and opts.get('rev'): | |
|
4482 | opts['rev'] = [revset.formatspec('reverse(::%lr)', opts.get('rev'))] | |
|
4483 | del opts['follow'] | |
|
4484 | ||
|
4481 | 4485 | if opts.get('graph'): |
|
4482 | 4486 | return cmdutil.graphlog(ui, repo, *pats, **opts) |
|
4483 | 4487 |
@@ -2202,13 +2202,6 b' Test --follow and forward --rev' | |||
|
2202 | 2202 | (func |
|
2203 | 2203 | ('symbol', 'rev') |
|
2204 | 2204 | ('symbol', '6')))) |
|
2205 | --- log.nodes * (glob) | |
|
2206 | +++ glog.nodes * (glob) | |
|
2207 | @@ -1,3 +1,3 @@ | |
|
2208 | -nodetag 6 | |
|
2209 | nodetag 8 | |
|
2210 | nodetag 7 | |
|
2211 | +nodetag 6 | |
|
2212 | 2205 | |
|
2213 | 2206 | Test --follow-first and forward --rev |
|
2214 | 2207 |
@@ -631,7 +631,7 b' log -f' | |||
|
631 | 631 | |
|
632 | 632 | |
|
633 | 633 | |
|
634 |
log -f -r |
|
|
634 | log -f -r '1 + 4' | |
|
635 | 635 | |
|
636 | 636 | $ hg up -C 0 |
|
637 | 637 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
@@ -639,25 +639,24 b' log -f -r 1:tip' | |||
|
639 | 639 | $ hg ci -Amb2 -d '1 0' |
|
640 | 640 | adding b2 |
|
641 | 641 | created new head |
|
642 |
$ hg log -f -r |
|
|
642 | $ hg log -f -r '1 + 4' | |
|
643 | changeset: 4:ddb82e70d1a1 | |
|
644 | tag: tip | |
|
645 | parent: 0:67e992f2c4f3 | |
|
646 | user: test | |
|
647 | date: Thu Jan 01 00:00:01 1970 +0000 | |
|
648 | summary: b2 | |
|
649 | ||
|
643 | 650 | changeset: 1:3d5bf5654eda |
|
644 | 651 | user: test |
|
645 | 652 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
646 | 653 | summary: r1 |
|
647 | 654 | |
|
648 |
changeset: |
|
|
655 | changeset: 0:67e992f2c4f3 | |
|
649 | 656 | user: test |
|
650 | 657 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
651 |
summary: |
|
|
658 | summary: base | |
|
652 | 659 | |
|
653 | changeset: 3:e62f78d544b4 | |
|
654 | parent: 1:3d5bf5654eda | |
|
655 | user: test | |
|
656 | date: Thu Jan 01 00:00:01 1970 +0000 | |
|
657 | summary: b1 | |
|
658 | ||
|
659 | ||
|
660 | ||
|
661 | 660 | log -f -r null |
|
662 | 661 | |
|
663 | 662 | $ hg log -f -r null |
@@ -1346,6 +1345,11 b' Also check when maxrev < lastrevfilelog' | |||
|
1346 | 1345 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1347 | 1346 | summary: add foo, related |
|
1348 | 1347 | |
|
1348 | changeset: 2:c4c64aedf0f7 | |
|
1349 | user: test | |
|
1350 | date: Thu Jan 01 00:00:00 1970 +0000 | |
|
1351 | summary: add unrelated old foo | |
|
1352 | ||
|
1349 | 1353 | $ cd .. |
|
1350 | 1354 | |
|
1351 | 1355 | Issue2383: hg log showing _less_ differences than hg diff |
General Comments 0
You need to be logged in to leave comments.
Login now