Patchwork D6212: tests: add test of for hash reference translation by `hg convert`

login
register
mail settings
Submitter phabricator
Date April 8, 2019, 6:50 p.m.
Message ID <acceed22f52c339f1fc8b35ddd3de730@localhost.localdomain>
Download mbox | patch
Permalink /patch/39537/
State Not Applicable
Headers show

Comments

phabricator - April 8, 2019, 6:50 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf46c1a9b1bfe: tests: add test of for hash reference translation by `hg convert` (authored by martinvonz, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D6212?vs=14686&id=14693#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6212?vs=14686&id=14693

REVISION DETAIL
  https://phab.mercurial-scm.org/D6212

AFFECTED FILES
  tests/test-convert-hg-source.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-convert-hg-source.t b/tests/test-convert-hg-source.t
--- a/tests/test-convert-hg-source.t
+++ b/tests/test-convert-hg-source.t
@@ -206,3 +206,19 @@ 
   a
   c
   d
+  $ cd ..
+
+  $ hg init commit-references
+  $ cd commit-references
+  $ echo a > a
+  $ hg ci -Aqm initial
+  $ echo b > b
+  $ hg ci -Aqm 'the previous commit was 1451231c8757'
+
+  $ cd ..
+  $ hg convert commit-references new-commit-references -q \
+  >     --config convert.hg.sourcename=yes
+  $ cd new-commit-references
+  $ hg log -T '{node|short} {desc}\n'
+  642508659503 the previous commit was c2491f685436
+  c2491f685436 initial