Commits

Pierre-Yves David committed e291e52

prepare for Full scale filtering !!!

Comments (0)

Files changed (8)

     if ui.config('alias', 'olog', None) is None:
         ui.setconfig('alias', 'olog', "log -r 'precursors(.)' --hidden")
     if ui.config('alias', 'odiff', None) is None:
-        ui.setconfig('alias', 'odiff', "diff --rev 'limit(precursors(.),1)' --rev .")
+        ui.setconfig('alias', 'odiff', "diff --hidden --rev 'limit(precursors(.),1)' --rev .")
 
 # - "troubles" method on changectx
 
     elif 'bumped' in troubles:
         return _solvebumped(ui, repo, tr, opts['dry_run'])
     elif 'divergent' in troubles:
+        repo = repo.unfiltered()
+        tr = repo[tr.rev()]
         return _solvedivergent(ui, repo, tr, opts['dry_run'])
     else:
         assert False  # WHAT? unknown troubles

tests/test-amend.t

   foo
   $ hg branches
   foo                            2:a34b93d251e4
-  default                        0:07f494440405 (inactive)
   $ glog
   @  2@foo(draft) adda
   
   marked working directory as branch default
   (branches are permanent and global, did you want a bookmark?)
   $ hg ci -m resetbranch
-  created new head
   $ hg branch --force foo
   marked working directory as branch foo
   (branches are permanent and global, did you want a bookmark?)

tests/test-evolve.t

 
   $ hg phase --public 0 -v
   phase changed for 1 changesets
-  $ hg amend -c 2
+  $ hg amend -c 4
   abort: cannot amend non ancestor changeset
   [255]
 
 
 (amend of on ancestors)
 
-  $ hg amend -c 2
-  abort: cannot amend non ancestor changeset
-  [255]
-
   $ hg amend --note 'french looks better'
   1 new unstable changesets
   $ hg log
 
 phase change turning obsolete changeset public issue a bumped warning
 
-  $ hg phase --public 7
+  $ hg phase --hidden --public 7
   1 new bumped changesets
 
 all solving bumped troubled
   |
   o  0	: base - test
   
-  $ hg diff -r 9 -r 8
+  $ hg diff --hidden -r 9 -r 8
   $ hg diff -r 9^ -r 9
   diff --git a/main-file-1 b/main-file-1
   --- a/main-file-1
   checking files
   3 files, 4 changesets, 4 total revisions
   $ hg --config extensions.hgext.mq= strip 'extinct()'
+  abort: empty revision set
+  [255]
+  $ hg --config extensions.hgext.mq= strip --hidden 'extinct()'
   saved backup bundle to $TESTTMP/alpha/.hg/strip-backup/e87767087a57-backup.hg
   $ hg verify
   checking changesets

tests/test-obsolete-divergent.t

   >    hg ci -m "$1"
   > }
   $ getid() {
-  >    hg id --debug -ir "desc('$1')"
+  >    hg id --hidden --debug -ir "desc('$1')"
   > }
 
 setup repo
   |/
   @  0:d20a80d4def3 base
   
-  $ hg debugsuccessorssets 'all()'
+  $ hg debugsuccessorssets --hidden 'all()'
   d20a80d4def3
       d20a80d4def3
   007dc284c1f8
   |/
   o  0:d20a80d4def3 base
   
-  $ hg debugsuccessorssets 'all()'
+  $ hg debugsuccessorssets --hidden 'all()'
   d20a80d4def3
       d20a80d4def3
   007dc284c1f8
   |/
   @  0:d20a80d4def3 base
   
-  $ hg debugsuccessorssets 'all()'
+  $ hg debugsuccessorssets --hidden 'all()'
   d20a80d4def3
       d20a80d4def3
   007dc284c1f8
   $ hg debugobsolete bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccccccccccc
   $ hg debugobsolete `getid A_1` dddddddddddddddddddddddddddddddddddddddd
 
-  $ hg debugsuccessorssets 'desc('A_0')'
+  $ hg debugsuccessorssets --hidden 'desc('A_0')'
   007dc284c1f8
       392fd25390da
 
   |/
   o  0:d20a80d4def3 base
   
-  $ hg debugsuccessorssets 'all()'
+  $ hg debugsuccessorssets --hidden 'all()'
   d20a80d4def3
       d20a80d4def3
   007dc284c1f8
   |/
   @  0:d20a80d4def3 base
   
-  $ hg debugsuccessorssets 'all()'
+  $ hg debugsuccessorssets --hidden 'all()'
   d20a80d4def3
       d20a80d4def3
   007dc284c1f8
   |/
   o  0:d20a80d4def3 base
   
-  $ hg debugsuccessorssets 'all()'
+  $ hg debugsuccessorssets --hidden 'all()'
   d20a80d4def3
       d20a80d4def3
   007dc284c1f8
   |/
   @  0:d20a80d4def3 base
   
-  $ hg debugsuccessorssets 'all()'
+  $ hg debugsuccessorssets --hidden 'all()'
   d20a80d4def3
       d20a80d4def3
   007dc284c1f8
   |/
   @  0:d20a80d4def3 base
   
-  $ hg debugsuccessorssets 'all()'
+  $ hg debugsuccessorssets --hidden 'all()'
   d20a80d4def3
       d20a80d4def3
   007dc284c1f8
   $ newcase subset
   $ hg debugobsolete `getid A_0` `getid A_2`
   $ hg debugobsolete `getid A_0` `getid A_1` `getid A_2`
