monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] broken links break monotone


From: Robert Bihlmeyer
Subject: [Monotone-devel] broken links break monotone
Date: Sun, 28 Mar 2004 18:03:17 +0200

Running "monotone ls unknown" in a directory containing a broken
symlink (like the one emacs creates for files that are currently
unsaved) makes it abort with:

*** Error: std::runtime_error: boost::filesystem::is_directory: 
"/home/robbe/work/mtg/.#browse": No such file or directory

The appended patch fixes that.

# Old manifest: 97acaec66127fc5504aa7f51dd56b715be95b6a0
# New manifest: 08b910792b0b7147a0d6c2f3a79bbf43a0fb9943
# Summary of changes:
#   patch file_io.cc 3e3c6a19d654c4954f6b0449763990c1910ee9fa -> 
2b034b8eafedeb81eee93446dca9cadfa38514ef
--- file_io.cc
+++ file_io.cc
@@ -400,7 +400,9 @@
       if (book_keeping_file (entry))
        continue;
       
-      if (fs::is_directory(entry))
+      if (!fs::exists(entry)) 
+       ;                       // ignore
+      else if (fs::is_directory(entry))
        walk_tree_recursive(entry, rel_entry, walker);
       else
        {
-- 
Robbe

reply via email to

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