src/Pure/General/mercurial.scala
changeset 71383 8313dca6dee9
parent 71322 0256ce61f405
child 71562 794c8b0ad8f1
equal deleted inserted replaced
71382:6316debd3a9f 71383:8313dca6dee9
   198       true
   198       true
   199     }
   199     }
   200     val edited =
   200     val edited =
   201       hgrc.is_file && {
   201       hgrc.is_file && {
   202         val lines = split_lines(File.read(hgrc))
   202         val lines = split_lines(File.read(hgrc))
   203         lines.filter(header).length == 1 && {
   203         lines.count(header) == 1 && {
   204           if (local_hg.paths(options = "-q").contains(path_name)) {
   204           if (local_hg.paths(options = "-q").contains(path_name)) {
   205             val old_source = local_hg.paths(args = path_name).head
   205             val old_source = local_hg.paths(args = path_name).head
   206             val old_entry = path_name + ".old = " + old_source
   206             val old_entry = path_name + ".old = " + old_source
   207             val lines1 =
   207             val lines1 =
   208               lines.map {
   208               lines.map {