04d615b2d5e9: doc string for commands.pull() and push()

Adrian Buehlmann adrian at cadifra.com
Sun Mar 23 18:01:01 CDT 2008


On 23.03.2008 21:48, Matt Mackall wrote:
> On Sun, 2008-03-23 at 21:25 +0100, Adrian Buehlmann wrote:
>> Looking at:
>> http://hg.intevation.org/mercurial/crew/file/04d615b2d5e9/mercurial/commands.py
>>
>> Line 2010:
>>     An optional identifier after # indicates a particular branch, tag,
>>     or changeset to pull.
>>
>> What does that mean? Where does that # char go?
> 
> hg pull url#branch == hg pull -r branch url
> 

Ah, nice behavior, maybe the doc could be a bit stricter here
(or it's just my bad English).

Maybe something like:
    An optional identifier at the end of the URL after # indicates
    a particular branch, tag, or changeset to pull.

Another question: Shouldn't this

> hg clone -r b34b876d1f6f mercurial-crew#9b21faa6f013 zzz
requesting all changes
adding changesets
adding manifests
adding file changes
added 6362 changesets with 12230 changes to 863 files
751 files updated, 0 files merged, 0 files removed, 0 files unresolved

> hg -R zzz id
9b21faa6f013 tip

then be an error, since there is some contradiction?

Or does "#id" win over "-r id"?

If yes, then maybe something like:
    An optional identifier at the end of the URL after # indicates a particular
    branch, tag, or changeset to pull (takes precedence over -r option).



More information about the Mercurial-devel mailing list