Project

General

Profile

Actions

Bug #10636

closed

"make-snapshot tmp stable" broken

Added by vo.x (Vit Ondruch) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Checked out revision 48930.
[ruby-core:67064]

Description

It seems that r48840 breaks make-snapshot:

$ tool/make-snapshot tmp stable
/builddir/ruby/tool/vcs.rb:165:in `fnmatch?': no implicit conversion of Regexp into String (TypeError)
	from /builddir/ruby/tool/vcs.rb:165:in `block (2 levels) in branch_list'
	from /builddir/ruby/tool/vcs.rb:163:in `each'
	from /builddir/ruby/tool/vcs.rb:163:in `block in branch_list'
	from /builddir/ruby/tool/vcs.rb:162:in `popen'
	from /builddir/ruby/tool/vcs.rb:162:in `branch_list'
	from tool/make-snapshot:142:in `package'
	from tool/make-snapshot:356:in `block in <main>'
	from tool/make-snapshot:356:in `collect'
	from tool/make-snapshot:356:in `<main>'

The attached patch fixes the issue for me, but I have not tested it with Git, so I hope it does not break anything else.


Files

fix-make-snapshot.patch (873 Bytes) fix-make-snapshot.patch vo.x (Vit Ondruch), 12/23/2014 12:31 PM

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r48946.


make-snapshot: fix stable snapshot

  • tool/make-snapshot (package): VCS#branch_list expects glob a
    pattern string but not a regexp. based on the patch by Vit
    Ondruch. in [ruby-core:67064]. [Bug #10636]
  • tool/vcs.rb (VCS::SVN#branch_list): strip newlines.
  • tool/vcs.rb (VCS::GIT.get_revisions): retrieve modified time
    from toplevel log too.
  • tool/vcs.rb (VCS::GIT#branch_list): yield for each lines.
Actions

Also available in: Atom PDF

Like0
Like0