where did a bookmark (or a branch) start

Uwe Brauer oub at mat.ucm.es
Sun Sep 18 20:44:15 UTC 2016


Hi

I am looking for a command which allows me (especially for big repos
which long graphs) the base of branch (bookmark), I need the base
branching point later for rebasing.

By this I mean the following I attach the script of a simple repo which
besides default has another branch the log looks like



 parent:      2:508cd0e339ab
|  user:        Uwe Brauer <oub at mat.ucm.es>
|  date:        Sun Sep 18 20:13:39 2016 +0000
|  summary:     back to default
|
| o  changeset:   5:936cd2efc92c
| |  branch:      pretty
| |  user:        Uwe Brauer <oub at mat.ucm.es>
| |  date:        Sun Sep 18 20:12:02 2016 +0000
| |  summary:     Last and best commit
| |
| o  changeset:   4:4f8cd2a23bf8
| |  branch:      pretty
| |  user:        Uwe Brauer <oub at mat.ucm.es>
| |  date:        Sun Sep 18 20:12:02 2016 +0000
| |  summary:     pretty2
| |
| o  changeset:   3:3176ee73bc3e
|/   branch:      pretty
|    user:        Uwe Brauer <oub at mat.ucm.es>
|    date:        Sun Sep 18 20:12:02 2016 +0000
|    summary:     pretty1
|

I consider changeset 3 as the base of the branch pretty.

The command

log -r "parents(min(branch(pretty)))"

Gives me changeset 2 which is close.

Now I have the same question concerning branches with bookmarks (script attached).
log -r "parents(min(bookmark(pretty)))"

Returns be changeset 4 which I don't understand.

What do I miss?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: create-repo-branch.sh
Type: text/x-sh
Size: 471 bytes
Desc: not available
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20160918/58f7a41d/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create-repo-book.sh
Type: text/x-sh
Size: 488 bytes
Desc: not available
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20160918/58f7a41d/attachment-0001.sh>


More information about the Mercurial mailing list