Merge lp://qastaging/~rockwalrus/ubuntu/karmic/devscripts/bugfixes into lp://qastaging/ubuntu/karmic/devscripts

Proposed by Rockwalrus
Status: Rejected
Rejected by: James Westby
Proposed branch: lp://qastaging/~rockwalrus/ubuntu/karmic/devscripts/bugfixes
Merge into: lp://qastaging/ubuntu/karmic/devscripts
Diff against target: 22 lines
1 file modified
scripts/debcommit.pl (+5/-2)
To merge this branch: bzr merge lp://qastaging/~rockwalrus/ubuntu/karmic/devscripts/bugfixes
Reviewer Review Type Date Requested Status
Benjamin Drung Needs Fixing
Ubuntu branches Pending
Review via email: mp+13233@code.qastaging.launchpad.net
To post a comment you must log in.
Revision history for this message
Rockwalrus (rockwalrus) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :

I uploaded the fix to lucid. If you want to have it in karmic too, you have to add a changelog entry and follow the SRU process [1].

[1] https://wiki.ubuntu.com/StableReleaseUpdates

review: Needs Fixing
Revision history for this message
Rockwalrus (rockwalrus) wrote :

It's enough for it to be in lucid. I proposed the fix to be in karmic back before karmic was released, but I don't think it's serious enough for an SRU.

Revision history for this message
James Westby (james-w) wrote :

Ok, rejecting it now, thanks,

James

Unmerged revisions

79. By Rockwalrus

Search for .bzr in addition to .git in parent directory traversal.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'scripts/debcommit.pl'
--- scripts/debcommit.pl 2009-08-16 19:15:16 +0000
+++ scripts/debcommit.pl 2009-10-12 17:05:21 +0000
@@ -414,13 +414,16 @@
414 }414 }
415 }415 }
416416
417 # .git may be in a parent directory, rather than the current417 # .git or .bzr may be in a parent directory, rather than the current
418 # directory, if multiple packages are kept in one git repository.418 # directory, if multiple packages are kept in one repository.
419 my $dir=getcwd();419 my $dir=getcwd();
420 while ($dir=~s/[^\/]*\/?$// && length $dir) {420 while ($dir=~s/[^\/]*\/?$// && length $dir) {
421 if (-d "$dir/.git") {421 if (-d "$dir/.git") {
422 return "git";422 return "git";
423 }423 }
424 if (-d "$dir/.bzr") {
425 return "bzr";
426 }
424 }427 }
425428
426 die "debcommit: not in a cvs, subversion, baz, bzr, git, hg, svk or darcs working copy\n";429 die "debcommit: not in a cvs, subversion, baz, bzr, git, hg, svk or darcs working copy\n";

Subscribers

People subscribed via source and target branches

to all changes: