Comments (15)
What part of it isn't clear? The PATH_TO_HG_REPO?
from moz-git-tools.
On Saturday, January 10, 2015, Andrew McCreight [email protected]
wrote:
What part of it isn't clear? The PATH_TO_HG_REPO?
Well I would say all of it. The terminology assumes some kind of knowledge
of hg. It's not clear what -tip means - at least I don't know what that
means git wise.
Also, it's not clear how one uses:
Push the commits
$(git merge-base HEAD $ (git-tracks))..HEAD
Or where, or if at all in this context. Might be the above assumes way too
much git knowledge (at least more than I have, and I've been using git for
a couple of years).
Would be nice to have some real examples to make some sense of how to use
this quickly (ideally just something one can copy/paste to command line).
—
Reply to this email directly or view it on GitHub
#28 (comment)
.
from moz-git-tools.
Alright, I'll try to write something up. In the meanwhile for your use, what I use most commonly is this:
git-push-to-try ~/hg/mc/ -b d -p linux -u all -t none
where ~/hg/mc/ is the directory of my hg repo for mozilla-central. "-b d -p linux -u all -t none" is just the standard try chooser mumbo jumbo from http://trychooser.pub.build.mozilla.org/
Adding the -t just makes it so it does hg pull -u before it applies your patches, I think. I don't use that, because I like to ensure my git and hg repos stay in sync.
The
from moz-git-tools.
where ~/hg/mc/ is the directory of my hg repo for mozilla-central.
Hehe, I was not aware that I would need to clone the hg repo for mozilla central in addition to the git repo. Can you please mention that in the README?
The
$(git merge-base HEAD $ (git-tracks))..HEAD is just describing what commits it pushes. I think it is basically what |hg qapplied| shows you. I'll have to check that.
I've never really used hg, but will look into it a bit to see what qapplied does.
Thanks also for the additional clarifications and help! I'll try this out (no pun intended!).
from moz-git-tools.
Oh, sorry, I meant, what |git qapplied| shows you, which is a command defined by moz-git-tools that attempts to mimic the hg queue work flow. Basically, if you set your upstream to some branch then it will show you the commits not in the upstream. Or something like that.
from moz-git-tools.
(...just putting this here for record keeping...)
So, the only bit I needed to add to get this working was the following to .hgrc:
[extensions]
mq =
When the above was missing, hg complained that qpop
and qapplied
were unknown commands.
from moz-git-tools.
@marcoscaceres can you document the steps you used to get this working? Pasting from bash history would be cool. 🆒
edit: I eventually figured this out--turns out I was running into ssh issues (using wrong email in my ssh config for the try server 🙈 )
Here's the steps I did in case this is useful for writing an example, or future readers:
With an upstream remote (pointing to [email protected]:mozilla/gecko-dev.git
), I set the upstream for my branch like so: git branch --set-upstream cool_guy_branch upstream/master
.
I needed to clone the hg repo, and I went ahead and set an environment variable HG_REPO
pointing to it (twice the repos, twice the fun).
And then, use the actual command: git push-to-try $HG_REPO -b d -p linux,android-x86 -u all -t none
I don't know if this is normal, or specific to my set up, but it just sat there until I figured out I needed to type :wq
for my commit message (I had a weird Vim: Warning: Output is not to a terminal
message in my terminal). And after that it succeeded and I got a URL for my try push.
from moz-git-tools.
@miketaylr, good to hear. I also found this helpful too: http://glandium.org/blog/?p=3413
from moz-git-tools.
@marcoscaceres the updated version of that article http://glandium.org/blog/?page_id=3438 However following the steps in the article just leaves me hanging in the terminal
from moz-git-tools.
@vladikoff I'm not sure what you mean by "just leaves me hanging in the terminal"?
from moz-git-tools.
@marcoscaceres after typing in git push try
I get no more feedback or output in the terminal. It just sits there with the process running (waited ~30 minutes). However I got things to work using @miketaylr's method" (:tm:) with git push-to-try $HG_REPO ....
.
from moz-git-tools.
@vladikoff ah, ok. Yeah, I'm using:
git-push-to-try --tip ~/hg-moz -p all -u all -t none
from moz-git-tools.
It also took me a long time with a lot of trial-and-error before I figured out how to properly use push-to-try
, because there didn't seem to be any examples anywhere.
A complete example for each instruction in the README would be extremely helpful!
However, maybe the push-to-try
example should not use -p all -u all
, because that is frowned upon by sheriffs (it triggers some resource-intensive builds and test suites which are rarely useful, so it's basically wasting resources). May I suggest -p linux,linux64,macosx64,win32,win64 -u reftest,mochitests
instead?
from moz-git-tools.
heh, I've been using -p all -u all
for the last year+. I'll switch to the one @jankeromnes suggested.
from moz-git-tools.
I had been using that as well for a while (since I'd figured out how to make push-to-try
work) but one day a sheriff complained to me about that, and told me about http://trychooser.pub.build.mozilla.org/
from moz-git-tools.
Related Issues (20)
- Register git commands in git HOT 1
- `git push-to-try` complains about try not being local? HOT 4
- Should git-patch-to-hg-patch zap "[PATCH] " prefix? HOT 11
- `[PATCH]` prefix in commit message not removed with git-patch-to-hg-patch HOT 3
- Incorrect format HOT 1
- Make upstream-branch optional HOT 3
- git-push-to-try invokes git merge-base incorrectly HOT 4
- Add a command line option to indicate review should be set by default HOT 1
- git-patch-to-hg-patch should handle quoted-printable Subject lines HOT 6
- push-to-hg should actually push to hg if -t is supplied
- push-to-try complains about merge bases even when I specify a revision range
- Clarify what is PATH_TO_HG_REPO? HOT 1
- Add an option for push-to-try to open the link in a browser HOT 1
- `git bz apply` fails to detect patch format HOT 7
- Tag a release? HOT 2
- git-push-to-hg msys issues
- Tagged release does not include cached version of submodule HOT 2
- CODE_OF_CONDUCT.md file missing
- Migrate to Python 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moz-git-tools.