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 <o...@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 <o...@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 <o...@mat.ucm.es>
| |  date:        Sun Sep 18 20:12:02 2016 +0000
| |  summary:     pretty2
| |
| o  changeset:   3:3176ee73bc3e
|/   branch:      pretty
|    user:        Uwe Brauer <o...@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?


 hg init
 echo master1 > test.txt
 hg add test.txt
 hg commit   -m "master1"
 echo master2 >> test.txt
 hg commit   -m "master2"
 echo master3 >> test.txt
 hg commit   -m "master3"
 hg branch pretty
 echo pretty1 > pretty.txt
 hg add pretty.txt
 hg commit -m "pretty1"
 echo pretty-two >> pretty.txt
 hg commit -m "pretty2"
 echo pretty-three >> pretty.txt
 hg commit -m "Last and best commit"
 hg update default
 echo default >> test.txt
 hg commit -m "back to default"
hg init
hg bookmark master
 echo master1 > test.txt
 hg add test.txt
 hg commit   -m "master1"
 echo master2 > test.txt
 hg commit   -m "master2"
 echo master3 > test.txt
 hg commit   -m "master3"
 hg bookmark pretty
 echo pretty1 > pretty.txt
 hg add pretty.txt
 hg commit -m "pretty1"
 echo pretty-two >> pretty.txt
 hg commit -m "pretty2"
 echo pretty-three >> pretty.txt
 hg commit -m "Last and best commit"
 hg update master
 echo default >> test.txt
 hg commit -m "back to default"
_______________________________________________
Mercurial mailing list
Mercurial@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial

Reply via email to