monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Import command doesn't import everything even with


From: Václav Haisman
Subject: Re: [Monotone-devel] Import command doesn't import everything even with --no-respect-ignore option on.
Date: Tue, 20 Feb 2007 13:58:43 +0100
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)

Václav Haisman wrote:
> Hi,
> yesterday, I've filled a bug report
> <https://savannah.nongnu.org/bugs/?19078> about the subject. Today I
> looked at the source and I found a puzzling piece of code. It is
> starting at line 1069 of cmd_ws_commit.cc:
> 
>       vector<utf8> empty_args;
>       options save_opts;
>       // add --unknown
>       save_opts.no_ignore = app.opts.no_ignore;
>       save_opts.exclude_patterns = app.opts.exclude_patterns;
>       app.opts.no_ignore = false;
>       app.opts.exclude_patterns = std::vector<utf8>();
>       app.opts.unknown = true;
>       process(app, "add", empty_args);
>       app.opts.unknown = false;
>       app.opts.no_ignore = save_opts.no_ignore;
>       app.opts.exclude_patterns = save_opts.exclude_patterns;
> 
> Why is the 6th line of this snipped disabling the --no-respect-ignore
> flag? I have not actually tried removing it and to run the test case but
> it seems like it could be the culprit.
I have tried removing the line but there are checks in "add" command
handler that fail then.

I've also tried to dig a bit deeper into this and found out that the
test.a file in my test case gets ignored thanks to predefined
ignore_files() hook in std_hooks.lua. See the attached --debug output.