-  $ hg debugsuccessorssets 'desc('A_0')'
+  $ hg debugsuccessorssets --hidden 'desc('A_0')'
   007dc284c1f8
       82623d38b9ba 392fd25390da
 

tests/test-obsolete.t

   > allow_push = *
   > [phases]
   > publish=False
-  > [alias]
-  > odiff=diff --rev 'limit(precursors(.),1)' --rev .
   > [extensions]
   > hgext.rebase=
   > EOF
   >    hg ci -m "add $1"
   > }
   $ getid() {
-  >    hg id --debug -ir "$1"
+  >    hg id --hidden --debug -ir "$1"
   > }
 
   $ alias qlog="hg log --template='{rev}\n- {node|short}\n'"
   - 0d3f46688ccc
   4
   - 725c380fe99b
-  $ hg up 3 -q
+  $ hg up --hidden 3 -q
   Working directory parent is obsolete
   $ mkcommit d # 5 (on 3)
   1 new unstable changesets
   - 7c3bad9141dc
   0
   - 1f0dee641bb7
-  $ hg up 3 -q
+  $ hg up --hidden 3 -q
   Working directory parent is obsolete
   $ mkcommit obsol_d # 6
   created new head
   no changes found
   [1]
 
-  $ hg up -q .^ # 3
+  $ hg up --hidden -q .^ # 3
   Working directory parent is obsolete
   $ mkcommit "obsol_d'" # 7
   created new head
 
 Test rollback support
 
-  $ hg up .^ -q # 3
+  $ hg up --hidden .^ -q # 3
   Working directory parent is obsolete
   $ mkcommit "obsol_d''"
   created new head
    add obsol_c'
   branch: default
   commit: 1 deleted, 2 unknown (clean)
-  update: 4 new changesets, 4 branch heads (merge)
+  update: 2 new changesets, 2 branch heads (merge)
   unstable: 1 changesets
   divergent: 1 changesets
   $ qlog
 should not rebase extinct changeset
 
 #excluded 'whole rebase set is extinct and ignored.' message not in core
-  $ hg rebase -s 7 -d 4 2>&1 | grep -v 'whole rebase' 
-  nothing to rebase
   $ hg rebase -b '3' -d 4 --traceback
   2 new divergent changesets
   $ hg log -G --template='{rev} - {node|short} {desc}\n'
 (make an obsolete changeset public)
 
   $ cd local
-  $ hg phase --public 11
+  $ hg phase --hidden --public 11
   1 new bumped changesets
   $ hg log -G --template='{rev} - ({phase}) {node|short} {desc}\n'
   @  12 - (draft) 6db5e282cb91 add obsol_d'''
    add obsolet_conflicting_d
   branch: default
   commit: (clean)
-  update: (9|11) new changesets, (9|10) branch heads \(merge\) (re)
+  update: (2|9|11) new changesets, (3|9|10) branch heads \(merge\) (re)
   bumped: 1 changesets
   $ hg debugobsolete `getid a7a6f2b5d8a5` `getid 50f11e5e3a63`
   $ hg log -r 'conflicting()'

tests/test-stabilize-result.t

 
 Make precursors public
 
-  $ hg phase --public 8
+  $ hg phase --hidden --public 8
   1 new bumped changesets
   $ glog
   @  12:15c83af6f3a3@default(draft) bk:[] newer a
   > conflict
   > EOF
   $ hg ci -m 'More addition'
-  created new head
   $ glog
   @  15:7391601a4bfa@default(draft) bk:[] More addition
   |
   
   $ echo 'babar' >> a
   $ hg amend
-  $ hg up 15
+  $ hg up --hidden 15
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   Working directory parent is obsolete
   $ mv a a.old
 
 Stabilize It
 
-  $ hg evolve -qn
+  $ hg evolve -qn --traceback
   hg update -c 3883461cc228 &&
   hg merge 4754d61bc2db &&
   hg commit -m "auto merge resolving conflict between 3883461cc228 and 4754d61bc2db"&&
    More addition
   branch: default
   commit: (clean)
-  update: 19 new changesets, 14 branch heads (merge)
+  update: 2 new changesets, 2 branch heads (merge)
   $ hg export .
   # HG changeset patch
   # User test
 Check conflicting during conflicting resolution
 -------------------------------------------------
 
-  $ hg up 15
+  $ hg up --hidden 15
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   Working directory parent is obsolete
   $ echo 'gotta break' >> a

tests/test-tutorial.t

   adding manifests
   adding file changes
   added 1 changesets with 1 changes to 1 files (+1 heads)
-  (run 'hg heads .' to see heads, 'hg merge' to merge)
+  (run 'hg heads' to see heads, 'hg merge' to merge)
 
 I now have a new heads. Note that this remote head is immutable
 
   adding manifests
   adding file changes
   added 1 changesets with 1 changes to 1 files (+1 heads)
-  (run 'hg heads .' to see heads, 'hg merge' to merge)
+  (run 'hg heads' to see heads, 'hg merge' to merge)
   1 new unstable changesets
 
 

tests/test-uncommit.t

 
 Test phase is preserved, no local changes
 
-  $ hg up -C 3
+  $ hg up -C 3 --hidden
   8 files updated, 0 files merged, 1 files removed, 0 files unresolved
   Working directory parent is obsolete
   $ hg --config extensions.purge= purge
 
 Test --all
 
-  $ hg up -C 3
+  $ hg up -C 3 --hidden
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   Working directory parent is obsolete
   $ hg --config extensions.purge= purge