Commit Graph

84 Commits

Author SHA1 Message Date
Sean Farley
efe7db9db1 push: only list non-obsolete heads in ui message 2015-02-12 13:24:41 -08:00
Ryan McElroy
5f5b92c7c3 pushto: translatable abort messages and hints 2015-02-11 23:53:22 -08:00
Ryan McElroy
73be4de23e pushto: do not abort on no-op pushes 2015-02-11 23:41:42 -08:00
Ryan McElroy
1a3f91d0c3 pushto: consider all foreground nodes, not just descendants 2015-02-11 23:34:56 -08:00
Ryan McElroy
ccecf9e730 push: translate status 2015-02-11 22:31:27 -08:00
Ryan McElroy
375be87c13 pushto: reuse info passed through pushop 2015-02-11 20:09:29 -08:00
Ryan McElroy
a4dd3a7c4a push: use unfiltered repo 2015-02-11 19:56:36 -08:00
Ryan McElroy
d8f73fb505 push: properly limit anonymous heads 2015-02-11 19:54:34 -08:00
Ryan McElroy
dfcaf81724 push: only check for anonymous heads when --to is not specified 2015-02-11 19:03:28 -08:00
Sean Farley
bbab829708 push: abort if pushing only contains local bookmarks 2015-02-11 09:22:26 -08:00
Ryan McElroy
9327a466ed remotenames: reduce verbosity 2015-02-11 22:31:14 -08:00
Ryan McElroy
bccfcf4eaa push: rename force.to to forceto for consistency 2015-02-11 18:18:56 -08:00
Sean Farley
444014356c debug: use repo.ui instead of ui from older version of code 2015-02-10 17:00:47 -08:00
Ryan McElroy
67dc7dfe8f remotenames: make loading module side-effect free 2015-02-10 12:02:58 -08:00
Ryan McElroy
eb7e17b93e pushto: abort with nice message if push would have no effect 2015-02-10 12:02:32 -08:00
Ryan McElroy
5fbd0652a5 remotenames: implement push --to functionality 2015-02-10 11:52:19 -08:00
Ryan McElroy
fa62dbc7c6 remotenames: alphabetize imports 2015-02-10 11:43:07 -08:00
Sean Farley
8927ab8bcf log: add --remote option
Previously, we had a config knob that would unhide obsolete changesets if they
had a remote name pointing to them. This had the side effect of 1) being an
all-or-nothing config 2) requiring a hack to re-hide the changesets during a
push.

This patch adds an option to log (the only place, so far, where it makes sense
to unhide these changesets).
2015-02-10 09:15:37 -08:00
Sean Farley
e14cb0d306 push: write distance 2015-02-09 20:59:50 -08:00
Sean Farley
61ae60e640 bookmarks: write distance 2015-02-09 20:38:30 -08:00
Sean Farley
407fb12f30 distance: use alias if that config is set
The case of setting this option *after* already having the remote names file
written is not handled yet.
2015-02-09 20:25:23 -08:00
Sean Farley
f548b1a20c update: write distance 2015-02-09 20:16:15 -08:00
Sean Farley
66c33592a0 commit: write distance 2015-02-10 09:18:13 -08:00
Sean Farley
6c527020c1 pull: write distance 2015-02-09 20:14:55 -08:00
Sean Farley
760de0d347 distance: add method to write distance to file 2015-02-09 19:30:17 -08:00
Sean Farley
c42401832b distance: add a method to calculate signed distance to remote
The method takes a remote alias and calculates the number of nodes away from
the current node there are. A positive distance distance means the current node
is a child of the remote.
2015-02-09 19:20:25 -08:00
Sean Farley
8482a8a8f1 branches: be fancy and label obsolete changesets 2015-02-09 20:49:41 -08:00
Sean Farley
87f043e7bf branches: use an unfiltered repo for --remote 2015-02-09 19:11:55 -08:00
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
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