diff options
author | Fabien Tassin <fta@ubuntu.com> | 2009-01-19 23:24:19 +0100 |
---|---|---|
committer | Fabien Tassin <fta@ubuntu.com> | 2009-01-19 23:24:19 +0100 |
commit | fe1c29ce77a9cd7a404d3da0b9ef45e0648b7fc3 (patch) | |
tree | 984faef706a8c589ddda2d8dbb6999509091b7d9 /src/mozclient/lib/MozClient/Git.pm | |
parent | 728f0d60d6d5452d178f6a5ad06aa2d4a869f05a (diff) |
* [mozclient] add support for local branches instead of the configured remote ones.
It is faster if you have to publish tarballs quite often from a branch,
such as when doing daily snapshots.
- update src/mozclient.mk.in
- update src/mozclient/lib/MozClient/{CVS,Git,Mercurial,Subversion,VCS}.pm
- update src/mozclient/mozclient.pl
- update README
Diffstat (limited to 'src/mozclient/lib/MozClient/Git.pm')
-rw-r--r-- | src/mozclient/lib/MozClient/Git.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mozclient/lib/MozClient/Git.pm b/src/mozclient/lib/MozClient/Git.pm index 393032b..e160af3 100644 --- a/src/mozclient/lib/MozClient/Git.pm +++ b/src/mozclient/lib/MozClient/Git.pm @@ -23,6 +23,7 @@ package MozClient::Git; use vars qw(@ISA); use strict; +use Carp; use MozClient::VCS; @ISA = ("MozClient::VCS"); @@ -66,6 +67,11 @@ sub checkout { my $self = shift; $self->LOG("MozClient:Git::checkout:()"); + + if (defined $self->{'local-branch'}) { + confess "Can't MozClient::checkout() a local branch for " . $self->vcs; + # TODO: fix it if needed + } $self->chdir($self->work_dir); my $modules = []; if (defined $self->{'MOZCLIENT_PROJECT'}) { |