Commit Graph

124 Commits

Author SHA1 Message Date
Sean Farley
cac008217b branches: load all branch heads into the namespace
Previously, we only loaded the first head. Now, we iterate over all of them.
2015-02-09 19:11:28 -08:00
Sean Farley
00455a7833 bookmarks: be fancy and label obsolete changesets 2015-02-08 19:53:08 -08:00
Sean Farley
94ec2842a0 bookmarks: use an unfiltered repo for --remote 2015-02-08 19:40:27 -08:00
Sean Farley
e5bc75466a tests: update output due to not syncing bookmarks 2015-02-09 16:10:55 -08:00
Sean Farley
d08c2cdad9 clone: wrap unlink call in a try-finally 2015-02-09 16:08:18 -08:00
Ryan McElroy
1513a07be8 remotenames: pull remotenames on clone 2015-01-28 17:45:48 -08:00
Ryan McElroy
1a9d542a87 remotenames: factor out pullremotenames helper function
This will be used in clone.
2015-01-28 17:45:26 -08:00
Ryan McElroy
43e3c8aed6 remotenames: drop unneeded indirection level 2015-01-28 15:53:49 -08:00
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
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
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