Patchwork D5396: tests: test that narrow preserves bookmarks on widen

login
register
mail settings
Submitter phabricator
Date Dec. 9, 2018, 12:06 p.m.
Message ID <af5798c2f5141b26213b48a6f4bfc638@localhost.localdomain>
Download mbox | patch
Permalink /patch/37039/
State Not Applicable
Headers show

Comments

phabricator - Dec. 9, 2018, 12:06 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG21e7c73af75f: tests: test that narrow preserves bookmarks on widen (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5396?vs=12758&id=12761

REVISION DETAIL
  https://phab.mercurial-scm.org/D5396

AFFECTED FILES
  tests/test-narrow.t

CHANGE DETAILS




To: martinvonz, durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-narrow.t b/tests/test-narrow.t
--- a/tests/test-narrow.t
+++ b/tests/test-narrow.t
@@ -237,6 +237,21 @@ 
   0: add d0/f
   $ cd ..
 
+Widening doesn't lose bookmarks
+  $ hg clone --narrow ssh://user@dummy/master widen-bookmarks --include d0 -q
+  $ cd widen-bookmarks
+  $ hg bookmark my-bookmark
+  $ hg log -T "{rev}: {desc} {bookmarks}\n"
+  1: add d10/f my-bookmark
+  0: add d0/f 
+  $ hg tracked --addinclude d3 -q
+  $ hg log -T "{rev}: {desc} {bookmarks}\n"
+  3: add d10/f my-bookmark
+  2: add d3/f 
+  1: add d2/f 
+  0: add d0/f 
+  $ cd ..
+
 Can remove last include, making repo empty
   $ hg clone --narrow ssh://user@dummy/master narrow-empty --include d0 -r 5
   adding changesets