Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebar committed Sep 4, 2012
2 parents 748b992 + a5d1da4 commit 5fedd0b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ Push commits from git to a new qqueue in an hg repository. If GIT\_REVS is
omitted, push the commits `$(git merge-base HEAD $(git-tracks))..HEAD` (i.e.
everything in the current branch that's not upstream).

If `-t` or `--tip` is specified, update the hg repository to its tip before
pushing. Otherwise, update the hg repository to the revision atop which the
git commits are based.
If `-t` or `--tip` is specified, pull and update the hg repository to latest
tip before pushing. Otherwise, update the hg repository to the revision atop
which the git commits are based.

## git-push-to-try

Expand Down
7 changes: 7 additions & 0 deletions git-push-to-hg
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ hg_cmd qqueue patches
hg_cmd qqueue -q --purge git-temp || true
hg_cmd qqueue -q --create git-temp

# If we passed --tip, do hg pull && hg up. (This isn't the same as hg pull -u:
# if there's nothing to pull, hg pull -u will skip the update!)
if [[ "$push_to_tip" != 0 ]]; then
hg_cmd pull
hg_cmd up --check
fi

# Pass --quiet only for not-old-git.
if [[ "$old_git" == 0 ]]; then
git_format_quiet='--quiet'
Expand Down

0 comments on commit 5fedd0b

Please sign in to comment.