Project

General

Profile

Feature #4455 » hg-win32-extraline.patch

Trim spurious empty line from hg on win32 - Peter Fern, 2010-02-13 11:43

View differences:

lib/redmine/scm/adapters/mercurial_adapter.rb
end
def num_revisions
cmd = "#{HG_BIN} -R #{target('')} log -r :tip --template='\n'"
shellout(cmd) {|io| io.readlines.size}
cmd = "#{HG_BIN} -R #{target('')} log -r :tip --template='.\n'"
shellout(cmd) {|io| io.readlines.compact.size}
end
# Returns the entry identified by path and revision identifier
(5-5/24)