Mercurial > evolve
comparison tests/test-grab.t @ 3527:7b4d1bfb6b7d
grab: gracefully handle the case when we try to grab parent of wdir
Before this patch, we go all the way down to obsmarker creation logic and gets
an error saying that changeset cannot obsolete itself. We should be more smart
here and error out early saying we cannot grab that changeset.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 13 Mar 2018 20:44:51 +0530 |
parents | df20ddc79064 |
children | d5adce52cef4 d7034826c0a2 |
comparison
equal
deleted
inserted
replaced
3526:df20ddc79064 | 3527:7b4d1bfb6b7d |
---|---|
42 | 42 |
43 | 43 |
44 Grabbing an ancestor | 44 Grabbing an ancestor |
45 | 45 |
46 $ hg grab -r 7c3bad9141dc | 46 $ hg grab -r 7c3bad9141dc |
47 abort: cannot grab an ancestor revision | |
48 [255] | |
49 | |
50 Grabbing the working directory parent | |
51 | |
52 $ hg grab -r . | |
47 abort: cannot grab an ancestor revision | 53 abort: cannot grab an ancestor revision |
48 [255] | 54 [255] |
49 | 55 |
50 Specifying multiple revisions to grab | 56 Specifying multiple revisions to grab |
51 | 57 |