All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
* Added --force option that disables repository skipping.
* Repositories using skip = lazy will not be checked out by "mr update"
or "mr checkout" unless --force is used.
(Thanks, Adam Spiers)
* Optimizations.
* Fix shell escaping of parameters passed to mr commands. Closes: #644672
(Thanks, Adam Spiers)
* Optimizations.
* Fix shell escaping of parameters passed to mr commands. Closes: #644672
+ * Added --force option that disables repository skipping.
+ * Repositories using skip = lazy will not be checked out by "mr update"
+ or "mr checkout" unless --force is used.
-- Joey Hess <joeyh@debian.org> Tue, 29 Nov 2011 18:15:51 -0400
-- Joey Hess <joeyh@debian.org> Tue, 29 Nov 2011 18:15:51 -0400
as well as look for a F<.mrconfig> file in the current directory, or in one
of its parent directories.
as well as look for a F<.mrconfig> file in the current directory, or in one
of its parent directories.
+=item -f
+
+=item --force
+
+Force mr to act on repositories that would normally be skipped due to their
+configuration.
+
Another way to use skip is for a lazy checkout. This makes mr skip
operating on a repo unless it already exists. To enable the
Another way to use skip is for a lazy checkout. This makes mr skip
operating on a repo unless it already exists. To enable the
-repo, you have to explicitly check it out (using "mr -d foo checkout").
+repo, you have to explicitly check it out (using "mr --force -d foo checkout").
my $verbose=0;
my $quiet=0;
my $stats=0;
my $verbose=0;
my $quiet=0;
my $stats=0;
my $insecure=0;
my $interactive=0;
my $max_depth;
my $insecure=0;
my $interactive=0;
my $max_depth;
$ENV{MR_ACTION}=$action;
foreach my $testname ("skip", "deleted") {
$ENV{MR_ACTION}=$action;
foreach my $testname ("skip", "deleted") {
+ next if $force && $testname eq "skip";
+
my $testcommand=findcommand($testname, $dir, $topdir, $subdir, $is_checkout);
if (defined $testcommand) {
my $testcommand=findcommand($testname, $dir, $topdir, $subdir, $is_checkout);
if (defined $testcommand) {
"d|directory=s" => sub { $directory=abs_path($_[1]) },
"c|config=s" => sub { $ENV{MR_CONFIG}=$_[1]; $config_overridden=1 },
"p|path" => sub { }, # now default, ignore
"d|directory=s" => sub { $directory=abs_path($_[1]) },
"c|config=s" => sub { $ENV{MR_CONFIG}=$_[1]; $config_overridden=1 },
"p|path" => sub { }, # now default, ignore
"v|verbose" => \$verbose,
"q|quiet" => \$quiet,
"s|stats" => \$stats,
"v|verbose" => \$verbose,
"q|quiet" => \$quiet,
"s|stats" => \$stats,
LANG=C bzr info | egrep -q '^Checkout'
}
lazy() {
LANG=C bzr info | egrep -q '^Checkout'
}
lazy() {
- if [ "$MR_ACTION" = checkout ] || [ -d "$MR_REPO" ]; then
+ if [ -d "$MR_REPO" ]; then