monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] weird monotone behavior


From: Hugo Cornelis
Subject: [Monotone-devel] weird monotone behavior
Date: Sat, 15 Nov 2008 20:22:14 -0600

Hi,

I am using monotone 0.40 statically linked, downloaded from the
monotone website on a redhat enterprise server 5.  I encountered the
following problem:

I have a project that uses a database ~/neurospaces_project/MTN/installer.mtn

I pulled an external database of the same project to
~/neurospaces_project/MTN/neurospaces-developer.mtn

Changed the options files in a workspace, then did the things below.
In a summary, after changing the option file, asking for a log
overwrites the options file and makes it invalid.  Changing back to
the original database did not help.

Not sure if I am doing something wrong, but monotone making the
options file invalid makes me feel uncomfortable :(

[19:46] (0,2) 0 $ cat _MTN/options
database "/local_home/hugo/neurospaces_project/MTN/neurospaces-developer.mtn
  branch "0"
[19:46] (0,2) 0 $ mtn log --debug
mtn: searching for '_MTN' directory with root '/'
mtn: working root is
'/local_home/hugo/neurospaces_project/installer/source/snapshots/0'
mtn: initial relative path is ''
mtn: skipping nonexistent rcfile '/local_home/hugo/.monotone/monotonerc'
mtn: skipping nonexistent rcfile '_MTN/monotonerc'
mtn: searching for '_MTN' directory with root '/'
mtn: working root is
'/local_home/hugo/neurospaces_project/installer/source/snapshots/0'
mtn: initial relative path is ''
mtn: skipping nonexistent rcfile '/local_home/hugo/.monotone/monotonerc'
mtn: skipping nonexistent rcfile '_MTN/monotonerc'
mtn: local dump path is _MTN/debug
mtn: setting dump path to
/local_home/hugo/neurospaces_project/installer/source/snapshots/0/_MTN/debug
mtn: loading lua hook note_mtn_startup
mtn: executing command 'log'
mtn: options path is _MTN/options
mtn: branch name is ''
mtn: options path is _MTN/options
mtn: writing _MTN/options via temp _MTN/mty0dn8e.tmp
mtn: revision path is _MTN/revision
mtn: database.cc:3637: usage constraint 'N(false)' violated
mtn: saving current work set: 4 items
mtn: finished saving work set
mtn: contents of work set:
mtn: Current work set: 4 items
mtn: ----- begin 'system_flavour' (in virtual void
sanity::initialize(int, char**, const char*), at sanity.cc:75)
mtn: Linux 2.6.18-53.1.19.el5 #1 SMP Tue Apr 22 03:01:13 EDT 2008 i686
mtn: -----   end 'system_flavour' (in virtual void
sanity::initialize(int, char**, const char*), at sanity.cc:75)
mtn: ----- begin 'cmdline_string' (in virtual void
sanity::initialize(int, char**, const char*), at sanity.cc:89)
mtn: 'mtn', 'log', '--debug'
mtn: -----   end 'cmdline_string' (in virtual void
sanity::initialize(int, char**, const char*), at sanity.cc:89)
mtn: ----- begin 'string(lc_all)' (in virtual void
sanity::initialize(int, char**, const char*), at sanity.cc:94)
mtn: en_US.UTF-8
mtn: -----   end 'string(lc_all)' (in virtual void
sanity::initialize(int, char**, const char*), at sanity.cc:94)
mtn: ----- begin 'full_version_string' (in virtual void
mtn_sanity::initialize(int, char**, const char*), at mtn-sanity.cc:23)
mtn: monotone 0.40 (base revision: 5ccc279f9dea0444b47f03dd5291ecc985fcb7f6)
mtn: Running on          : Linux 2.6.18-53.1.19.el5 #1 SMP Tue Apr 22
03:01:13 EDT 2008 i686
mtn: C++ compiler        : GNU C++ version 4.2.3 (Debian 4.2.3-3)
mtn: C++ standard library: GNU libstdc++ version 20080322
mtn: Boost version       : 1_34_1
mtn: Changes since base revision:
mtn: unknown
mtn: -----   end 'full_version_string' (in virtual void
mtn_sanity::initialize(int, char**, const char*), at mtn-sanity.cc:23)
mtn: statement cache statistics
mtn: prepared 1 statements
mtn: 0 executions of SELECT height FROM heights WHERE revision = ?
mtn: misuse: database
/local_home/hugo/neurospaces_project/MTN/neurospaces-developer.mtn
mtn: misuse:   branch  does not exist
[19:46] (0,2) 0 $ cat _MTN/options
database "/local_home/hugo/neurospaces_project/MTN/neurospaces-developer.mtn
  branch "
[19:46] (0,2) 0 $



If I do a fresh checkout in a temporary directory, everything seems
fine and monotone behaves as expected without problem.

[19:39] (0,2) tmp $ mtn co --db
~/neurospaces_project/MTN/neurospaces-developer.mtn -b 0 .


Below the differences between the two directories.  Seems that the
'new_manifest' line is the only significant difference.

[19:58] (0,2) snapshots $ diff -ur tmp/ 0/
Only in 0/: config.log
Only in 0/: config.status
Only in 0/: Makefile
diff -ur tmp/_MTN/options 0/_MTN/options
--- tmp/_MTN/options    2008-11-15 19:58:01.000000000 -0600
+++ 0/_MTN/options      2008-11-15 19:51:02.000000000 -0600
@@ -1,2 +1,2 @@
-database "/local_home/hugo/neurospaces_project/MTN/neurospaces-developer.mtn"
+database "/local_home/hugo/neurospaces_project/MTN/installer.mtn
   branch "0"
diff -ur tmp/_MTN/revision 0/_MTN/revision
--- tmp/_MTN/revision   2008-11-15 19:58:01.000000000 -0600
+++ 0/_MTN/revision     2008-11-04 11:01:09.000000000 -0600
@@ -1,5 +1,5 @@
 format_version "1"

-new_manifest [0000000000000000000000000000000000000004]
+new_manifest [0000000000000000000000000000000000000001]

 old_revision [8e4f31b8c556911c4cbce9a52c789383947d7004]


Hugo


--

                    Hugo Cornelis Ph.D.

              Neurospaces Project Architect
                http://www.neurospaces.org/

                  Research Imaging Center
   University of Texas Health Science Center at San Antonio
                    7703 Floyd Curl Drive
                 San Antonio, TX  78284-6240

                    Phone: 210 567 8112
                      Fax: 210 567 8152




reply via email to

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