From e0934659a5558d9b8341dd10c638ed3b34cdaa05 Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Thu, 18 Mar 2010 19:17:16 -0700 Subject: [PATCH] [commit-patch] Add bzr support. Bzr doesn't seem to have amend support. :-( --- commit-patch | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/commit-patch b/commit-patch index 711aff8..d14565b 100755 --- a/commit-patch +++ b/commit-patch @@ -90,6 +90,17 @@ while (!$vc{name}) { $vc{remove} = 'true'; $vc{patcharg} = '-p1'; $vc{lsdiffarg} = [qw(--strip 1)]; + } elsif (-d "$repo/.bzr") { + $vc{name} = 'bzr'; + $vc{diff} = 'bzr diff'; + $vc{commit} = 'bzr commit'; + $vc{message} = sub { ('-m', $_[0]) }; + $vc{message_file} = sub { ('--file', $_[0]) }; + $vc{add} = 'bzr add'; + $vc{remove} = 'true'; + $vc{patcharg} = '-p0'; + $vc{lsdiffarg} = []; + chdir $repo; # otherwise commit-partial from within a project subdir fails. } elsif (-d "$repo/.git") { $vc{name} = 'git'; $vc{diff} = 'git diff'; -- 2.51.2