Fossil SCM
"co --latest" doen't actually get latest in repo.
70fd24aec36409a…
· opened 16 years, 2 months ago
- Type
- Documentation
- Priority
- —
- Severity
- Important
- Resolution
- Open
- Subsystem
- —
- Created
- Jan. 12, 2010 10:18 p.m.
Using fossil's own repo (latest artifact [c16017374e]) It appears that the "--latest" pull latest in a tagged branch, not latest from repo. From my own memory, this has not always been the case. Is this correct/expected behaviour?
Transcript of test:
oxford$ fossil version This is fossil version [c16017374e] 2010-01-12 14:33:01 UTC oxford$ fossil co 1cba8checkout occurs
oxford$ fossil co --latest
checkout occurs
oxford$ fossil info project-name: Fossil repository: /home/bch/fossil_2/fossil.fsl local-root: /home/bch/fossil_2/ project-code: CE59BB9F186226D80E49D1FA2DB29F935CCA0333 server-code: d88c5ddc09c25be88a931b3f85fa44b1630bf715 checkout: 261e55346d1b98dd7c2adb24c364c75545d4a054 2010-01-11 16:21:46 UTC parent: 1cba86eabbb0dac64852268c740f52d0b8a8032e 2010-01-11 16:09:12 UTC child: 596f3c10feba7ebe31b0aa46038214a748e2dbe8 2010-01-12 13:55:57 UTC tags: experimental oxford$ fossil co --latest oxford$ fossil info project-name: Fossil repository: /home/bch/fossil_2/fossil.fsl local-root: /home/bch/fossil_2/ project-code: CE59BB9F186226D80E49D1FA2DB29F935CCA0333 server-code: d88c5ddc09c25be88a931b3f85fa44b1630bf715 checkout: 261e55346d1b98dd7c2adb24c364c75545d4a054 2010-01-11 16:21:46 UTC parent: 1cba86eabbb0dac64852268c740f52d0b8a8032e 2010-01-11 16:09:12 UTC child: 596f3c10feba7ebe31b0aa46038214a748e2dbe8 2010-01-12 13:55:57 UTC tags: experimental oxford$ fossil co 596f3
checkout occurs
oxford$ fossil info project-name: Fossil repository: /home/bch/fossil_2/fossil.fsl local-root: /home/bch/fossil_2/ project-code: CE59BB9F186226D80E49D1FA2DB29F935CCA0333 server-code: d88c5ddc09c25be88a931b3f85fa44b1630bf715 checkout: 596f3c10feba7ebe31b0aa46038214a748e2dbe8 2010-01-12 13:55:57 UTC parent: b9897bb934c4de72a968d3bada8c985ae785672c 2010-01-12 13:47:48 UTC parent: 261e55346d1b98dd7c2adb24c364c75545d4a054 2010-01-11 16:21:46 UTC child: 9c5322463b5b6608173f7e06f74393b9c4e093c6 2010-01-12 14:10:13 UTC tags: trunk oxford$ fossil co --latest
checkout occurs
oxford$ fossil info project-name: Fossil repository: /home/bch/fossil_2/fossil.fsl local-root: /home/bch/fossil_2/ project-code: CE59BB9F186226D80E49D1FA2DB29F935CCA0333 server-code: d88c5ddc09c25be88a931b3f85fa44b1630bf715 checkout: c16017374e4318ade54ee0c1e269a0bc2ddde355 2010-01-12 14:33:01 UTC parent: 9c5322463b5b6608173f7e06f74393b9c4e093c6 2010-01-12 14:10:13 UTC tags: trunk oxford$
eric added on 2010-01-13 22:32:45:
fossil co --latest gives you the latest leaf which is a descendant of your current checkout, and (as far as I can tell) has done so since --latest was introduced. This means that your test behaved as expected. But it is not what the help text says. I think that it is the help text that should change, since I don't think it is usually a good idea to change branches without asking explicitly.