comparison mercurial/exchange.py @ 20613:10433163bf57

revset: add 'only' revset Adds a only() revset that has two forms: only(<set>) is equivalent to "::<set> - ::(heads() - heads(<set>::))" only(<include>,<exclude>) is equivalent to "::<include> - ::<exclude>" On a large repo, this implementation can process/traverse 50,000 revs in 0.7 seconds, versus 4.2 seconds using "::<include> - ::<exclude>". This is useful for performing histedits on your branch: hg histedit -r 'first(only(.))' Or lifting branch foo off of branch bar: hg rebase -d @ -s 'only(foo, bar)' Or a variety of other uses.
author Durham Goode <durham@fb.com>
date Sat, 16 Nov 2013 08:57:08 -0800
parents 004a1744088d
children 09e7118715eb
comparison
equal deleted inserted replaced
20612:60c308b932eb 20613:10433163bf57