Mercurial > hg
comparison tests/test-git-interop.t @ 47046:497cedcb6504 stable
git: make changelog.tiprev() return int instead of tuple (issue6510)
Differential Revision: https://phab.mercurial-scm.org/D10522
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 27 Apr 2021 12:31:30 -0400 |
parents | 846920d89476 |
children | 8d733cbc2724 |
comparison
equal
deleted
inserted
replaced
47045:846920d89476 | 47046:497cedcb6504 |
---|---|
46 > [extensions] | 46 > [extensions] |
47 > git= | 47 > git= |
48 > [git] | 48 > [git] |
49 > log-index-cache-miss = yes | 49 > log-index-cache-miss = yes |
50 > EOF | 50 > EOF |
51 | |
52 Test some edge cases around a commitless repo first | |
53 $ mkdir empty | |
54 $ cd empty | |
55 $ git init | |
56 Initialized empty Git repository in $TESTTMP/empty/.git/ | |
57 $ hg init --git | |
58 $ hg heads | |
59 [1] | |
60 $ cd .. | |
51 | 61 |
52 Make a new repo with git: | 62 Make a new repo with git: |
53 $ mkdir foo | 63 $ mkdir foo |
54 $ cd foo | 64 $ cd foo |
55 $ git init | 65 $ git init |
375 $ hg revert -r . --all | 385 $ hg revert -r . --all |
376 reverting beta | 386 reverting beta |
377 $ hg rm beta | 387 $ hg rm beta |
378 $ hg ci -m 'remove beta' | 388 $ hg ci -m 'remove beta' |
379 | 389 |
390 This covers changelog.tiprev() (issue6510) | |
391 $ hg log -r '(.^^):' | |
392 heads mismatch, rebuilding dagcache | |
393 changeset: 5:ae1ab744f95b | |
394 user: test <test> | |
395 date: Thu Jan 01 00:00:00 1970 +0000 | |
396 summary: Introduce file a/mu | |
397 | |
398 changeset: 6:80adc61cf57e | |
399 user: test <test> | |
400 date: Thu Jan 01 00:00:00 1970 +0000 | |
401 summary: test interactive commit | |
402 | |
403 changeset: 7:116aee5ecdff | |
404 bookmark: master | |
405 tag: tip | |
406 user: test <test> | |
407 date: Thu Jan 01 00:00:00 1970 +0000 | |
408 summary: remove beta | |
409 | |
410 |