--
Vaclav Haisman
mtn: started up on FreeBSD 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Sun Nov 19 
21:28:07 CET 2006     address@hidden:/usr/obj/usr/src/sys/LOGOUT i386
mtn: command line: 'mtn', '-d', '../test.mtn', '-k', 'address@hidden', '-b', 
'test', 'import', '.', '--no-respect-ignore', '--debug'
mtn: set locale: LC_ALL=en_US.UTF-8
mtn: initial abs path is: /usr/home/4/wilx/test/src
mtn: converting 2 bytes from UTF-8 to IDNA ACE
mtn: converting 4 bytes from UTF-8 to IDNA ACE
mtn: converting 2 bytes from UTF-8 to IDNA ACE
mtn: converting 2 bytes from UTF-8 to IDNA ACE
mtn: converting 4 bytes from UTF-8 to IDNA ACE
mtn: converting 2 bytes from UTF-8 to IDNA ACE
mtn: started up on FreeBSD 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Sun Nov 19 
21:28:07 CET 2006     address@hidden:/usr/obj/usr/src/sys/LOGOUT i386
mtn: command line: 'mtn', '-d', '../test.mtn', '-k', 'address@hidden', '-b', 
'test', 'import', '.', '--no-respect-ignore', '--debug'
mtn: set locale: LC_ALL=en_US.UTF-8
mtn: initial abs path is: /usr/home/4/wilx/test/src
mtn: converting 2 bytes from UTF-8 to IDNA ACE
mtn: converting 4 bytes from UTF-8 to IDNA ACE
mtn: converting 2 bytes from UTF-8 to IDNA ACE
mtn: converting 2 bytes from UTF-8 to IDNA ACE
mtn: converting 4 bytes from UTF-8 to IDNA ACE
mtn: converting 2 bytes from UTF-8 to IDNA ACE
mtn: initializing from directory /usr/home/4/wilx/test/src
mtn: searching for '_MTN' directory with root '/'
mtn: '_MTN' not found in '/usr/home/4/wilx/test/src' with '' removed
mtn: '_MTN' not found in '/usr/home/4/wilx/test' with 'src' removed
mtn: '_MTN' not found in '/usr/home/4/wilx' with 'test/src' removed
mtn: '_MTN' not found in '/usr/home/4' with 'wilx/test/src' removed
mtn: '_MTN' not found in '/usr/home' with '4/wilx/test/src' removed
mtn: '_MTN' not found in '/usr' with 'home/4/wilx/test/src' removed
mtn: search for '_MTN' ended at '/' with 'usr/home/4/wilx/test/src' removed
mtn: '/_MTN' does not exist
mtn: searching for 'MT' directory with root '/'
mtn: 'MT' not found in '/usr/home/4/wilx/test/src' with 
'usr/home/4/wilx/test/src' removed
mtn: 'MT' not found in '/usr/home/4/wilx/test' with 
'src/usr/home/4/wilx/test/src' removed
mtn: 'MT' not found in '/usr/home/4/wilx' with 
'test/src/usr/home/4/wilx/test/src' removed
mtn: 'MT' not found in '/usr/home/4' with 
'wilx/test/src/usr/home/4/wilx/test/src' removed
mtn: 'MT' not found in '/usr/home' with 
'4/wilx/test/src/usr/home/4/wilx/test/src' removed
mtn: 'MT' not found in '/usr' with 
'home/4/wilx/test/src/usr/home/4/wilx/test/src' removed
mtn: search for 'MT' ended at '/' with 
'usr/home/4/wilx/test/src/usr/home/4/wilx/test/src' removed
mtn: '/MT' does not exist
mtn: opening rcfile '/home/4/wilx/.monotone/monotonerc'
mtn: '/home/4/wilx/.monotone/monotonerc' is ok
mtn: skipping nonexistent rcfile '_MTN/monotonerc'
mtn: executing command 'import'
mtn: getting heads of branch test
mtn: executing SQL 'SELECT sql FROM sqlite_master WHERE (type = 'table' OR type 
= 'index') AND sql IS NOT NULL AND name not like 'sqlite_stat%' ORDER BY name'
mtn: result: 0 (not an error)
mtn: prepared statement SELECT 1 FROM revisions LIMIT 1
mtn: binding 0 parameters for SELECT 1 FROM revisions LIMIT 1
mtn: prepared statement SELECT 1 FROM manifests LIMIT 1
mtn: binding 0 parameters for SELECT 1 FROM manifests LIMIT 1
mtn: prepared statement SELECT 1 FROM rosters LIMIT 1
mtn: binding 0 parameters for SELECT 1 FROM rosters LIMIT 1
mtn: prepared statement SELECT 1 FROM heights LIMIT 1
mtn: binding 0 parameters for SELECT 1 FROM heights LIMIT 1
mtn: prepared statement SELECT id FROM revision_certs WHERE name = ? AND value 
= ?
mtn: binding 2 parameters for SELECT id FROM revision_certs WHERE name = ? AND 
value = ?
mtn: binding 1 with value 'branch'
mtn: binding 2 with value 'test'
mtn: prepared statement SELECT parent,child FROM revision_ancestry
mtn: binding 0 parameters for SELECT parent,child FROM revision_ancestry
mtn: called predicate 0 times
mtn: found heads of branch test (0 heads)
mtn: creating workspace in /usr/home/4/wilx/test/src
mtn: creating bookkeeping directory '_MTN' for workspace in 
'/usr/home/4/wilx/test/src'
mtn: converting 2 bytes from IDNA ACE to UTF-8
mtn: converting 4 bytes from IDNA ACE to UTF-8
mtn: converting 2 bytes from IDNA ACE to UTF-8
mtn: options path is _MTN/options
mtn: options path is _MTN/options
mtn: user log path is _MTN/log
mtn: loading lua hook use_inodeprints
mtn: lua: extracted bool = 0
mtn: opening rcfile '/home/4/wilx/.monotone/monotonerc'
mtn: '/home/4/wilx/.monotone/monotonerc' is ok
mtn: skipping nonexistent rcfile '_MTN/monotonerc'
mtn: revision path is _MTN/revision
mtn: executing command 'add'
mtn: options path is _MTN/options
mtn: branch name is 'test'
mtn: converting 2 bytes from IDNA ACE to UTF-8
mtn: converting 4 bytes from IDNA ACE to UTF-8
mtn: converting 2 bytes from IDNA ACE to UTF-8
mtn: options path is _MTN/options
mtn: options path is _MTN/options
mtn: revision path is _MTN/revision
mtn: base roster has 0 entries
mtn: revision path is _MTN/revision
mtn: empty include of path 'test.txt'
mtn: loading lua hook ignore_file
mtn: lua: extracted bool = 0
mtn: empty include of path 'test.a'
mtn: loading lua hook ignore_file
mtn: lua: extracted bool = 1
mtn: ignoring book keeping entry _MTN
mtn: revision path is _MTN/revision
mtn: base roster has 0 entries
mtn: revision path is _MTN/revision
mtn: loading lua hook ignore_file
mtn: lua: extracted bool = 0
mtn: adding test.txt to workspace manifest
mtn: loading lua hook get_linesep_conv
mtn: lua failure: isfunction() in get_fn; stack = nil  
mtn: lua: extracted string = 
mtn: lua: extracted string = 
mtn: Lua::ok(): failed
mtn: loading lua hook get_charset_conv
mtn: lua failure: isfunction() in get_fn; stack = nil  
mtn: lua: extracted string = 
mtn: lua: extracted string = 
mtn: Lua::ok(): failed
mtn: calling attr_init_function for test.txt
mtn:   calling an attr_init_function for test.txt
mtn:   no attr added
mtn:   calling an attr_init_function for test.txt
mtn:   no attr added
mtn: lua failure: stack top is not >= count in pop; stack = 
mtn: Lua::ok(): failed
mtn: revision path is _MTN/revision
mtn: revision path is _MTN/revision
mtn: revision path is _MTN/revision
mtn: base roster has 0 entries
mtn: revision path is _MTN/revision
mtn: executing command 'drop'
mtn: options path is _MTN/options
mtn: branch name is 'test'
mtn: converting 2 bytes from IDNA ACE to UTF-8
mtn: converting 4 bytes from IDNA ACE to UTF-8
mtn: converting 2 bytes from IDNA ACE to UTF-8
mtn: options path is _MTN/options
mtn: options path is _MTN/options
mtn: revision path is _MTN/revision
mtn: base roster has 0 entries
mtn: revision path is _MTN/revision
mtn: executing command 'commit'
mtn: options path is _MTN/options
mtn: branch name is 'test'
mtn: converting 2 bytes from IDNA ACE to UTF-8
mtn: converting 4 bytes from IDNA ACE to UTF-8
mtn: converting 2 bytes from IDNA ACE to UTF-8
mtn: options path is _MTN/options
mtn: options path is _MTN/options
mtn: converting 2 bytes from IDNA ACE to UTF-8
mtn: converting 4 bytes from IDNA ACE to UTF-8
mtn: converting 2 bytes from IDNA ACE to UTF-8
mtn: options path is _MTN/options
mtn: options path is _MTN/options
mtn: revision path is _MTN/revision
mtn: base roster has 0 entries
mtn: revision path is _MTN/revision
mtn: inodeprints path is _MTN/inodeprints
mtn: loading lua hook get_linesep_conv
mtn: lua: extracted string = 
mtn: lua: extracted string = 
mtn: Lua::ok(): failed
mtn: loading lua hook get_charset_conv
mtn: lua: extracted string = 
mtn: lua: extracted string = 
mtn: Lua::ok(): failed
mtn: building restricted csets
mtn: included right 2147483648
mtn: included right 2147483649
mtn: revision path is _MTN/revision
mtn: new manifest_id is f962c8b7f08c0b90acfa23f4278651bd60a1b3db
mtn: getting heads of branch test
mtn: binding 2 parameters for SELECT id FROM revision_certs WHERE name = ? AND 
value = ?
mtn: binding 1 with value 'branch'
mtn: binding 2 with value 'test'
mtn: binding 0 parameters for SELECT parent,child FROM revision_ancestry
mtn: called predicate 0 times
mtn: found heads of branch test (0 heads)
mtn: beginning commit on branch 'test'
mtn: new manifest 'f962c8b7f08c0b90acfa23f4278651bd60a1b3db'
mtn: new revision '5bb6f254a4e7290b0cda493a2c2381519d6593ab'
mtn: user log path is _MTN/log
mtn: loading lua hook edit_comment
mtn: checking for program 'vi'
mtn: spawning command: 'sh', '-c', 'command -v 'vi' >/dev/null 2>&1'
mtn: successful return; vi exists
mtn: checking for program 'notepad.exe'
mtn: spawning command: 'sh', '-c', 'command -v 'notepad.exe' >/dev/null 2>&1'
mtn: failure; notepad.exe does not exist
mtn: spawning command: 'emacs', '/tmp/mtn.SGX2AO'

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]