Mercurial > hg-git
changeset 558:ab8061d9942b
tests: add coverage for outgoing with bookmark changes only
author | David M. Carr <david@carrclan.us> |
---|---|
date | Thu, 25 Oct 2012 20:49:26 -0400 |
parents | 4f4ab2d89375 |
children | d4ccec82b816 |
files | tests/test-bookmark-workflow.t |
diffstat | 1 files changed, 42 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-bookmark-workflow.t Thu Oct 25 20:49:08 2012 -0400 +++ b/tests/test-bookmark-workflow.t Thu Oct 25 20:49:26 2012 -0400 @@ -137,3 +137,45 @@ no changes found [1] $ cd .. + +Changed bookmarks, but not revs + $ cd purehglocalrepo + $ hg bookmark -fr 2 b1 + $ hg bookmark -r 0 b2 + $ hgstate + 3 fc2664cac217 "add delta" bookmarks: [master] + 2 d85ced7ae9d6 "add gamma" bookmarks: [b1] + 1 7bcd915dc873 "add beta" bookmarks: [] + 0 3442585be8a6 "add alpha" bookmarks: [b2] + $ hg outgoing + comparing with $TESTTMP/hgremoterepo + searching for changes + no changes found + [1] +As of 2.3, Mercurial's outgoing -B doesn't actually show changed bookmarks +It only shows "new" bookmarks. Thus, b1 doesn't show up. + $ hg outgoing -B + comparing with $TESTTMP/hgremoterepo + searching for changed bookmarks + b2 3442585be8a6 + $ cd .. + $ cd hggitlocalrepo + $ hg bookmark -fr 2 b1 + $ hg bookmark -r 0 b2 + $ hgstate + 3 fc2664cac217 "add delta" bookmarks: [master] + 2 d85ced7ae9d6 "add gamma" bookmarks: [b1] + 1 7bcd915dc873 "add beta" bookmarks: [] + 0 3442585be8a6 "add alpha" bookmarks: [b2] + $ hg outgoing + comparing with $TESTTMP/gitremoterepo + searching for changes + no changes found + [1] +As of 2.3, Mercurial's outgoing -B doesn't actually show changed bookmarks +It only shows "new" bookmarks. Thus, b1 doesn't show up. + $ hg outgoing -B + comparing with $TESTTMP/gitremoterepo + searching for changed bookmarks + b2 3442585be8a6 + $ cd ..