Patchwork [9,of,9] tests: coverage of convert and filemap include and the default of include all

login
register
mail settings
Submitter Mads Kiilerich
Date March 18, 2014, 11:33 p.m.
Message ID <85c35463e5c275e7cb8a.1395185637@localhost.localdomain>
Download mbox | patch
Permalink /patch/3980/
State Accepted
Headers show

Comments

Mads Kiilerich - March 18, 2014, 11:33 p.m.
# HG changeset patch
# User Mads Kiilerich <madski@unity3d.com>
# Date 1395184794 -3600
#      Wed Mar 19 00:19:54 2014 +0100
# Node ID 85c35463e5c275e7cb8aceb2cb793e8183c3c280
# Parent  a8c131b3be15ba4b72bbce330258c46f6addd7d0
tests: coverage of convert and filemap include and the default of include all
Matt Mackall - April 16, 2014, 5:39 p.m.
On Wed, 2014-03-19 at 00:33 +0100, Mads Kiilerich wrote:
> # HG changeset patch
> # User Mads Kiilerich <madski@unity3d.com>
> # Date 1395184794 -3600
> #      Wed Mar 19 00:19:54 2014 +0100
> # Node ID 85c35463e5c275e7cb8aceb2cb793e8183c3c280
> # Parent  a8c131b3be15ba4b72bbce330258c46f6addd7d0
> tests: coverage of convert and filemap include and the default of include all

Queued for default, thanks.

Patch

diff --git a/tests/test-convert-filemap.t b/tests/test-convert-filemap.t
--- a/tests/test-convert-filemap.t
+++ b/tests/test-convert-filemap.t
@@ -252,6 +252,24 @@  splitrepo tests
   $ hg --cwd foo-copied.repo debugrename copied
   copied renamed from foo:2ed2a3912a0b24502043eae84ee4b279c18b90dd
 
+verify the top level 'include .' if there is no other includes:
+
+  $ echo "exclude something" > default.fmap
+  $ hg convert -q --filemap default.fmap -r1 source dummydest2
+  $ hg -R dummydest2 log --template '{rev} {node|short} {desc|firstline}\n'
+  1 61e22ca76c3b 1: add bar quux; copy foo to copied
+  0 c085cf2ee7fe 0: add foo baz dir/
+
+  $ echo "include somethingelse" >> default.fmap
+  $ hg convert -q --filemap default.fmap -r1 source dummydest3
+  $ hg -R dummydest3 log --template '{rev} {node|short} {desc|firstline}\n'
+
+  $ echo "include ." >> default.fmap
+  $ hg convert -q --filemap default.fmap -r1 source dummydest4
+  $ hg -R dummydest4 log --template '{rev} {node|short} {desc|firstline}\n'
+  1 61e22ca76c3b 1: add bar quux; copy foo to copied
+  0 c085cf2ee7fe 0: add foo baz dir/
+
 ensure that the filemap contains duplicated slashes (issue3612)
 
   $ cat > renames.fmap <<EOF