diff options
author | Fabrizio Chiarello <ponch@autistici.org> | 2008-09-19 18:31:53 +0200 |
---|---|---|
committer | Frej Drejhammar <frej.drejhammar@gmail.com> | 2008-12-20 19:51:02 +0100 |
commit | a984e233c2732c0e82db30d171a76035e08575cc (patch) | |
tree | eda2275cd60e5917f0e4ca482cabeaab7e465dfd /hg-fast-export.sh | |
parent | fdbb1decaa587fb589e375571e551a9724af1d3e (diff) | |
download | hg-fast-export-a984e233c2732c0e82db30d171a76035e08575cc.tar.gz |
hg-fast-export: add option to track remote branches under a custom namespace
Add -o, --origin <name> to allow user to set a namespace used
when importing remote branches.
Signed-off-by: Fabrizio Chiarello <ponch@autistici.org>
Diffstat (limited to 'hg-fast-export.sh')
-rwxr-xr-x | hg-fast-export.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hg-fast-export.sh b/hg-fast-export.sh index 2f721e2..8219523 100755 --- a/hg-fast-export.sh +++ b/hg-fast-export.sh @@ -12,7 +12,7 @@ SFX_STATE="state" QUIET="" PYTHON=${PYTHON:-python} -USAGE="[--quiet] [-r <repo>] [-m <max>] [-s] [-A <file>] [-M <branch_name>]" +USAGE="[--quiet] [-r <repo>] [-m <max>] [-s] [-A <file>] [-M <name>] [-o <name>]" LONG_USAGE="Import hg repository <repo> up to either tip or <max> If <repo> is omitted, use last hg repository as obtained from state file, GIT_DIR/$PFX-$SFX_STATE by default. @@ -26,7 +26,8 @@ Options: -A Read author map from file (Same as in git-svnimport(1) and git-cvsimport(1)) -r Mercurial repository to import - -M Set the default branch name + -M Set the default branch name (default to 'master') + -o Use <name> as branch namespace to track upstream (eg 'origin') " . "$(git --exec-path)/git-sh-setup" |