comparison tests/test-fetch.t @ 22676:a014fdc97154

fetch: use cmdutil.bailifchanged() Use the existing method cmdutil.bailifchanged() instead of implementing it again in fetch.py. An effect of this is that the error messages in case of uncommited changes will be different.
author Martin von Zweigbergk <martinvonz@gmail.com>
date Wed, 01 Oct 2014 14:48:42 -0700
parents 7a9cbb315d84
children f1eaf03dd608
comparison
equal deleted inserted replaced
22675:4e64d255f1a8 22676:a014fdc97154
148 $ rm i/g 148 $ rm i/g
149 149
150 should abort, because i is modified 150 should abort, because i is modified
151 151
152 $ hg --cwd i fetch ../h 152 $ hg --cwd i fetch ../h
153 abort: working directory is missing some files 153 abort: uncommitted changes
154 [255] 154 [255]
155 155
156 test fetch with named branches 156 test fetch with named branches
157 157
158 $ hg init nbase 158 $ hg init nbase