Comment 1 by Richard Levitte, Nov 28, 2010
I forgot to mention I had done this as well: cd ~/tmp/foo mtn register The problem is, of course, that monotone tries to check if the database pointed at in the workspace is the same as the one being listed, doesn't resolve symlinks before the comparison, so the registered workspace doesn't seem to be the one connected to that database after all, and is therefore not displayed or counted.
Comment 2 by Thomas Keller, Nov 29, 2010
I think we have almost no special handling for symlinks in monotone at all. And while this mostly works as it should (for example when you work on a symlinked database where we give the symlink to sqlite and this does the actual work), it breaks for use cases like the one above. Now we could add another requirement "all symlinks resolved" to our "normalized paths" definition in src: paths.cc@t:monotone-0.99#99, but I doubt this is either an easy task (handling symlink loops) nor something which comes without cost (slower path handling and / or unwanted or unexpected behaviour). This doesn't say we shouldn't do it, but I'd strongly vote to do this after 1.0 and rather point the user to list the new database location as additional location via the get_default_database_locations lua hook.
Comment 3 by Thomas Keller, Feb 21, 2011
Summary:
list databases / list workspaces does not display symlinked databases / workspaces properly
Sign in to reply to this comment.
Reported by Richard Levitte, Nov 28, 2010