Commit Graph

30 Commits

Author SHA1 Message Date
Sean Farley
e5bc75466a tests: update output due to not syncing bookmarks 2015-02-09 16:10:55 -08:00
Sean Farley
c0759f4bb2 remotenames: let's not crash when remotenames don't exist 2015-01-16 16:08:04 -08:00
Sean Farley
cf6073a21d remotenames: add --remote to commands to display only remote names
Tests have been added accordingly.
2015-01-16 15:47:07 -08:00
Sean Farley
e6478215a8 remotebranches: add --all to branches command display remote branches
The display order is in descending revision number. A test has also been added.
2015-01-16 14:06:05 -08:00
Sean Farley
a28bfc4bd0 remotebookmarks: add --all to bookmarks command display remote bookmarks
The display order is in descending revision number. A test has also been added.
2015-01-16 14:48:56 -08:00
Sean Farley
b6d0adcc5e remotenames: split bookmarks and branches into their own namespaces 2015-01-14 14:45:24 -08:00
Sean Farley
f57b4b4008 alias.default: change the behavior of loading names
Previously, we would loaded every name, i.e. both 'remote/default' and 'remote'
are loaded from the .hg/remotenames file. Now, we always load 'remote/default'
and use the alias.default option to strip off the '/default' part.
2015-01-06 12:31:17 -08:00
Sean Farley
083e914e6b remotenames: register namespace even if no file exists
Previously, we returned early from the loadremotename method preventing
registration of our namespace. This patch moves the registration to reposetup
so that the namespace is always registered.

Test coverage has been added.
2014-12-16 22:23:41 -08:00
Sean Farley
d10de650b5 tests: add basic test for bookmark 2014-12-16 09:28:59 -08:00
Sean Farley
9fada6ba45 tests: remove pre-3.3 grep 2014-12-16 09:24:18 -08:00
Sean Farley
f1247e9d99 findtags: remove method for wrapping tags
We will now use mercurial's built-in namespace api so we don't need to pollute
the tags namespace. Therefore, we needed to update test output.
2014-03-31 19:51:44 -05:00
Sean Farley
55aa8c88b2 load: add function loadremotenames to be called in reposetup
Since mercurial automatically outputs our namespace, tests need to be updated.
2014-03-31 12:34:43 -05:00
Sean Farley
4a36a46d87 tests: remove old graphlog config 2014-03-31 19:32:08 -05:00
Sean Farley
b5ab531c8e remotenames: do a bulk search and replace 2014-03-31 19:27:54 -05:00
Sean Farley
a4faf15c67 remotenames: rename project
This is becoming much too different than remotebranches so let's just fork and
rename.
2014-03-31 19:27:54 -05:00
Augie Fackler
2cea022feb test-remotebranches.t: add test for a case that fails in current hg tip 2014-02-18 16:16:26 -05:00
Patrick Mezard
9c1e5dd717 remotebranches: add remotebranches template keyword
Return names of all remote branches heads on a revision.
2012-06-20 17:23:51 +02:00
Patrick Mezard
f0fbb42e99 remotebranches: add remotebranches() revset
It simply returns all remote branches heads.
2012-06-20 11:24:55 +02:00
Augie Fackler
4e4ce0eae3 Clean up tests to allow them to pass against more hg versions. 2012-01-27 13:51:12 -06:00
Brendan Cully
3de4623b0d tests: fix bashism (function keyword) 2011-10-31 09:26:49 -07:00
Aaron Maenpaa
024cfe09e3 Add a tag '<repo>' as a synonym for '<repo>/default'.
I find myself running ``hg up -C <repo>/default`` a lot. Furthermore,
I probably run ``hg up -C <repo>`` and get an error more often than
I actually specify a branch other than default. Consequently, it really
feels like I want to be able to run ``hg up -C ``<repo>`` and have that
bring me to '<repo>/default'.

Including the alias is configured using the "alias.default" option in the
[remotebranches] section and defaults to off. Furthermore, it doesn't
create an alias for the "default" remote since that leads confusion with the
default branch.
2011-07-25 15:43:37 -04:00
Augie Fackler
872d402616 Update for hg-side URL handling changes. 2011-04-07 18:53:39 -05:00
Augie Fackler
c388e35469 revsets: add pushed() and upstream() convenience revsets
pushed() returns the set of revsions known as pushed to any remote
repository by remotebranches. upstream() returns the set of revisions
that have been pushed to paths marked as "upstream" by listing them in
the remotebranches.upstream config field.
2011-03-29 19:02:08 -05:00
Augie Fackler
6bf6ba476a tests: add a unified test case for testing new features 2011-03-29 19:02:06 -05:00
Augie Fackler
023552018d tests: updated expectations after hg change d5457e08b175 2011-03-29 19:02:02 -05:00
Augie Fackler
7250881099 Makefile: use trick from hgit for easier test running 2011-03-29 19:02:00 -05:00
Augie Fackler
c7ca492794 remotebranches: avoid infinite recursion if a remote branch hash is missing
Includes a test.
2010-01-26 09:00:48 -06:00
Augie Fackler
ebe1858001 remotebranches: test marking after pull from http 2010-01-25 16:40:37 -06:00
Augie Fackler
d0edd98ec9 add support for schemes 2010-01-10 17:24:02 -06:00
Augie Fackler
da224a93ea add tests 2010-01-04 08:28:59 -06:00