Package org.tmatesoft.hg.util

Examples of org.tmatesoft.hg.util.LogFacility.dump()


    } catch (HgRepositoryLockException ex) {
      try {
        wdLock.release();
      } catch (HgRepositoryLockException e2) {
        final LogFacility log = repo.getSessionContext().getLog();
        log.dump(getClass(), Error, e2, "Nested exception ignored once failed to acquire store lock");
      }
      throw ex;
    }

  }
View Full Code Here


    } catch (HgRepositoryLockException ex) {
      try {
        wdLock.release();
      } catch (HgRepositoryLockException e2) {
        final LogFacility log = repo.getSessionContext().getLog();
        log.dump(getClass(), Error, e2, "Nested exception ignored when releasing working directory lock");
      }
      throw ex;
    }
    wdLock.release();
  }
View Full Code Here

      try {
        if (f.canRead()) {
          new Parser().go(f, cfg);
        } else {
          LogFacility lf = cfg.sessionContext.getLog();
          lf.dump(ConfigFile.class, LogFacility.Severity.Debug, "Can't read file to  include: %s", f);
        }
      } catch (HgIOException ex) {
        LogFacility lf = cfg.sessionContext.getLog();
        lf.dump(ConfigFile.class, LogFacility.Severity.Warn, "Can't include %s (%s)", f, includeValue);
      }
View Full Code Here

          LogFacility lf = cfg.sessionContext.getLog();
          lf.dump(ConfigFile.class, LogFacility.Severity.Debug, "Can't read file to  include: %s", f);
        }
      } catch (HgIOException ex) {
        LogFacility lf = cfg.sessionContext.getLog();
        lf.dump(ConfigFile.class, LogFacility.Severity.Warn, "Can't include %s (%s)", f, includeValue);
      }
    }
  }
}
View Full Code Here

              String name = new String(s.substring(x+1));
              if (repo.getRepo().getChangelog().isKnown(nid)) {
                // copy name part not to drag complete line
                bm.put(name, nid);
              } else {
                log.dump(getClass(), LogFacility.Severity.Info, "Bookmark %s points to non-existent revision %s, ignored.", name, nid);
              }
            } else {
              log.dump(getClass(), LogFacility.Severity.Warn, "Can't parse bookmark entry: %s", s);
            }
          } catch (IllegalArgumentException ex) {
View Full Code Here

                bm.put(name, nid);
              } else {
                log.dump(getClass(), LogFacility.Severity.Info, "Bookmark %s points to non-existent revision %s, ignored.", name, nid);
              }
            } else {
              log.dump(getClass(), LogFacility.Severity.Warn, "Can't parse bookmark entry: %s", s);
            }
          } catch (IllegalArgumentException ex) {
            log.dump(getClass(), LogFacility.Severity.Warn, ex, String.format("Can't parse bookmark entry: %s", s));
          }
        }
View Full Code Here

              }
            } else {
              log.dump(getClass(), LogFacility.Severity.Warn, "Can't parse bookmark entry: %s", s);
            }
          } catch (IllegalArgumentException ex) {
            log.dump(getClass(), LogFacility.Severity.Warn, ex, String.format("Can't parse bookmark entry: %s", s));
          }
        }
        bookmarks = bm;
      } else {
        bookmarks = Collections.emptyMap();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.