Commit Graph

49 Commits

Author SHA1 Message Date
Ryan McElroy
4d32a9e3bd remotenames: refactor outputname to outputbranches
Now that we have outputbookmarks that sorts differently for bookmarks,
rename outputname and make it simpler and less generic
2015-01-28 15:26:42 -08:00
Ryan McElroy
13e6ed237a remotenames: sort remote bookmark output by name 2015-01-28 15:27:57 -08:00
Ryan McElroy
652a5e85fc remotenames: add option to skip local mark syncs 2015-01-28 14:03:19 -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
741edd3535 remotenames: factor out similar code for displaying remote names
Since the displaying of remotebookmark and remotebranches was practically
identical, we should consolidate the logic into one method.
2015-01-16 15:35:06 -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
dab281a640 saveremotenames: write the namespace into the file 2015-01-13 20:27:35 -08:00
Sean Farley
9244bddbf7 readremotenames: add check for the type of name written in the file format 2015-01-13 21:45:42 -08:00
Sean Farley
5bc5576725 saveremotenames: call joinremotenames for robustness 2015-01-13 16:17:26 -08:00
Sean Farley
bb76c31b5d saveremotenames: call readremotenames instead of duplicating logic 2015-01-13 16:16:27 -08:00
Sean Farley
8dd19c8011 loadremotenames: refactor to change name type later 2015-01-13 16:28:01 -08:00
Sean Farley
9dd3c9895f blockerhook: clean up logic and return early if no remotenames 2015-01-10 14:46:42 -08:00
Sean Farley
50acee3867 unhide: add config knob to always show remotenames even if hidden 2015-01-06 17:41:55 -08:00
Sean Farley
3130343156 push: add a hack to re-hide changes when pushing 2015-01-06 17:19:08 -08:00
Sean Farley
04d2a4729a save: always write the full remote name 2015-01-06 12:32:48 -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
e01d84714f import: alphabetize imports 2015-01-06 11:18:07 -08:00
Sean Farley
cb416af4f2 import: remove unused templater 2015-01-06 11:17:07 -08:00
Sean Farley
ee63d1c77f load: use try / except instead of if-block 2015-01-06 11:16:51 -08:00
Sean Farley
ef5a64dcd3 remotenames: rename 'hash' variable to 'node' 2015-01-06 10:50:19 -08:00
Sean Farley
43769a41bb remotenames: remove preferred name in favor of simpler suppressbranches 2015-01-05 20:50:58 -08:00
Sean Farley
73747d80e8 remotenames: remove broken distance stuff 2015-01-05 20:48:41 -08:00
Sean Farley
4636e8c52c remotenames: override default template to add suppressbranches option 2015-01-05 20:29:40 -08:00
Sean Farley
d625ef2a21 remotebranches: add new template keyword for just branches 2014-12-16 22:27:03 -08:00
Sean Farley
f2527b3047 remotebookmarks: add new template keyword for just bookmarks 2014-12-16 16:56:12 -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
9db986b421 cleanup: tighten whitespace around template methods 2014-12-16 10:55:36 -08:00
Sean Farley
5736ea3793 remotenames: cache the type of remote name 2014-12-16 10:50:05 -08:00
Sean Farley
dbad9563fc remotenames: move _remotenames to global variable 2014-12-16 09:33:01 -08:00
Sean Farley
a57bf8b8a0 cleanup: tighten whitespace around imports 2014-12-16 09:32:09 -08:00
Sean Farley
8c97ab00e9 flake8: clean up code 2014-12-15 23:45:59 -08:00
Sean Farley
f5fbbd09f5 repoview: wrap _getdynamicblockers to allow remotenames to be not hidden 2014-03-31 21:22:23 -05:00
Sean Farley
bea29b7f21 reposetup: remove remotenames subclass 2014-03-31 20:23:47 -05:00
Sean Farley
43180d5ae7 preferredremotenames: move outside of repo class 2014-12-15 20:38:00 -08:00
Sean Farley
ab39acfe6e remotenames: remove propertycache
Now that we are using mercurial's namespace api, we no longer need this
property of the repo.
2014-03-31 19:57:51 -05:00
Sean Farley
9ef68ad8ed remotenames: use namespace api instead of custom _remotenames 2014-03-31 19:55:54 -05:00
Sean Farley
46276f5eaf template: remove keyword automatically provided by repo names 2014-03-31 20:44:30 -05:00
Sean Farley
2cfa1a887c lookup: remove method for wrapping repo.lookup
We will now use mercurial's built-in namespace api so we don't need to wrap
repo lookup.
2014-03-31 19:52:57 -05: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
1c7b93f96f calculateremotedistance: fix typo in comment 2014-03-31 19:38:51 -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
67930a76fc upstream_revs: fix missing baseset for empty list 2014-03-31 19:20:52 -05:00
Sean Farley
f9e79cac27 remotenames: remove pre-3.3 code
We'll be using new features in mercurial, so it'll be impossible to support
pre-3.3.
2014-03-31 19:16:59 -05:00
Sean Farley
fb45b90e0b whitespace: add comment and reformat long line 2014-03-31 10:52:39 -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